/* ============================================================
   MASSAR — À propos · stylesheet
   Bold editorial · trilingual (fr · en · ar with RTL)
   ============================================================ */

:root {
  --ink:        #0e1116;
  --ink-soft:   #2a2f37;
  --muted:      #6b7280;
  --rule:       #d9d4c6;
  --paper:      #faf7f0;   /* warm cream */
  --paper-2:    #f1ecde;   /* deeper cream for bands */
  --accent:     #c0392b;   /* editorial red */
  --accent-2:   #0a2540;   /* deep navy */
  --gold:       #b08a3e;

  --serif: "Fraunces", "Times New Roman", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --arabic: "Noto Naskh Arabic", "Amiri", "Times New Roman", serif;

  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 64px);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Arabic typography ---------- */
html[lang="ar"] body { font-family: var(--arabic); }
html[lang="ar"] .hero__title,
html[lang="ar"] .section__title,
html[lang="ar"] .cta__title,
html[lang="ar"] .app-row__title,
html[lang="ar"] .manifesto__lede,
html[lang="ar"] .numbers__big { font-family: var(--arabic); font-weight: 700; }
html[lang="ar"] .hero__title-line.is-italic { font-style: normal; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 240, 0.85);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.topbar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; }
.brand__logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}
@media (max-width: 600px) {
  .brand__logo { height: 36px; }
}
.topbar__nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}
.topbar__nav a { position: relative; padding: 6px 0; transition: color .25s var(--ease); }
.topbar__nav a:hover { color: var(--accent); }
.topbar__nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  height: 1px; width: 0; background: var(--accent);
  transition: width .3s var(--ease);
}
.topbar__nav a:hover::after { width: 100%; }

.lang { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--rule); border-radius: 999px; }
.lang__btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 600;
  border-radius: 999px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.lang__btn.is-active { background: var(--ink); color: var(--paper); }

@media (max-width: 900px) {
  .topbar__nav { display: none; }
  .topbar__inner { grid-template-columns: auto 1fr; }
}

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 160px) var(--gutter);
}
.section__head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 24px;
  margin-bottom: clamp(40px, 6vw, 80px);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
.section__num {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 300;
  font-style: italic;
  line-height: 1;
  color: var(--accent);
}
.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 8vw, 96px) var(--gutter) clamp(60px, 9vw, 120px);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  grid-template-rows: auto auto auto auto;
  column-gap: clamp(28px, 4vw, 72px);
  row-gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.hero__meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.rule { display: inline-block; width: 56px; height: 1px; background: var(--ink); }

.hero__index {
  grid-column: 1;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(56px, 9vw, 120px);
  color: var(--accent);
  line-height: 0.9;
}

.hero__title {
  grid-column: 1;
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 7.2vw, 108px);
  line-height: 1.0;
  letter-spacing: -0.025em;
}
.hero__title-line { display: block; }
.hero__title-line.is-italic { font-style: italic; font-weight: 400; color: var(--accent-2); }

.hero__lead {
  grid-column: 1;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.65;
  max-width: 56ch;
  color: var(--ink-soft);
}

.hero__photo {
  grid-column: 2;
  grid-row: 2 / span 3;
  margin: 0;
  align-self: stretch;
  position: relative;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  max-height: 720px;
  object-fit: cover;
  filter: contrast(1.02) saturate(0.92);
}
.hero__photo figcaption {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { grid-column: 1; grid-row: auto; }
  .hero__photo img { min-height: 320px; }
}

/* ============================================================
   MANIFESTO
   ============================================================ */
.section--manifesto { background: var(--paper); }
.manifesto__lede {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 46px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.25;
  max-width: 24ch;
  margin: 0 0 48px;
  color: var(--ink);
  position: relative;
  padding-left: 28px;
}
.manifesto__lede::before {
  content: "“";
  position: absolute; left: -8px; top: -28px;
  font-size: 110px; line-height: 1;
  color: var(--accent); font-family: var(--serif); font-weight: 600;
}
.manifesto__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.manifesto__cols p { margin: 0; }
@media (max-width: 800px) {
  .manifesto__cols { grid-template-columns: 1fr; }
  .manifesto__lede { padding-left: 18px; }
}

/* ============================================================
   NUMBERS
   ============================================================ */
.section--numbers { background: var(--paper-2); }
.section--numbers { max-width: none; padding-left: 0; padding-right: 0; }
.section--numbers .section__head,
.section--numbers .numbers {
  max-width: var(--maxw);
  margin-left: auto; margin-right: auto;
  padding-left: var(--gutter); padding-right: var(--gutter);
}

