/* ==========================================================================
   Varden landing page
   Implemented from the "Varden Landing" design canvas.

   The page ships every string in both English and Arabic. Each localised
   block carries data-lang="en" or data-lang="ar"; the rule under "Language
   gate" hides the inactive one. Typographic differences between the two
   scripts (size, line-height, letter-spacing, the uppercase/letterspaced
   Latin labels that Arabic sets plain) live in html[lang="ar"] overrides
   next to their base rule rather than in a duplicated Arabic stylesheet.
   ========================================================================== */

/* --------------------------------------------------------------- tokens -- */

:root {
  --bg: #141719;
  --bg-alt: #1a1d1f;
  --bg-raised: #202426;

  --fg: #f0ede6;
  --fg-muted: #bbbab5;
  --fg-dim: #8c8880;

  --accent: #bba788;
  --accent-50: rgba(187, 167, 136, 0.5);
  --accent-22: rgba(187, 167, 136, 0.22);
  --accent-wash: rgba(187, 167, 136, 0.08);
  --accent-edge: rgba(187, 167, 136, 0.4);
  --warn: #d9a15c;

  --line: #49453e;
  --line-soft: rgba(240, 237, 230, 0.06);
  --line-faint: rgba(240, 237, 230, 0.07);
  --hairline: rgba(240, 237, 230, 0.08);
  --wash: rgba(240, 237, 230, 0.06);

  /* Arimo is metric-matched to Arial, which is what the sales deck sets. */
  --sans-latin: "Arimo", Arial, Helvetica, sans-serif;
  --sans-arabic: "Noto Sans Arabic", "Arimo", Arial, sans-serif;
  --sans: var(--sans-latin);

  --shell: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 8px;
  --radius-sm: 4px;

  --section-y: clamp(72px, 9vw, 128px);
  --section-gap: clamp(36px, 4vw, 56px);
}

html[lang="ar"] {
  --sans: var(--sans-arabic);
}

/* ----------------------------------------------------------------- base -- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* Every container on this page spaces its children with flex/grid gap, so
   the default block margins are only ever in the way. */
