/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --teal: oklch(0.24 0.045 210);
  --teal-deep: oklch(0.16 0.04 210);
  --paper: oklch(0.97 0.014 75);
  --ink: oklch(0.22 0.02 60);
  --ink-soft: oklch(0.42 0.02 60);
  --gold: oklch(0.74 0.13 80);
  --gold-hover: oklch(0.79 0.13 80);
  --gold-deep: oklch(0.56 0.13 78);
  --cream: oklch(0.95 0.02 90);
  --line: oklch(0.88 0.015 75);
  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
  --font-display-ar: 'Amiri', serif;
  --font-body-ar: 'Cairo', sans-serif;
}

/* Latin defaults; RTL overrides swap display/body fonts */
[dir="rtl"] {
  --font-display: 'Amiri', serif;
  --font-body: 'Cairo', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body { margin: 0; }
a { color: inherit; }

@keyframes fadeRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

.page {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
}

/* ── Nav + hero masthead ───────────────────────────────────── */
.masthead { background: var(--teal); }

.nav {
  max-width: 1180px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(20px, 4vw, 48px);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__seal {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600; font-size: 16px;
  color: var(--teal-deep);
  flex-shrink: 0;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 600; font-size: 22px;
  color: var(--cream);
  letter-spacing: 0.01em;
}

.lang {
  display: flex; gap: 4px;
  background: oklch(0.20 0.04 210);
  padding: 4px;
  border-radius: 999px;
}
.lang__btn {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px; font-weight: 600;
  font-family: var(--font-body); /* language chips stay Latin */
  cursor: pointer;
  background: transparent;
  color: var(--cream);
}
.lang__btn:hover { background: oklch(0.30 0.045 210); }
.lang__btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lang__btn[aria-pressed="true"] {
  background: var(--gold);
  color: var(--teal-deep);
}
.lang__btn[aria-pressed="true"]:hover { background: var(--gold); }

.hero {
  max-width: 840px;
  margin-inline: auto;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 4vw, 48px) clamp(64px, 10vw, 112px);
  text-align: start;
}
.hero__eyebrow {
  animation: fadeRise 0.7s ease-out both;
  margin: 0 0 18px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
}
.hero__headline {
  animation: fadeRise 0.7s ease-out 0.08s backwards;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 5.4vw, 58px);
  line-height: 1.12;
  min-height: 2.5em;
  color: var(--cream);
}
.hero__headline,
.hero__subhead {
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.hero__headline.is-fading,
.hero__subhead.is-fading {
  opacity: 0;
  transform: translateY(-8px);
}
.hero__accent {
  animation: fadeRise 0.7s ease-out 0.16s both;
  margin: 14px 0 0;
  font-style: italic;
  font-size: clamp(16px, 2.2vw, 20px);
  color: oklch(0.8 0.06 85);
}
.hero__subhead {
  animation: fadeRise 0.7s ease-out 0.24s backwards;
  margin: 26px 0 0;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.65;
  min-height: 8.25em;
  color: oklch(0.88 0.015 90);
  max-width: 56ch;
}
.hero__actions {
  animation: fadeRise 0.7s ease-out 0.32s both;
  margin-top: 34px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 22px;
}
.hero__note {
  animation: fadeRise 0.7s ease-out 0.4s both;
  margin: 22px 0 0;
  font-size: 13px;
  color: oklch(0.7 0.02 90);
  max-width: 52ch;
}

/* ── Buttons + links ───────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  text-decoration: none;
  background: var(--gold);
  color: var(--teal-deep);
  border: none;
  font-family: var(--font-body);
  font-weight: 600; font-size: 16px;
  padding: 15px 30px;
  border-radius: 999px;
  cursor: pointer;
}
.btn-primary:hover { background: var(--gold-hover); }
.btn-primary:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }

.link-secondary {
  font-size: 15px; font-weight: 500;
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.link-secondary:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }

/* ── Problem ───────────────────────────────────────────────── */
.problem {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(56px, 9vw, 96px) clamp(20px, 4vw, 48px);
}
.problem__text {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500; font-style: italic;
  font-size: clamp(19px, 2.6vw, 26px);
  line-height: 1.55;
  color: var(--ink);
}

/* ── Value props ───────────────────────────────────────────── */
.values {
  max-width: 1180px;
  margin-inline: auto;
  padding: 0 clamp(20px, 4vw, 48px) clamp(56px, 9vw, 96px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}
.value__rule { width: 28px; height: 4px; background: var(--gold); margin-bottom: 18px; }
.value__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 500; font-size: 21px;
  color: var(--ink);
}
.value__body { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }

/* ── How it works ──────────────────────────────────────────── */
.how { background: oklch(0.945 0.016 75); padding: clamp(56px, 9vw, 96px) clamp(20px, 4vw, 48px); }
.how__inner { max-width: 1180px; margin-inline: auto; }
.how__title {
  margin: 0 0 40px;
  font-family: var(--font-display);
  font-weight: 500; font-size: clamp(24px, 3vw, 32px);
  color: var(--ink);
}
.how__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 36px; }
.step__num {
  font-family: var(--font-display);
  font-weight: 500; font-size: 34px;
  color: var(--gold-deep);
  margin-bottom: 8px;
}
.step__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 500; font-size: 19px;
  color: var(--ink);
}
.step__body { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }

/* ── Trust line ────────────────────────────────────────────── */
.trust {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(56px, 8vw, 88px) clamp(20px, 4vw, 48px);
  text-align: center;
}
.trust__rule { width: 40px; height: 2px; background: var(--gold); margin: 0 auto 24px; }
.trust__text {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500; font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.6;
  color: var(--ink);
}

/* ── Final CTA ─────────────────────────────────────────────── */
.final { background: var(--teal); padding: clamp(64px, 10vw, 112px) clamp(20px, 4vw, 48px); text-align: center; }
.final__inner { max-width: 640px; margin-inline: auto; }
.final__heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500; font-size: clamp(26px, 4vw, 38px);
  color: var(--cream);
}
.final__body { margin: 16px 0 0; font-size: 16.5px; line-height: 1.6; color: oklch(0.88 0.015 90); }
.final__btn { margin-top: 30px; }
.final__note { margin: 18px 0 0; font-size: 13px; color: oklch(0.7 0.02 90); }

/* ── Footer ────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 28px clamp(20px, 4vw, 48px); text-align: center; }
.footer__text { margin: 0; font-size: 13.5px; color: var(--ink-soft); }
