/* ==========================================================================
   Tawwa — waitlist site. Warm editorial, phone first.
   Colour tokens mirror React Native/src/global.css (the hours-economy redesign)
   so the landing and the app read as one brand. One stylesheet serves EN (LTR)
   and AR (RTL): layout uses logical properties throughout.
   ========================================================================== */

:root {
  color-scheme: light dark;
  interpolate-size: allow-keywords;

  --bg: #F7F3E7;
  --paper: #FFFCF4;
  --field: #FBF8EF;
  --ink: #183F30;
  --muted: #5B6256;
  --green: #1F5841;
  --on-green: #F7F3E7;
  --gold: #AB966D;
  --gold-ink: #75603C;
  --line: #DED6C3;
  --line-soft: #EAE3D2;
  --sage: #E5EBDE;
  --tint: #F1ECDD;
  --danger: #B42318;
  --inverse: #183F30;
  --on-inverse: #F7F3E7;
  --accent-on-inverse: #CDB88E;
  --chip: #FFFCF4;

  --shadow-card:
    0 1px 0 rgba(255, 255, 255, .7) inset,
    0 1px 2px rgba(24, 63, 48, .06),
    0 28px 56px -32px rgba(24, 63, 48, .38);
  --shadow-soft: 0 18px 40px -30px rgba(24, 63, 48, .45);
  --ring: 0 0 0 4px rgba(31, 88, 65, .18);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .09 0 0 0 0 .25 0 0 0 0 .19 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-ui: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "Fraunces", Georgia, serif;
  --font-motto: "Amiri", "Noto Naskh Arabic", serif;

  --gutter: 20px;
  --max: 1120px;
  --radius: 22px;
  --ease: cubic-bezier(.2, .75, .2, 1);
  --header-h: 64px;
}

:root:lang(ar) {
  --font-display: "Alexandria", "Tajawal", system-ui, sans-serif;
  --font-ui: "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10251C;
    --paper: #1A3025;
    --field: #15291F;
    --ink: #F7F3E7;
    --muted: #C1C5B5;
    --green: #AFCCB5;
    --on-green: #143726;
    --gold: #D0BC91;
    --gold-ink: #D0BC91;
    --line: #2F4A3B;
    --line-soft: #253D30;
    --sage: #263F30;
    --tint: #13291F;
    --danger: #FF8A80;
    --inverse: #F7F3E7;
    --on-inverse: #10251C;
    --accent-on-inverse: #75603C;
    --chip: #F7F3E7;
    --shadow-card: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 28px 56px -32px rgba(0, 0, 0, .7);
    --shadow-soft: 0 18px 40px -30px rgba(0, 0, 0, .8);
    --ring: 0 0 0 4px rgba(175, 204, 181, .25);
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .97 0 0 0 0 .95 0 0 0 0 .9 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }
}

@media (min-width: 900px) {
  :root { --gutter: 32px; --header-h: 72px; }
}

/* ---------- Base ---------- */

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

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100svh;
  background-color: var(--bg);
  background-image: var(--grain);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

:root:lang(ar) body { font-size: 1.0625rem; line-height: 1.75; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
button, input { font: inherit; color: inherit; }

::selection { background: var(--green); color: var(--on-green); }

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

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left));
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--green);
  color: var(--on-green);
  font-weight: 600;
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .icon--flip { transform: scaleX(-1); }

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font: 600 1.0625rem/1 var(--font-ui);
  letter-spacing: .005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform .18s var(--ease), background-color .2s, box-shadow .25s var(--ease), color .2s;
}
.btn:active { transform: scale(.975); }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }
[dir="rtl"] .btn .icon--arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .icon--arrow { transform: scaleX(-1) translateX(3px); }