h1,
h2,
h3,
p,
dl,
dd,
ol,
ul {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Language gate. !important so it beats the state rules (.ask.is-sent)
   further down, which resolve to the same specificity. */
html[lang="en"] [data-lang="ar"],
html[lang="ar"] [data-lang="en"] {
  display: none !important;
}

/* Hidden by clipping rather than by a negative offset: in RTL the inline-end
   edge is on the left, so a left:-9999px link lands inside the scrollable
   overflow region and gives the whole page 9999px of horizontal scroll. */
.skip-link {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  z-index: 40;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 14px;
  border-end-end-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  padding: 12px 18px;
}

/* -------------------------------------------------------------- keyframes -- */

/* Both drive the hero clip: the bars grow in from a flat line, and a
   playhead sweeps to the end of the flagged window. */
@keyframes vd-rise {
  from { transform: scaleY(0.06); }
  to   { transform: scaleY(1); }
}

@keyframes vd-sweep {
  from { left: 0; }
  to   { left: 64%; }
}

/* ------------------------------------------------------------- primitives -- */

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

.eyebrow {
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

html[lang="ar"] .eyebrow {
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

/* The rule-and-number header that opens every numbered section. */
.rubric {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

html[lang="ar"] .rubric {
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

.label {
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.label--accent {
  color: var(--accent);
}

html[lang="ar"] .label {
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

.footnote {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-dim);
  max-width: 70ch;
}

html[lang="ar"] .footnote {
  line-height: 1.8;
}

.sources {
  font-size: 12px;
  line-height: 1.5;
  color: var(--fg-dim);
}

html[lang="ar"] .sources {
  text-align: end;
}

/* --------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
}

.btn--primary:hover {
  background: var(--fg);
  color: var(--bg);
}

.btn--quiet {
  background: none;
  border-color: var(--line);
  color: var(--fg);
  font-weight: 500;
}

.btn--quiet:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--sm {
  font-size: 13px;
  line-height: 1;
  padding: 10px 14px;
}

.btn--lg {
  font-size: 15px;
  line-height: 1;
  padding: 15px 22px;
}

html[lang="ar"] .btn--sm {
  font-size: 14px;
}

/* ---------------------------------------------------------------- header -- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(20, 23, 25, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.site-header .shell {
  display: flex;
  align-items: center;
  gap: 16px 28px;
  flex-wrap: wrap;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
}

.brand__mark {
  font-family: var(--sans-latin);
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0.22em;
}

.brand__tag {
  font-family: var(--sans-latin);
  font-weight: 700;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-inline-start: auto;
  font-size: 14px;
}

.nav a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav a:hover {
  color: var(--fg);
}

html[lang="ar"] .nav {
  font-size: 15px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.lang button {
  background: none;
  border: none;
  color: var(--fg-muted);
  font-family: var(--sans-latin);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  padding: 7px 10px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lang button[lang="ar"] {
  font-family: var(--sans-arabic);
  font-size: 14px;
  padding: 6px 10px 5px;
}

.lang button[aria-pressed="true"] {
  background: var(--fg);
  color: var(--bg);
}

/* ------------------------------------------------------------------ hero -- */

.hero {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 112px) var(--gutter) clamp(64px, 8vw, 112px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
}

.hero h1 {
  font-weight: 700;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}

html[lang="ar"] .hero h1 {
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.3;
  letter-spacing: 0;
}

.hero__lede {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.4;
  color: var(--accent);
  text-wrap: pretty;
}

html[lang="ar"] .hero__lede {
  line-height: 1.7;
}

.hero__body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 52ch;
  text-wrap: pretty;
}

html[lang="ar"] .hero__body {
  line-height: 1.9;
}

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

.hero__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-dim);
}

.hero__facts b {
  display: block;
  color: var(--fg);
}

html[lang="ar"] .hero__facts {
  font-size: 14px;
  line-height: 1.75;
}

/* -------------------------------------------------- hero: flagged concern -- */

/* Illustrative only — the alert, clip and metadata are sample data from the
   design canvas, not a live feed. */
.alert {
  min-width: 0;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 80px -48px rgba(0, 0, 0, 0.9);
}

.alert__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.alert__tag {
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

html[lang="ar"] .alert__tag {
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

.alert__state {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  line-height: 1;
  color: var(--fg-muted);
}

html[lang="ar"] .alert__state {
  font-size: 13px;
}

.alert__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.alert__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.alert__type {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.alert__label {
  font-size: 12px;
  line-height: 1.2;
  color: var(--fg-dim);
}

.alert__kind {
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
}

html[lang="ar"] .alert__label {
  font-size: 13px;
  line-height: 1.5;
}

html[lang="ar"] .alert__kind {
  line-height: 1.5;
}

.clip {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--line-faint);
  border-radius: 6px;
  padding: 14px;
}

.clip__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  line-height: 1.4;
  color: var(--fg-dim);
}

.clip__flagged {
  color: var(--accent);
}

html[lang="ar"] .clip__meta {
  font-size: 13px;
}

/* The waveform is 72 static bars; --h is each bar's height in percent and
   --i its index, which staggers the grow-in. */
.wave {
  position: relative;
  height: 64px;
}

.wave__window {
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: 36.1111%;
  width: 27.7778%;
  background: var(--accent-wash);
  border-left: 1px solid var(--accent-edge);
  border-right: 1px solid var(--accent-edge);
}

.wave__bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}

.wave__bars i {
  flex: 1;
  height: calc(var(--h) * 1%);
  border-radius: 1px;
  background: var(--line);
  transform-origin: center;
  animation: vd-rise 0.5s cubic-bezier(0.3, 0, 0.2, 1) calc(0.25s + var(--i) * 0.03s) both;
}

.wave__bars i.is-flagged {
  background: var(--accent);
}

.wave__head {
  position: absolute;
  top: -6px;
  bottom: -6px;
  width: 1px;
  background: var(--fg);
  left: 64%;
  animation: vd-sweep 2.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

.clip__scale {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  line-height: 1;
  color: var(--fg-dim);
  font-variant-numeric: tabular-nums;
}

.alert__facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px 20px;
  font-size: 13px;
  line-height: 1.4;
}

.alert__facts dt {
  color: var(--fg-dim);
}

html[lang="ar"] .alert__facts {
  gap: 6px 20px;
  font-size: 14px;
  line-height: 1.7;
}

.alert__foot {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}

/* Static stand-ins for the review controls — the panel is a picture of the
   product, so they are spans rather than buttons. */
.pill {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--fg-muted);
  font-size: 13px;
  line-height: 1;
  padding: 9px 14px;
}

.pill--solid {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-weight: 700;
  padding: 10px 14px;
}

html[lang="ar"] .pill {
  font-size: 14px;
}

/* -------------------------------------------------------------- sections -- */

.section {
  padding-block: var(--section-y);
}

.section .shell {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
}

.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

/* Sections the design runs straight on from the one above. */
.section--tight {
  padding-top: 0;
}

.section--short {
  padding-block: clamp(64px, 8vw, 104px);
  --section-gap: clamp(32px, 4vw, 48px);
}

.section__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 820px;
}

.section h2 {
  font-weight: 700;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

html[lang="ar"] .section h2 {
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.35;
  letter-spacing: 0;
}

.section__lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.45;
  color: var(--accent);
  text-wrap: pretty;
}

html[lang="ar"] .section__lede {
  line-height: 1.8;
}

.section__close {
  font-size: 18px;
  line-height: 1.5;
  color: var(--fg);
  max-width: 60ch;
  text-wrap: pretty;
}

html[lang="ar"] .section__close {
  line-height: 1.85;
}

/* The two-sided statement of the problem under "The need". */
.pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}

