/* About Us — partner FAQ page.
 *
 * Editorial layout matching privacy/support: dark canvas, Tajawal,
 * brand-cyan accents used sparingly. Stacked sections (no TOC) since
 * the content is a single narrative the partner reads top-to-bottom.
 *
 * Structure:
 *   ▸ Hero        — eyebrow chip + display title + subtitle
 *   ▸ Sections    — each with a left vertical brand bar + title,
 *                   then a vertical stack of Q&A cards
 *   ▸ Stats card  — 2-col mini-table inside one of the Q&A bodies,
 *                   final row highlighted in cyan
 *   ▸ Lists       — documents-needed + benefits, dash-prefixed
 *   ▸ CTA banner  — closing partner-pitch card with primary button
 */

/* ─── Typography per script ─────────────────────────────
 * No font-family force — the global `[lang="ar"]` / `[lang="en"]`
 * selectors in tokens.css already pick Tajawal for Arabic and Inter
 * for English. That way the language toggle swaps the typeface
 * cleanly across the whole page.
 *
 * The only per-script tweak is letter-spacing: Latin display weights
 * benefit from a tighter track, Arabic does not (the script's
 * counter shapes get cramped). Mirrors the convention used in
 * tokens.css `.display-face` and privacy.css. */
[lang="en"] body[data-page="aboutus"] .aboutus-hero__title,
[lang="en"] body[data-page="aboutus"] .aboutus-section__title,
[lang="en"] body[data-page="aboutus"] .aboutus-cta__title {
  letter-spacing: -0.02em;
}
[lang="ar"] body[data-page="aboutus"] .aboutus-hero__title,
[lang="ar"] body[data-page="aboutus"] .aboutus-section__title,
[lang="ar"] body[data-page="aboutus"] .aboutus-cta__title {
  letter-spacing: 0;
}
[lang="en"] body[data-page="aboutus"] .aboutus-qa__q {
  letter-spacing: -0.015em;
}
[lang="ar"] body[data-page="aboutus"] .aboutus-qa__q {
  letter-spacing: 0;
}
/* Inter at body sizes wants a tiny micro-tracking nudge; Tajawal
 * is fine at default. Body line-height stays the same — both
 * scripts have similar x-heights at these sizes. */
[lang="en"] body[data-page="aboutus"] .aboutus-qa__a,
[lang="en"] body[data-page="aboutus"] .aboutus-list,
[lang="en"] body[data-page="aboutus"] .aboutus-qa__note {
  letter-spacing: -0.005em;
}

/* ─── Hero ─────────────────────────────────────────────── */
.aboutus-hero {
  padding-block: clamp(130px, 15vw, 170px) clamp(56px, 8vw, 88px);
  text-align: center;
  position: relative;
  border-block-end: 1px solid var(--line);
}
.aboutus-hero::after {
  content: "";
  position: absolute;
  inset-block-end: -1px;
  inset-inline-start: 50%;
  width: 60px;
  height: 1px;
  background: var(--brand);
  transform: translateX(-50%);
}
.aboutus-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand);
  padding: 8px 18px;
  background: var(--brand-soft);
  border: 1px solid rgba(19, 181, 243, 0.30);
  border-radius: var(--r-pill);
  margin-block-end: var(--sp-5);
  max-width: 92vw;
  line-height: 1.5;
}
.aboutus-hero__eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(19, 181, 243, 0.18);
}
.aboutus-hero__title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.18;
  color: var(--text-1);
  margin-block-end: var(--sp-4);
}
.aboutus-hero__intro {
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  color: var(--text-2);
  line-height: 1.8;
  max-width: 60ch;
  margin-inline: auto;
}

/* ─── Body container ──────────────────────────────────── */
.aboutus-body {
  padding-block: clamp(56px, 7vw, 88px) clamp(80px, 11vw, 140px);
}
.aboutus-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 7vw, 88px);
  max-width: 920px;
}