.btn--primary {
  background: var(--green);
  color: var(--on-green);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .16) inset, 0 12px 28px -14px rgba(31, 88, 65, .75);
}
.btn--primary:hover { background: color-mix(in srgb, var(--green) 86%, #000); }
@media (prefers-color-scheme: dark) {
  .btn--primary { box-shadow: 0 12px 28px -14px rgba(0, 0, 0, .8); }
  .btn--primary:hover { background: color-mix(in srgb, var(--green) 88%, #fff); }
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 70%, transparent);
}
.btn--ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); box-shadow: inset 0 0 0 1.5px var(--ink); }

.btn--inverse { background: var(--on-inverse); color: var(--inverse); }
.btn--inverse:hover { background: color-mix(in srgb, var(--on-inverse) 90%, var(--gold)); }

.btn--sm { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.btn--block { width: 100%; }

.btn__spinner {
  position: absolute;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2.5px solid currentColor;
  border-inline-end-color: transparent;
  opacity: 0;
  animation: spin .8s linear infinite;
}
.btn[aria-busy="true"] { cursor: progress; }
.btn[aria-busy="true"] .btn__label,
.btn[aria-busy="true"] .icon { opacity: 0; }
.btn[aria-busy="true"] .btn__spinner { opacity: 1; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top);
  transition: background-color .3s, box-shadow .3s;
}
.site-header.is-stuck {
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  border-radius: 10px;
}
.brand img { width: auto; height: 38px; }
.brand__word {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -.02em;
}
@media (prefers-color-scheme: dark) {
  .brand img { filter: brightness(0) invert(.94) sepia(.25) saturate(.6); }
}

.site-header__nav { display: flex; align-items: center; gap: 8px; }

.header-cta { display: none; }
@media (min-width: 760px) {
  .header-cta {
    display: inline-flex;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  .show-cta .header-cta {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .25s, transform .25s var(--ease), visibility 0s;
  }
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 70%, transparent);
  font-weight: 600;
  font-size: .9375rem;
  text-decoration: none;
  transition: border-color .2s, background-color .2s;
}
.lang:hover { border-color: var(--gold); }
.lang .icon { width: 17px; height: 17px; color: var(--gold-ink); }
.lang[lang="ar"] { font-family: "Tajawal", "Amiri", sans-serif; font-size: 1rem; }
.lang[lang="en"] { font-family: "Outfit", system-ui, sans-serif; }

/* ---------- Load choreography ---------- */

.load { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */

.hero { padding-block: 12px 72px; }
@media (min-width: 900px) { .hero { padding-block: 80px 112px; } }

.hero__grid { display: grid; gap: 20px; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 72px; }
}

.motto {
  width: fit-content;
  margin-top: 8px;
  font-family: var(--font-motto);
  font-weight: 700;
  font-size: 1.625rem;
  line-height: 1.2;
  color: var(--gold-ink);
}

.display {
  margin-top: clamp(14px, 3.4vw, 32px);
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 560;
  font-size: clamp(2.875rem, 12.4vw, 6rem);
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.display em {
  position: relative;
  display: inline-block;
  font-style: italic;
  font-weight: 440;
  color: var(--green);
  letter-spacing: -.02em;
}
:root:lang(ar) .display {
  font-weight: 800;
  font-size: clamp(2.3rem, 10.2vw, 4.5rem);
  line-height: 1.42;
  letter-spacing: 0;
}
:root:lang(ar) .display em { font-style: normal; font-weight: 800; letter-spacing: 0; }

.swash {
  position: absolute;
  inset-inline-start: -3%;
  bottom: -.12em;
  width: 106%;
  height: .26em;
  overflow: visible;
  pointer-events: none;
}
:root:lang(ar) .swash { bottom: -.06em; }
[dir="rtl"] .swash { transform: scaleX(-1); }
.swash path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.1s .75s var(--ease) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.lede {
  margin-top: 18px;
  max-width: 36ch;
  font-size: clamp(1.0625rem, 2.9vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
}
.lede strong { color: var(--ink); font-weight: 600; }

.ticks {
  display: none;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-size: .9375rem;
  font-weight: 500;
}
@media (min-width: 900px) { .ticks { display: flex; } }
.ticks li { display: inline-flex; align-items: center; gap: 7px; }
.ticks .icon { width: 17px; height: 17px; color: var(--green); stroke-width: 2.25; }

/* ---------- Join card ---------- */

.join { position: relative; padding-top: 70px; }
@media (min-width: 900px) { .join { padding-top: 64px; } }

.join-card {
  position: relative;
  padding: 30px 20px 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow-card);
}
@media (min-width: 400px) { .join-card { padding: 32px 26px 26px; } }

.join-card__peek {
  position: absolute;
  inset-inline-end: 22px;
  top: 0;
  width: 116px;
  transform: translateY(calc(-100% + 13px));
  pointer-events: none;
  animation: peek 1.1s .55s var(--ease) both;
}
@keyframes peek { from { opacity: 0; transform: translateY(calc(-100% + 46px)); } }
@media (min-width: 900px) { .join-card__peek { width: 128px; } }
.join-card.is-joined .join-card__peek { opacity: 0; transform: translateY(calc(-100% + 40px)); transition: opacity .3s, transform .4s var(--ease); }

.join-card__title {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.015em;
}
:root:lang(ar) .join-card__title { letter-spacing: 0; line-height: 1.5; font-size: 1.625rem; font-weight: 750; }
.join-card__sub { margin-top: 6px; font-size: .9375rem; color: var(--muted); }

.field { display: grid; gap: 7px; margin-top: 18px; }
.label { font-size: .875rem; font-weight: 600; }
.label .opt { font-weight: 400; color: var(--muted); }
:root:lang(ar) .label { font-size: .9375rem; }

.input,
.phone {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--field);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.input {
  appearance: none;
  padding: 14px 16px;
  font: 500 1rem/1.3 var(--font-ui);
  color: var(--ink);
}
.input::placeholder, .phone input::placeholder { color: color-mix(in srgb, var(--muted) 62%, transparent); font-weight: 400; }
.input:hover, .phone:hover { border-color: color-mix(in srgb, var(--green) 38%, var(--line)); }
.input:focus, .phone:focus-within {
  outline: none;
  border-color: var(--green);
  background: var(--paper);
  box-shadow: var(--ring);
}
.input[aria-invalid="true"], .phone:has(input[aria-invalid="true"]) {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 14%, transparent);
}

.phone { display: flex; align-items: stretch; overflow: hidden; }
[dir="rtl"] .input[dir="ltr"] { text-align: right; }
[dir="rtl"] .input[dir="ltr"]::placeholder { text-align: right; }
.phone__prefix {
  display: flex;
  align-items: center;
  padding: 0 12px 0 16px;
  border-right: 1px solid var(--line);
  font-weight: 600;
  font-size: .9375rem;
  color: var(--muted);
  font-family: "Outfit", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.phone input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border: 0;
  outline: none;
  background: transparent;
  font: 500 1rem/1.3 "Outfit", system-ui, sans-serif;
  letter-spacing: .02em;
}

.field__error {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--danger);
}
.field__error[hidden] { display: none; }

.roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--sage);
}
.role { position: relative; display: block; }
.role input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.role span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 64px;
  padding: 8px 4px;
  border-radius: 12px;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  color: var(--muted);
  transition: background-color .25s var(--ease), color .2s, box-shadow .25s var(--ease), transform .18s var(--ease);
}
:root:lang(ar) .role span { font-size: .875rem; }
.role .icon { width: 21px; height: 21px; }
.role input:hover + span { color: var(--ink); }
.role input:checked + span {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(24, 63, 48, .12), 0 0 0 1px var(--line);
}
.role input:checked + span .icon { color: var(--green); }
.role input:focus-visible + span { box-shadow: 0 0 0 3px var(--gold); }
.role input:active + span { transform: scale(.97); }

.collapse {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .4s var(--ease), opacity .3s;
}
.collapse.is-open { grid-template-rows: 1fr; opacity: 1; }
.collapse__inner { overflow: hidden; min-height: 0; padding-inline: 4px; margin-inline: -4px; padding-bottom: 4px; }

.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

.join-card .btn--block { margin-top: 22px; }

.form-status {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  color: var(--danger);
  font-size: .875rem;
  font-weight: 500;
  text-align: center;
}
.form-status[hidden] { display: none; }

.fine {
  margin-top: 14px;
  font-size: .8125rem;
  line-height: 1.5;
  text-align: center;
  color: var(--muted);
}
.fine a { white-space: nowrap; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.fine a:hover { color: var(--ink); text-decoration-color: currentColor; }

.join-success { text-align: center; padding: 4px 0 6px; }
.join-success[hidden] { display: none; }
.join-success img {
  width: 132px;
  margin: 0 auto 10px;
  animation: pop .8s var(--ease) both;
}
@keyframes pop { from { opacity: 0; transform: scale(.7) rotate(-8deg); } }
.join-success h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -.02em;
}
:root:lang(ar) .join-success h2 { letter-spacing: 0; line-height: 1.5; font-weight: 800; font-size: 1.75rem; }
.join-success h2:focus { outline: none; }
.join-success p { margin: 10px auto 0; max-width: 32ch; color: var(--muted); }
.join-success strong { color: var(--ink); word-break: break-all; }
.join-success .btn { margin-top: 22px; }