.pair__card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pair__card--accent {
  border-color: var(--accent);
  background: var(--bg-raised);
}

.pair__lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
}

html[lang="ar"] .pair__lines {
  gap: 4px;
  line-height: 1.5;
}

/* ----------------------------------------------- what safety is worth -- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 36px;
}

.stat {
  border-top: 2px solid var(--accent);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat__figure {
  font-weight: 700;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

html[lang="ar"] .stat__figure {
  line-height: 1.1;
  letter-spacing: 0;
}

.stat__name {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
}

html[lang="ar"] .stat__name {
  font-size: 18px;
  line-height: 1.5;
}

.stat__note {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-muted);
  text-wrap: pretty;
}

html[lang="ar"] .stat__note {
  line-height: 1.85;
}

.pullquote {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.pullquote__line {
  font-weight: 700;
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.35;
  max-width: 46ch;
  text-wrap: pretty;
}

html[lang="ar"] .pullquote__line {
  line-height: 1.7;
}

/* ---------------------------------------------------------------- cards -- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}

.cards--two {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card--raised {
  background: var(--bg-raised);
}

.card h3 {
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
}

.card p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-muted);
  text-wrap: pretty;
}

html[lang="ar"] .card h3 {
  line-height: 1.5;
}

html[lang="ar"] .card p {
  line-height: 1.85;
}

.card__fill {
  flex: 1;
}

.card__terms {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

html[lang="ar"] .card__terms {
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}

.chip {
  align-self: flex-start;
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 5px 7px;
}

html[lang="ar"] .chip {
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  padding: 5px 8px;
}

.coverage {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
}

.coverage i {
  color: var(--accent);
  font-style: normal;
}

html[lang="ar"] .coverage {
  gap: 6px;
  line-height: 1.6;
}

/* The .card p rule sets 15px for the coverage note; the design runs it one
   step smaller than the two detection cards beside it. */
.card .coverage + p {
  font-size: 15px;
}

/* ------------------------------------------------ detection to review -- */