.numbers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.numbers li {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 40px);
  background: transparent;
  transition: background .35s var(--ease);
}
.numbers li:hover { background: rgba(192, 57, 43, 0.04); }
.numbers__big {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.numbers__big sup { font-size: 0.4em; vertical-align: super; color: var(--accent); }
.numbers__big sub { font-size: 0.32em; vertical-align: baseline; color: var(--accent); margin-left: 4px; }
.numbers__lbl {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 800px) { .numbers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .numbers { grid-template-columns: 1fr; } }

/* ============================================================
   APPS
   ============================================================ */
.app-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding: clamp(40px, 6vw, 80px) 0;
  border-bottom: 1px solid var(--rule);
}
.app-row:last-child { border-bottom: 0; }
.app-row--reverse .app-row__photo { order: 2; }
.app-row--reverse .app-row__body  { order: 1; }
.app-row__photo {
  overflow: hidden;
  position: relative;
}
.app-row__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.app-row__photo:hover img { transform: scale(1.03); }

/* Portrait phone screenshot — show full device, no crop */
.app-row__photo--phone {
  background:
    radial-gradient(circle at 50% 35%, rgba(192, 57, 43, 0.10) 0%, transparent 60%),
    var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2vw, 28px);
  aspect-ratio: 4 / 5;
}
.app-row__photo--phone img {
  width: auto;
  height: 100%;
  max-height: 760px;
  aspect-ratio: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(14, 17, 22, 0.25))
          drop-shadow(0 10px 20px rgba(14, 17, 22, 0.15));
  transition: transform .6s var(--ease);
}
.app-row__photo--phone:hover img { transform: translateY(-6px); }

.app-row__tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  font-weight: 600;
}
.app-row__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}
.app-row__body p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  max-width: 46ch;
  color: var(--ink-soft);
}

@media (max-width: 800px) {
  .app-row { grid-template-columns: 1fr; gap: 24px; }
  .app-row--reverse .app-row__photo { order: 0; }
  .app-row--reverse .app-row__body  { order: 0; }
}

/* ============================================================
   MISSION / VISION
   ============================================================ */
.section--mv { background: var(--paper); }
.mv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
}
.mv__col {
  background: #fff;
  padding: clamp(32px, 4vw, 56px);
  border: 1px solid var(--rule);
}
.mv__col--accent {
  background: var(--accent-2);
  color: #f3ecdd;
  border-color: var(--accent-2);
}
.mv__col h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 500;
  margin: 0 0 18px;
  letter-spacing: -0.015em;
}
.mv__col p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
}
.mv__col--accent p { color: rgba(243, 236, 221, 0.85); }
@media (max-width: 800px) { .mv { grid-template-columns: 1fr; } }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.timeline li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: clamp(20px, 3vw, 48px);
  padding: 36px 0;
  border-top: 1px solid var(--rule);
}
.timeline li:last-child { border-bottom: 1px solid var(--rule); }
.timeline__year {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 500;
  font-style: italic;
  color: var(--accent);
  line-height: 1;
}
.timeline h4 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.timeline p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 60ch;
}
@media (max-width: 700px) {
  .timeline li { grid-template-columns: 1fr; gap: 8px; }
}

/* ============================================================
   VALUES
   ============================================================ */
.values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 36px);
}
.values article {
  padding: clamp(20px, 2.4vw, 32px) 0;
  border-top: 2px solid var(--ink);
}
.values h4 {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.values p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}
@media (max-width: 900px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

/* ============================================================
   CTA
   ============================================================ */
.cta {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  text-align: center;
}

/* Opening hero variant — first thing the visitor sees */
.cta--opener {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: clamp(120px, 14vw, 200px);
  padding-bottom: clamp(120px, 14vw, 200px);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(232, 201, 139, 0.10) 0%, transparent 55%),
    var(--ink);
  overflow: hidden;
}
.cta--opener::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.cta--opener .cta__title { max-width: 18ch; margin-left: auto; margin-right: auto; position: relative; z-index: 1; }
.cta--opener .cta__actions { position: relative; z-index: 1; }