.count {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: .9375rem;
  color: var(--muted);
  animation: rise .6s var(--ease) both;
}
.count[hidden] { display: none; }
.count b { color: var(--ink); font-family: var(--font-num); font-weight: 600; font-size: 1.0625rem; }
.count__spark { color: var(--gold); font-size: 1rem; }

/* ---------- Ledger band ---------- */

.ledger { border-block: 1px solid var(--line); }
.ledger__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-block: 18px 6px;
}
.ledger__head h2,
.kicker {
  font-family: var(--font-ui);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.ledger__head span { font-size: .8125rem; color: var(--muted); }
:root:lang(ar) .ledger__head h2,
:root:lang(ar) .kicker { letter-spacing: 0; font-size: .9375rem; }

.ledger__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-block: 18px;
  border-top: 1px dashed var(--line);
}
.ledger__row:first-child { border-top: 0; }
.ledger__num {
  font-family: var(--font-num);
  font-optical-sizing: auto;
  font-weight: 460;
  font-size: clamp(2.75rem, 12vw, 4.25rem);
  line-height: .95;
  letter-spacing: -.04em;
  font-variant-numeric: lining-nums;
  white-space: nowrap;
}
.ledger__num sup { font-size: .5em; vertical-align: .75em; margin-inline-start: .04em; color: var(--gold); letter-spacing: 0; }
.ledger__label { max-width: 16ch; text-align: end; font-size: .9375rem; line-height: 1.4; color: var(--muted); }

@media (min-width: 900px) {
  .ledger__rows { display: grid; grid-template-columns: repeat(3, 1fr); }
  .ledger__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 28px 32px 32px;
    border-top: 0;
    border-inline-start: 1px dashed var(--line);
  }
  .ledger__row:first-child { border-inline-start: 0; padding-inline-start: 0; }
  .ledger__label { text-align: start; }
}

/* ---------- Sections ---------- */

.section { padding-block: 88px; }
@media (min-width: 900px) { .section { padding-block: 128px; } }
.section--tint {
  background: var(--tint);
  border-block: 1px solid var(--line-soft);
}

.kicker { display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--gold); }

.h2 {
  margin-top: 16px;
  max-width: 17ch;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 560;
  font-size: clamp(2.125rem, 8.6vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.h2 em { font-style: italic; font-weight: 440; color: var(--green); }
:root:lang(ar) .h2 { font-weight: 750; font-size: clamp(1.875rem, 7.6vw, 3.25rem); line-height: 1.5; letter-spacing: 0; }
:root:lang(ar) .h2 em { font-style: normal; font-weight: 750; }

.section-lede {
  margin-top: 18px;
  max-width: 44ch;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- Why ---------- */

.split { display: grid; gap: 36px; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 72px; } }

.photo { margin: 0; }
.photo__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.photo__frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo figcaption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: .8125rem;
  color: var(--muted);
}
.photo figcaption::before { content: ""; width: 18px; height: 1px; background: var(--gold); }

.features { display: grid; gap: 14px; margin-top: 44px; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 64px; } }

.feature {
  position: relative;
  padding: 24px 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
@media (hover: hover) {
  .feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
}
.feature__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.feature__icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--sage);
  color: var(--green);
}
.feature__icon .icon { width: 23px; height: 23px; }
.feature__num {
  font-family: var(--font-num);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--gold-ink);
}
.feature h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
}
:root:lang(ar) .feature h3 { letter-spacing: 0; line-height: 1.55; font-size: 1.3125rem; font-weight: 700; }
.feature p { margin-top: 8px; color: var(--muted); }

/* ---------- How it works + record ---------- */

.how { display: grid; gap: 56px; }
@media (min-width: 900px) { .how { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: center; gap: 88px; } }

.steps { margin: 36px 0 0; padding: 0; list-style: none; }
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  font-family: var(--font-num);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--gold-ink);
}
.step h3 { margin-top: 2px; font-size: 1.1875rem; font-weight: 600; line-height: 1.3; }
.step p { margin-top: 4px; color: var(--muted); }