/* The hairline grid is the 2px gap showing through from the list's own
   background, so each cell paints its section's ground colour. */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.step {
  background: var(--bg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step--outcome {
  background: var(--bg-raised);
}

.step--outcome h3 {
  color: var(--accent);
}

.step__no {
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  color: var(--accent);
}

.step h3 {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
}

.step p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg-muted);
}

html[lang="ar"] .step h3 {
  line-height: 1.5;
}

html[lang="ar"] .step p {
  line-height: 1.8;
}

/* The arrow points into the outcome cell, so it follows reading direction. */
html[lang="ar"] .step__no--arrow {
  transform: scaleX(-1);
  display: inline-block;
}

/* ---------------------------------------------- privacy commitments -- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 24px 64px;
  align-items: end;
}

.split__note {
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 52ch;
  text-wrap: pretty;
}

html[lang="ar"] .split__note {
  line-height: 1.9;
}

.commitments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.commitments li {
  background: var(--bg-alt);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.15s;
}

.commitments li:hover {
  background: var(--bg-raised);
}

.commitment__no {
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  color: var(--accent);
}

.commitments h3 {
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
}

.commitments p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-muted);
  text-wrap: pretty;
}

html[lang="ar"] .commitments h3 {
  line-height: 1.5;
}

html[lang="ar"] .commitments p {
  line-height: 1.85;
}

.retention {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 32px 64px;
  align-items: start;
}

.retention__chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.retention__bar,
.retention__legend {
  display: grid;
  grid-template-columns: 4fr 2fr 4fr;
  gap: 3px;
}

.retention__bar {
  height: 30px;
}

.retention__loop {
  background: var(--wash);
}

.retention__bar > :first-child {
  border-radius: 4px 0 0 4px;
}

.retention__bar > :last-child {
  border-radius: 0 4px 4px 0;
}

.retention__kept {
  background: var(--accent);
  border-radius: 2px;
}

.retention__legend {
  font-size: 12px;
  line-height: 1.4;
  color: var(--fg-dim);
}

.retention__legend-kept {
  color: var(--fg);
}

html[lang="ar"] .retention__legend {
  font-size: 13px;
  line-height: 1.6;
}

.retention__claim {
  border-top: 2px solid var(--accent);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.retention__head {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
}

.retention__claim p:not(.retention__head) {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-muted);
  text-wrap: pretty;
}

html[lang="ar"] .retention__head {
  line-height: 1.6;
}

html[lang="ar"] .retention__claim p:not(.retention__head) {
  line-height: 1.85;
}

/* -------------------------------------------------------------- roadmap -- */

.timeline {
  display: flex;
  flex-direction: column;
}

.timeline__scale {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
  padding-bottom: 10px;
}

html[lang="ar"] .timeline__scale {
  font-size: 13px;
  letter-spacing: 0;
}

.timeline__last {
  display: flex;
  justify-content: space-between;
}

.timeline__track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  height: 4px;
}

.timeline__track > span {
  border-radius: 2px;
}

.timeline__track > :nth-child(1) { background: var(--accent); }
.timeline__track > :nth-child(2) { background: var(--accent-50); }
.timeline__track > :nth-child(3) { background: var(--accent-22); }

.phases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 36px;
  padding-top: 28px;
}

/* The phases sit under a left-to-right time axis, so their order stays
   left-to-right in Arabic while each card itself reads right-to-left. */
html[lang="ar"] .phases {
  direction: ltr;
}

html[lang="ar"] .phase {
  direction: rtl;
}

.phase {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.phase__when {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 12px;
  line-height: 1;
  color: var(--fg-dim);
}

.phase__when b {
  font-weight: 700;
  color: var(--accent);
}

.phase h3 {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.25;
  text-wrap: pretty;
}

.phase p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-muted);
  text-wrap: pretty;
}

.phase__status {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-dim);
}

.phase__status b {
  font-weight: 700;
  color: var(--accent);
}

html[lang="ar"] .phase__when {
  font-size: 13px;
}

html[lang="ar"] .phase h3 {
  font-size: 23px;
  line-height: 1.5;
}