/* ─── Section header (vertical brand bar + title) ─────── */
.aboutus-section__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-block-end: clamp(20px, 2.6vw, 28px);
  padding-block-end: var(--sp-4);
  border-block-end: 1px solid var(--line);
}
.aboutus-section__bar {
  width: 4px;
  height: 28px;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-strong) 100%);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(19, 181, 243, 0.45);
  flex-shrink: 0;
}
.aboutus-section__title {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.005em;
  line-height: 1.25;
  color: var(--text-1);
}

/* ─── Q&A list and cards ──────────────────────────────── */
.aboutus-qa-list {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 18px);
}
.aboutus-qa {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 2.6vw, 28px) clamp(20px, 2.6vw, 30px);
  box-shadow: var(--shadow);
  transition: border-color 240ms var(--ease-out), transform 240ms var(--ease-out);
}
.aboutus-qa:hover {
  border-color: var(--line-2);
}
.aboutus-qa__q {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  font-weight: 800;
  letter-spacing: -0.005em;
  line-height: 1.35;
  color: var(--text-1);
  margin-block-end: var(--sp-4);
  position: relative;
  padding-inline-end: 8px;
}
.aboutus-qa__a {
  color: var(--text-2);
  font-size: clamp(0.98rem, 1.4vw, 1.05rem);
  line-height: 1.85;
}
.aboutus-qa__a p {
  margin-block-end: var(--sp-3);
}
.aboutus-qa__a p:last-child { margin-block-end: 0; }
.aboutus-qa__a strong {
  color: var(--text-1);
  font-weight: 800;
}
.aboutus-qa__note {
  margin-block-start: var(--sp-4);
  font-size: 0.94rem;
  color: var(--text-3);
  line-height: 1.8;
  /* `inline-start` is already direction-aware: it becomes left in
   * LTR and right in RTL. No `[dir="rtl"]` override needed — adding
   * one would double-flip and put the quote bar on the wrong side. */
  padding-inline-start: 14px;
  border-inline-start: 2px solid var(--brand);
}

/* ─── Lists (documents + benefits) ─────────────────────── */
/* `padding-inline-start` + `inset-inline-start` are direction-aware
 * and flip automatically: bullet sits on the visual LEFT in LTR and
 * on the visual RIGHT in RTL. No `[dir="rtl"]` override here — that
 * would double-flip and stick the bullet on the wrong side. */
.aboutus-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.aboutus-list li {
  position: relative;
  padding-inline-start: 28px;
  line-height: 1.75;
}
.aboutus-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 14px;
  width: 14px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}
.aboutus-list--docs li {
  font-weight: 600;
  color: var(--text-1);
}
.aboutus-list--benefits li strong {
  display: inline;
  color: var(--brand);
  font-weight: 800;
  margin-inline-end: 6px;
}