.record-stage { position: relative; padding: 8px 6px 40px; }
.record {
  position: relative;
  padding: 22px 20px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow-card);
  transform: rotate(-1.5deg);
}
[dir="rtl"] .record { transform: rotate(1.5deg); }
.record::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  pointer-events: none;
}
.record__top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.record__label {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
:root:lang(ar) .record__label { letter-spacing: 0; font-size: .875rem; }
.tag {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--green);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
:root:lang(ar) .tag { letter-spacing: 0; font-size: .8125rem; }
.record__name {
  position: relative;
  margin-top: 18px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.2;
}
:root:lang(ar) .record__name { font-style: normal; font-weight: 700; font-size: 1.375rem; }
.record__meta { position: relative; margin-top: 6px; font-size: .8125rem; color: var(--muted); }
.record__total {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.record__total strong {
  font-family: var(--font-num);
  font-size: 3.75rem;
  font-weight: 460;
  line-height: .9;
  letter-spacing: -.04em;
}
.record__total span { font-size: .9375rem; font-weight: 500; color: var(--muted); }
.record__list { position: relative; margin: 6px 0 0; padding: 0; list-style: none; }
.record__item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 14px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.record__item:last-child { border-bottom: 0; }
.record__item b { font-weight: 600; font-size: .9375rem; line-height: 1.3; }
.record__item small { grid-column: 1; font-size: .8125rem; color: var(--muted); }
.record__hrs {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-num);
  font-size: 1.125rem;
  font-weight: 500;
  white-space: nowrap;
}
.record__hrs .icon { width: 18px; height: 18px; color: var(--green); stroke-width: 2; }
.record__stamp {
  position: absolute;
  inset-inline-end: 12px;
  top: 58px;
  width: 104px;
  transform: rotate(-14deg);
  mix-blend-mode: multiply;
  opacity: .92;
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  .record__stamp { mix-blend-mode: screen; filter: invert(1) hue-rotate(180deg) saturate(.6) brightness(1.1); opacity: .8; }
}
.js .record__stamp { opacity: 0; transform: rotate(-14deg) scale(1.22); }
.js .is-in .record__stamp { animation: stamp .55s .5s cubic-bezier(.3, 1.4, .5, 1) forwards; }
@keyframes stamp { to { opacity: .92; transform: rotate(-14deg) scale(1); } }

/* ---------- Proof strip ---------- */

.proof { margin-top: 40px; }
.proof__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(84%, 380px);
  gap: 14px;
  margin-inline: calc(-1 * max(var(--gutter), env(safe-area-inset-left)));
  padding: 4px max(var(--gutter), env(safe-area-inset-left)) 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), env(safe-area-inset-left));
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.proof__track::-webkit-scrollbar { display: none; }
.proof__track:focus-visible { outline-offset: -3px; border-radius: 12px; }

.story {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  scroll-snap-align: start;
}
.story__img { position: relative; }
.story__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.story__date {
  position: absolute;
  inset-inline-start: 12px;
  bottom: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, #10251C 72%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #F7F3E7;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.story__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 20px 20px 22px; }
.story__where { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
:root:lang(ar) .story__where { letter-spacing: 0; font-size: .875rem; }
.story h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.015em;
}
:root:lang(ar) .story h3 { letter-spacing: 0; line-height: 1.55; font-size: 1.375rem; font-weight: 700; }
.story p { font-size: .9375rem; color: var(--muted); }
.story__stats {
  display: flex;
  gap: 26px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.stat b {
  display: block;
  font-family: var(--font-num);
  font-size: 1.875rem;
  font-weight: 480;
  line-height: 1;
  letter-spacing: -.03em;
}
.stat span { display: block; margin-top: 4px; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
:root:lang(ar) .stat span { letter-spacing: 0; font-size: .875rem; }

.dots { display: flex; justify-content: center; gap: 2px; margin-top: 10px; }
.dots button {
  display: grid;
  place-items: center;
  width: 36px; height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.dots button::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--line);
  transition: width .35s var(--ease), background-color .35s;
}
.dots button[aria-current="true"]::before { width: 24px; background: var(--green); }

@media (min-width: 900px) {
  .proof__track {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }
  .dots { display: none; }
}

.partners { margin-top: 48px; text-align: center; }
.partners p { font-size: .875rem; color: var(--muted); }
.partners ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.partners li {
  display: grid;
  place-items: center;
  height: 68px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--chip);
}
.partners img { width: auto; height: 42px; filter: grayscale(1); opacity: .72; transition: filter .3s, opacity .3s; }
.partners li:hover img { filter: none; opacity: 1; }

/* ---------- Audience ---------- */

.audience { display: grid; gap: 14px; margin-top: 44px; }
@media (min-width: 760px) { .audience { grid-template-columns: 1fr 1fr; gap: 18px; } }

.aud {
  display: flex;
  flex-direction: column;
  padding: 28px 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sage);
}
.aud--biz { background: color-mix(in srgb, var(--gold) 17%, var(--paper)); }
.aud__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--paper);
  color: var(--green);
  box-shadow: 0 0 0 1px var(--line);
}
.aud__icon .icon { width: 24px; height: 24px; }
.aud h3 {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.015em;
}
:root:lang(ar) .aud h3 { letter-spacing: 0; line-height: 1.55; font-size: 1.4375rem; font-weight: 700; }
.aud p { margin-top: 10px; color: var(--muted); }
.aud ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-weight: 500; font-size: .9375rem; }
.aud li { display: flex; align-items: flex-start; gap: 10px; }
.aud li .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--green); stroke-width: 2.25; }
.aud .btn { margin-top: 26px; align-self: flex-start; }
@media (max-width: 420px) { .aud .btn { align-self: stretch; } }