html[lang="ar"] .phase p {
  line-height: 1.85;
}

html[lang="ar"] .phase__status {
  line-height: 1.8;
}

/* ------------------------------------------------------------- founders -- */

.founders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}

.founder {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.founder__name {
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
}

.founder__role {
  font-weight: 700;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

html[lang="ar"] .founder__name {
  line-height: 1.5;
}

html[lang="ar"] .founder__role {
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

.founder__mail {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 1;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.founder__mail:hover {
  color: var(--accent);
}

.founder__mail > :first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ------------------------------------------------------------- the ask -- */

.ask {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.ask__intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.promises {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.promises li {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.promises span {
  font-weight: 700;
  font-size: 12px;
  color: var(--accent);
}

.promises b {
  font-weight: 700;
  font-size: 19px;
  line-height: 1.35;
}

html[lang="ar"] .promises li {
  padding: 14px 0;
}

html[lang="ar"] .promises b {
  line-height: 1.6;
}

.ask__note {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 48ch;
  text-wrap: pretty;
}

html[lang="ar"] .ask__note {
  line-height: 1.85;
}

/* ---------------------------------------------------------------- form -- */

.form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 16px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  color: var(--fg-muted);
}

html[lang="ar"] .field {
  font-size: 13px;
  line-height: 1.2;
}

.field--wide {
  grid-column: 1 / -1;
}

.field input,
.field select,
.field textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.2;
  outline: none;
  transition: border-color 0.15s;
}

.field textarea {
  line-height: 1.4;
  resize: vertical;
}

/* An LTR email field keeps the Latin font whichever language is active. */
.field input[type="email"] {
  font-family: var(--sans-latin);
}

html[lang="ar"] .field input,
html[lang="ar"] .field select,
html[lang="ar"] .field textarea {
  line-height: 1.4;
}

html[lang="ar"] .field textarea {
  line-height: 1.7;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.form__foot {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.form__error {
  margin-inline-end: auto;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.5;
  color: var(--warn);
  max-width: 44ch;
}

.sent {
  background: var(--bg-raised);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 32px 24px;
  flex-direction: column;
  gap: 12px;
}

.sent__tag {
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.16em;
  color: var(--accent);
}

html[lang="ar"] .sent__tag {
  font-size: 14px;
  letter-spacing: 0;
}

.sent__head {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
}

html[lang="ar"] .sent__head {
  line-height: 1.6;
}

.sent .btn--quiet {
  align-self: flex-start;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1;
  padding: 10px 14px;
  font-weight: 400;
}

/* Confirmation state: the form is replaced in place, so the two-column ask
   keeps its shape. */
.ask .sent {
  display: none;
}

.ask.is-sent .form {
  display: none;
}

.ask.is-sent .sent {
  display: flex;
}

/* -------------------------------------------------------------- footer -- */

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer .shell {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: center;
  justify-content: space-between;
  padding-block: 32px;
  font-size: 13px;
  color: var(--fg-dim);
}

.site-footer__brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer__mark {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.site-footer__mark .brand__mark {
  font-size: 14px;
  color: var(--fg);
}

.site-footer__mark .brand__tag {
  font-size: 9px;
}

.site-footer__links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.site-footer__links a {
  color: var(--fg-dim);
  text-decoration: none;
  transition: color 0.15s;
}

.site-footer__links a:hover {
  color: var(--fg);
}

/* ------------------------------------------------------------- narrow -- */

@media (max-width: 720px) {
  .site-header .shell {
    gap: 12px 18px;
  }

  .nav {
    order: 3;
    width: 100%;
    margin-inline-start: 0;
    gap: 14px 18px;
  }

  .header-actions {
    margin-inline-start: auto;
  }

  .card,
  .pair__card {
    padding: 24px 20px;
  }
}

/* ------------------------------------------------------ reduced motion -- */

/* The clip's bars and playhead land on their finished state rather than
   animating into it. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .wave__bars i,
  .wave__head {
    animation: none;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}