/* ─── Stats card (subscription income example) ────────── */
.aboutus-stats {
  margin-block: var(--sp-5);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.aboutus-stats__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px clamp(16px, 2.4vw, 22px);
  border-block-end: 1px solid var(--line);
  transition: background 240ms var(--ease-out);
}
.aboutus-stats__row:last-child { border-block-end: 0; }
.aboutus-stats__row:hover {
  background: rgba(255, 255, 255, 0.02);
}
.aboutus-stats__label {
  color: var(--text-2);
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.5;
}
.aboutus-stats__value {
  color: var(--text-1);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.005em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.aboutus-stats__row--highlight {
  background: linear-gradient(90deg, var(--brand-soft) 0%, transparent 100%);
  border-block-start: 1px solid rgba(19, 181, 243, 0.35);
}
[dir="rtl"] .aboutus-stats__row--highlight {
  background: linear-gradient(-90deg, var(--brand-soft) 0%, transparent 100%);
}
.aboutus-stats__row--highlight:hover {
  background: linear-gradient(90deg, rgba(19, 181, 243, 0.16) 0%, transparent 100%);
}
[dir="rtl"] .aboutus-stats__row--highlight:hover {
  background: linear-gradient(-90deg, rgba(19, 181, 243, 0.16) 0%, transparent 100%);
}
.aboutus-stats__row--highlight .aboutus-stats__label {
  color: var(--text-1);
  font-weight: 700;
}
.aboutus-stats__row--highlight .aboutus-stats__value {
  color: var(--brand);
  font-size: 1.16rem;
  font-weight: 900;
}

/* ─── Closing CTA banner ──────────────────────────────── */
.aboutus-cta {
  margin-block-start: clamp(40px, 5vw, 56px);
}
.aboutus-cta__inner {
  position: relative;
  text-align: center;
  padding: clamp(36px, 5vw, 56px) clamp(24px, 4vw, 48px);
  background:
    radial-gradient(900px 360px at 50% 0%, rgba(19, 181, 243, 0.14), transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid rgba(19, 181, 243, 0.22);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.aboutus-cta__inner::before,
.aboutus-cta__inner::after {
  content: "";
  position: absolute;
  inset-block-start: 0;
  width: 80px;
  height: 1px;
  background: var(--brand);
}
.aboutus-cta__inner::before { inset-inline-start: 50%; transform: translateX(-50%); }
.aboutus-cta__inner::after  { display: none; }

.aboutus-cta__title {
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text-1);
  margin-block-end: var(--sp-3);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.aboutus-cta__brand {
  background: linear-gradient(135deg, var(--brand) 0%, #58d4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.aboutus-cta__dash { color: var(--text-3); font-weight: 500; }
.aboutus-cta__tagline { color: var(--text-1); }
.aboutus-cta__sub {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--text-2);
  line-height: 1.7;
  margin-block-end: var(--sp-6);
  max-width: 50ch;
  margin-inline: auto;
}
.aboutus-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 800;
  border-radius: var(--r-pill);
  text-decoration: none;
  box-shadow: var(--shadow-brand);
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
.aboutus-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 56px -14px rgba(19, 181, 243, 0.55);
}
.aboutus-cta__btn svg {
  width: 18px;
  height: 18px;
}
[dir="rtl"] .aboutus-cta__btn svg {
  transform: scaleX(-1);
}

/* ─── Responsive ───────────────────────────────────────── */

/* Tablet — slightly tighter section spacing, hero a touch shorter. */
@media (max-width: 960px) {
  .aboutus-stack {
    gap: clamp(44px, 6vw, 64px);
    max-width: 100%;
  }
  .aboutus-section__header {
    gap: 14px;
  }
  .aboutus-section__bar {
    height: 24px;
  }
}

/* Phone — single-column comfort, stats table stacks if needed,
 * CTA padding tightens. */
@media (max-width: 640px) {
  .aboutus-hero {
    padding-block: clamp(110px, 22vw, 130px) clamp(40px, 9vw, 60px);
  }
  .aboutus-hero__eyebrow {
    font-size: 0.82rem;
    padding: 7px 14px;
    gap: 8px;
  }
  .aboutus-section__header {
    gap: 12px;
  }
  .aboutus-section__bar {
    width: 3.5px;
    height: 22px;
  }
  .aboutus-qa {
    padding: 18px 16px;
    border-radius: var(--r-md);
  }
  .aboutus-qa__q {
    margin-block-end: 12px;
  }
  .aboutus-stats__row {
    padding: 12px 14px;
    gap: 10px;
  }
  .aboutus-stats__label,
  .aboutus-stats__value {
    font-size: 0.92rem;
  }
  .aboutus-stats__row--highlight .aboutus-stats__value {
    font-size: 1.06rem;
  }
  .aboutus-cta__inner {
    padding: 36px 22px;
    border-radius: var(--r-lg);
  }
  .aboutus-cta__title {
    gap: 8px;
  }
  .aboutus-cta__btn {
    padding: 13px 24px;
    font-size: 0.98rem;
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

/* Galaxy Fold closed / very narrow — stats rows stack vertically so
 * the label doesn't truncate against the value. */
@media (max-width: 380px) {
  .aboutus-stats__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .aboutus-stats__value {
    color: var(--brand);
    font-weight: 800;
  }
  .aboutus-stats__row--highlight .aboutus-stats__value {
    font-size: 1.2rem;
  }
  .aboutus-list li {
    /* Tighter bullet-to-text gap on very narrow phones; the logical
     * property auto-flips for RTL so no dir override is needed. */
    padding-inline-start: 22px;
  }
}