.cta__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 38px;
  border: 1.5px solid rgba(250, 247, 240, 0.5);
  border-radius: 12px;
  display: block;
  transition: border-color .3s var(--ease);
}
.cta__scroll:hover { border-color: var(--paper); }
.cta__scroll span {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 6px;
  background: #e8c98b;
  border-radius: 2px;
  animation: scrollHint 1.8s var(--ease) infinite;
}
@keyframes scrollHint {
  0%   { opacity: 0; transform: translate(-50%, 0); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}
.cta__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 6vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 40px;
}
.cta__title em {
  display: block;
  font-style: italic;
  color: #e8c98b;
  font-weight: 400;
}
.cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 16px 28px;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  border: 1px solid transparent;
}
.btn--primary { background: var(--paper); color: var(--ink); }
.btn--primary:hover { background: #e8c98b; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--paper); border-color: rgba(250,247,240,0.4); }
.btn--ghost:hover { border-color: var(--paper); transform: translateY(-2px); }

/* ---------- Download grid ---------- */
.cta__sub {
  max-width: 56ch;
  margin: -16px auto 36px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: rgba(250, 247, 240, 0.65);
  line-height: 1.6;
}
.cta__note {
  margin: 40px auto 0;
  max-width: 64ch;
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: rgba(250, 247, 240, 0.45);
}
.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  max-width: 920px;
  margin: 0 auto;
  text-align: start;
}
.dl-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(22px, 2.6vw, 32px);
  background: rgba(250, 247, 240, 0.04);
  border: 1px solid rgba(250, 247, 240, 0.12);
  color: var(--paper);
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.dl-card:hover {
  background: rgba(232, 201, 139, 0.10);
  border-color: rgba(232, 201, 139, 0.55);
  transform: translateY(-3px);
}
.dl-card__tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e8c98b;
  font-weight: 600;
}
.dl-card__name {
  font-family: var(--serif);
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-top: 4px;
}
.dl-card__meta {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 247, 240, 0.55);
  margin-top: 2px;
}
.dl-card__cta {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(250, 247, 240, 0.15);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dl-card__cta::after {
  content: "↓";
  display: inline-block;
  transition: transform .3s var(--ease);
}
.dl-card:hover .dl-card__cta::after { transform: translateY(3px); }

@media (max-width: 800px) { .dl-grid { grid-template-columns: 1fr; } }

html[dir="rtl"] .dl-card__cta::after { content: "↓"; }

/* ============================================================
   DOWNLOAD PAGE (download.html)
   ============================================================ */
.dl-hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(60px, 9vw, 120px) var(--gutter) clamp(40px, 6vw, 80px);
}
.dl-hero__inner { max-width: 880px; }
.dl-back {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  transition: color .2s var(--ease);
}
.dl-back:hover { color: var(--accent); }
.dl-hero .kicker {
  display: block;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.dl-hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}
.dl-hero__title em {
  display: block;
  font-style: italic;
  color: var(--accent-2);
  font-weight: 400;
}
.dl-hero__lead {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0;
}

/* ---- App row on download page ---- */
.dl-app {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  border-top: 1px solid var(--rule);
}
.dl-app--reverse .dl-app__photo { order: 2; }
.dl-app--reverse .dl-app__body  { order: 1; }

.dl-app__photo {
  overflow: hidden;
}
.dl-app__tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 600;
}
.dl-app__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}
.dl-app__text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 48ch;
  margin: 0 0 24px;
}
.dl-app__features {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 10px;
  max-width: 44ch;
}
.dl-app__features li {
  position: relative;
  padding-inline-start: 22px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}
.dl-app__features li::before {
  content: "→";
  position: absolute;
  inset-inline-start: 0;
  color: var(--accent);
  font-weight: 600;
}
html[dir="rtl"] .dl-app__features li::before { content: "←"; }

.dl-app__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-dl {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  background: var(--ink);
  color: var(--paper);
  padding: 16px 28px;
  border: 1px solid var(--ink);
  transition: background .2s var(--ease), transform .2s var(--ease), color .2s var(--ease);
}
.btn-dl:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.btn-dl > span {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.btn-dl > small {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 247, 240, 0.65);
}
.btn-dl:hover > small { color: rgba(250, 247, 240, 0.85); }

@media (max-width: 800px) {
  .dl-app { grid-template-columns: 1fr; gap: 24px; }
  .dl-app--reverse .dl-app__photo { order: 0; }
  .dl-app--reverse .dl-app__body  { order: 0; }
}

/* ---- Install instructions ---- */
.dl-note-section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(60px, 9vw, 120px) var(--gutter);
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
}
.dl-note-section h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.015em;
  margin: 0 0 28px;
  max-width: var(--maxw);
}
.dl-steps {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 16px;
  counter-reset: step;
  max-width: 64ch;
}
.dl-steps li {
  position: relative;
  padding-inline-start: 56px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  counter-increment: step;
}
.dl-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  font-size: 24px;
  line-height: 1.4;
}
.dl-note {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--muted);
  max-width: 60ch;
  margin: 0;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(50px, 7vw, 90px) var(--gutter) 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: clamp(40px, 6vw, 80px);
}
.footer__brand img { width: 120px; margin-bottom: 18px; }
.footer__brand p { font-size: 14px; color: var(--muted); max-width: 32ch; margin: 0; line-height: 1.6; }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__cols h5 {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 14px;
}
.footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__cols a, .footer__cols span { font-size: 14px; color: var(--ink-soft); }
.footer__cols a:hover { color: var(--accent); }

.footer__legal {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px var(--gutter);
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 700px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RTL (Arabic)
   ============================================================ */
html[dir="rtl"] .manifesto__lede { padding-left: 0; padding-right: 28px; }
html[dir="rtl"] .manifesto__lede::before {
  left: auto; right: -8px;
  content: "”";
}
html[dir="rtl"] .numbers__big sub { margin-left: 0; margin-right: 4px; }
html[dir="rtl"] .app-row--reverse .app-row__photo { order: 1; }
html[dir="rtl"] .app-row--reverse .app-row__body  { order: 2; }
html[dir="rtl"] .app-row__photo { order: 2; }
html[dir="rtl"] .app-row__body  { order: 1; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

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

/* ============================================================
   SELECTION
   ============================================================ */
::selection { background: var(--accent); color: var(--paper); }