/* ---------- FAQ ---------- */

.faq-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; } }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding-block: 16px;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline-offset: 4px; }
.plus {
  position: relative;
  flex: none;
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background-color .3s, border-color .3s, color .3s;
}
.plus::before, .plus::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 1.75px;
  border-radius: 2px;
  background: currentColor;
  translate: -50% -50%;
  transition: rotate .35s var(--ease);
}
.plus::after { rotate: 90deg; }
.faq details[open] .plus { background: var(--green); border-color: var(--green); color: var(--on-green); }
.faq details[open] .plus::after { rotate: 0deg; }
.faq details::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size .4s var(--ease), content-visibility .4s allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }
.faq details p { padding-bottom: 22px; max-width: 58ch; color: var(--muted); }
.faq details a { text-underline-offset: 3px; }

/* ---------- Closing band ---------- */

.closing-wrap { padding-block: 16px 24px; }
.closing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 56px 24px 0;
  border-radius: 32px;
  background: var(--inverse);
  color: var(--on-inverse);
  text-align: center;
}
.closing::before {
  content: "لوطني أعطي";
  position: absolute;
  z-index: -1;
  inset-inline: -10%;
  top: 38%;
  font-family: var(--font-motto);
  font-weight: 700;
  font-size: clamp(6rem, 34vw, 16rem);
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  color: var(--gold);
  opacity: .1;
  direction: rtl;
}
.closing .kicker { justify-content: center; color: var(--accent-on-inverse); }
.closing .kicker::before { display: none; }
.closing h2 {
  max-width: 16ch;
  margin: 16px auto 0;
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(2.25rem, 9.5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.closing h2 em { font-style: italic; font-weight: 440; color: var(--accent-on-inverse); }
:root:lang(ar) .closing h2 { font-weight: 800; font-size: clamp(2rem, 8.6vw, 3.75rem); line-height: 1.5; letter-spacing: 0; }
:root:lang(ar) .closing h2 em { font-style: normal; font-weight: 800; }
.closing p { max-width: 38ch; margin: 18px auto 0; color: color-mix(in srgb, var(--on-inverse) 78%, transparent); font-size: 1.0625rem; }
.closing .btn { margin-top: 30px; }
.closing__mascot {
  width: 190px;
  margin: 26px auto 0;
  transform-origin: 50% 100%;
  animation: bob 5s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-6px) rotate(-1.5deg); } }
@media (min-width: 900px) { .closing { padding-top: 88px; } .closing__mascot { width: 220px; } }

/* ---------- Footer ---------- */

.site-footer { padding-block: 28px calc(28px + env(safe-area-inset-bottom)); font-size: .875rem; color: var(--muted); }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand img { height: 30px; width: auto; }
@media (prefers-color-scheme: dark) { .footer__brand img { filter: brightness(0) invert(.94) sepia(.25) saturate(.6); } }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
}
.footer__links a:hover { color: var(--ink); }
.footer__links .icon { width: 18px; height: 18px; }

/* ---------- Mobile dock ---------- */

.dock {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 30;
  padding: 12px max(16px, env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 55%, color-mix(in srgb, var(--bg) 0%, transparent));
  transform: translateY(110%);
  visibility: hidden;
  transition: transform .4s var(--ease), visibility 0s .4s;
}
.show-cta .dock { transform: none; visibility: visible; transition: transform .45s var(--ease), visibility 0s; }
@media (min-width: 760px) { .dock { display: none; } }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .record__stamp { opacity: .92; transform: rotate(-14deg); }
}
