/* ════════════════════════════════════════════════════════════════════
   Edmanly Landing · Design tokens
   Light/dark via [data-theme], EN/AR via [lang], RTL via [dir]
   ════════════════════════════════════════════════════════════════════ */

:root {
  /* Brand */
  --navy:        #0F1B2D;
  --navy-light:  #1A2B47;
  --navy-deeper: #0A1322;
  --brand:       #2D7FF9;
  --brand-light: #5B9DFF;
  --brand-dark:  #1E6FE5;

  /* Status */
  --completed:   #1FA971;
  --cancelled:   #D14545;
  --funded:      #2D7FF9;
  --delivered:   #7B5CFF;
  --accepted:    #E58A3A;

  /* Status pill (lighter — chat badge style) */
  --pill-funded-bg:    #DCEAFF;  --pill-funded-fg:    #2A5DD0;
  --pill-completed-bg: #D7F1E2;  --pill-completed-fg: #137E4D;
  --pill-accepted-bg:  #DEE4F1;  --pill-accepted-fg:  #3A4F75;
  --pill-delivered-bg: #E3DFF7;  --pill-delivered-fg: #4F3FA8;
  --pill-cancelled-bg: #FBDBDB;  --pill-cancelled-fg: #A93434;

  /* Light theme surfaces & ink */
  --surface:        #FFFFFF;
  --surface-muted:  #F8FAFC;
  --surface-subtle: #EEF1F6;
  --ink:        #0B1320;
  --ink-muted:  #6B7A8F;
  --ink-soft:   #94A3B8;
  --hairline:   #E5EAF1;
  --hairline-strong: #D6DBE3;

  /* Card gradient (navy) */
  --navy-card: linear-gradient(135deg, #0F1B2D 0%, #14274A 55%, #1E3567 100%);
  --navy-card-glow: radial-gradient(140% 90% at 100% 0%, rgba(91,157,255,0.22) 0%, transparent 60%);

  /* Elevation */
  --elev-1: 0 2px 8px -2px rgba(15,27,45,0.06);
  --elev-2: 0 4px 24px -8px rgba(15,27,45,0.10);
  --elev-3: 0 14px 40px -16px rgba(15,27,45,0.22);
  --glow-brand: 0 30px 80px -40px rgba(45,127,249,0.55);

  /* Type */
  --font-en: 'Inter', system-ui, -apple-system, sans-serif;
  --font-ar: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif;
  --font-num: 'Inter', system-ui, sans-serif;

  /* Radii */
  --r-pill: 999px;
  --r-btn:  14px;
  --r-cta:  16px;
  --r-card: 20px;
  --r-card-lg: 24px;
}

/* ── Dark theme ─────────────────────────────────────────────────── */
html[data-theme="dark"] {
  --surface:        #0F1525;
  --surface-muted:  #08101F;
  --surface-subtle: #131C30;
  --ink:        #F0F4FA;
  --ink-muted:  #94A3B8;
  --ink-soft:   #5E6E85;
  --hairline:   #1E2A41;
  --hairline-strong: #283856;
  --navy-card: linear-gradient(135deg, #0A1424 0%, #102043 55%, #142D5C 100%);

  --pill-funded-bg:    rgba(45,127,249,0.18);  --pill-funded-fg:    #6FA6FF;
  --pill-completed-bg: rgba(31,169,113,0.20);  --pill-completed-fg: #4ADC8E;
  --pill-accepted-bg:  rgba(110,131,170,0.20); --pill-accepted-fg:  #8AA0CB;
  --pill-delivered-bg: rgba(123,92,255,0.20);  --pill-delivered-fg: #B5A5FF;
  --pill-cancelled-bg: rgba(209,69,69,0.20);   --pill-cancelled-fg: #FF8A8A;

  --elev-1: 0 2px 8px -2px rgba(0,0,0,0.4);
  --elev-2: 0 4px 24px -8px rgba(0,0,0,0.5);
  --elev-3: 0 14px 40px -16px rgba(0,0,0,0.6);
}

/* ════════════════════════════════════════════════════════════════════
   Reset + base
   ════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-en);
  font-size: 16px; line-height: 1.55;
  color: var(--ink);
  background: var(--surface-muted);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .25s ease, color .25s ease;
}
html[lang="ar"] body { font-family: var(--font-ar); }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
button { font: inherit; }

::selection { background: rgba(45,127,249,0.25); }

/* ── Accessibility: focus rings + skip link ──────────────────── */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
/* Form fields already show a focus glow — suppress double-outline */
.form-field input:focus-visible,
.form-field textarea:focus-visible,
.form-field select:focus-visible {
  outline: none;
}

.skip-link {
  position: absolute;
  top: -40px; left: 12px;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px; font-weight: 600;
  z-index: 200;
  transition: top .15s ease;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
  color: #fff;
}
html[dir="rtl"] .skip-link { left: auto; right: 12px; }

/* Visually-hidden helper (for sr-only labels) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── i18n visibility ────────────────────────────────────────────── */
html:not([lang="ar"]) .lang-ar { display: none !important; }
html[lang="ar"] .lang-en { display: none !important; }
html[lang="ar"] .num-en { display: none !important; }
html:not([lang="ar"]) .num-ar { display: none !important; }

/* ── Container ──────────────────────────────────────────────────── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: 32px;
}
@media (max-width: 640px) {
  .container { padding-inline: 20px; }
}

/* ════════════════════════════════════════════════════════════════════
   Typography
   ════════════════════════════════════════════════════════════════════ */
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.022em; line-height: 1.1; font-weight: 700; color: var(--ink); }
p { margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--hairline);
  font-size: 13px; font-weight: 500;
  color: var(--ink-muted);
  box-shadow: var(--elev-1);
}
.eyebrow .flag { font-size: 14px; line-height: 1; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--completed); }

.section-eyebrow {
  display: inline-block;
  align-self: flex-start;
  text-transform: uppercase;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--brand);
  margin-bottom: 16px;
}
html[data-theme="dark"] .section-eyebrow { color: var(--brand-light); }

.h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.02; letter-spacing: -0.028em; font-weight: 700; }
.h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.024em; font-weight: 700; }
.h3 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.018em; font-weight: 600; }
.lede { font-size: 18px; line-height: 1.55; color: var(--ink-muted); max-width: 56ch; }
.lede.big { font-size: 20px; }

/* Arabic display sizes need a touch more line-height */
html[lang="ar"] .h1 { line-height: 1.12; letter-spacing: -0.02em; }
html[lang="ar"] .h2 { line-height: 1.22; }
html[lang="ar"] .lede { line-height: 1.7; }

/* ════════════════════════════════════════════════════════════════════
   Header
   ════════════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--surface-muted) 80%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--hairline); }
.header-inner {
  display: flex; align-items: center; gap: 24px;
  padding-block: 14px;
  min-height: 64px;
}
.brand-mark {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink);
  font-weight: 700; letter-spacing: -0.015em;
  font-size: 17px;
}
.brand-logo {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--brand-dark) 100%);
  border-radius: 9px;
  display: grid; place-items: center;
  color: #fff; font-weight: 800;
  font-size: 15px; letter-spacing: -0.02em;
  box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 6px 14px -6px rgba(15,27,45,0.4);
}
html[lang="ar"] .brand-word .lang-en { display: none; }
.nav {
  display: flex; align-items: center; gap: 28px;
  margin-inline-start: 32px;
}
.nav a {
  color: var(--ink-muted); font-weight: 500; font-size: 14px;
  position: relative;
  transition: color .15s ease;
}
.nav a:hover { color: var(--ink); }
.nav a.current { color: var(--ink); }
.header-tools {
  margin-inline-start: auto;
  display: flex; align-items: center; gap: 12px;
}

/* Locale + theme toggles */
.seg-toggle {
  display: inline-flex; align-items: center;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  padding: 3px;
  box-shadow: var(--elev-1);
}
.seg-toggle button {
  appearance: none; border: 0; background: transparent;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  color: var(--ink-muted);
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
  display: inline-flex; align-items: center; gap: 6px;
}
.seg-toggle button.active {
  background: var(--ink);
  color: var(--surface);
}
html[data-theme="dark"] .seg-toggle button.active {
  background: var(--brand);
  color: #fff;
}
.seg-toggle button svg { width: 14px; height: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  border: 0;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--navy);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--r-cta);
  font-size: 15px;
  box-shadow: 0 8px 24px -10px rgba(15,27,45,0.4);
}
html[data-theme="dark"] .btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(45,127,249,0.55);
}
.btn-primary:hover { background: var(--navy-light); color: #fff; }
html[data-theme="dark"] .btn-primary:hover { background: var(--brand-dark); }

.btn-brand {
  background: var(--brand);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-btn);
  font-size: 14px;
  box-shadow: 0 6px 18px -8px rgba(45,127,249,0.5);
}
.btn-brand:hover { background: var(--brand-dark); color: #fff; }
.btn-waitlist { background: #0A0E18; color: #fff; font-size: 16px; padding: 14px 28px; box-shadow: none; }
.btn-waitlist:hover { background: #1A2030; color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--brand);
  padding: 12px 18px;
  border-radius: var(--r-btn);
  font-size: 14px;
  border: 1px solid var(--hairline);
}
.btn-ghost:hover { background: var(--surface); }

.btn-lg { padding: 16px 26px; font-size: 16px; }

/* Mobile menu button */
.hamburger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  align-items: center; justify-content: center;
  cursor: pointer;
}
.hamburger svg { width: 22px; height: 22px; stroke: var(--ink); stroke-width: 2.5; }

@media (max-width: 900px) {
  .nav, .header-tools .btn-brand, .header-tools .seg-toggle:last-of-type { display: none; }
  .hamburger { display: inline-flex; }
}
@media (max-width: 520px) {
  .header-tools .seg-toggle { padding: 2px; }
  .header-tools .seg-toggle button { padding: 5px 9px; font-size: 11px; }
}

/* ════════════════════════════════════════════════════════════════════
   Hero
   ════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding-top: 56px;
  padding-bottom: 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(45,127,249,0.10) 0%, transparent 60%),
    radial-gradient(40% 40% at 0% 100%, rgba(45,127,249,0.06) 0%, transparent 70%);
}
html[data-theme="dark"] .hero-bg {
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(45,127,249,0.20) 0%, transparent 60%),
    radial-gradient(40% 40% at 0% 100%, rgba(123,92,255,0.10) 0%, transparent 70%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero-copy h1 .accent {
  display: block;
  background: linear-gradient(120deg, var(--brand) 0%, #7B5CFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* tight .h1 line-height clips the gradient at descenders (the "g") —
     extend the painted box below the baseline, then pull layout back */
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.store-badge {
  display: inline-block;
  width: 175px;
  height: 52px;
  transition: transform .15s ease, opacity .2s ease;
  border-radius: 10px;
  overflow: hidden;
}
.store-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge:active { transform: translateY(0); }

.hero-phone-wrap {
  display: flex; justify-content: center; align-items: center;
  position: relative;
  min-height: 600px;
}
.hero-phone-glow {
  position: absolute; inset: 10% 5%;
  background: radial-gradient(closest-side, rgba(45,127,249,0.35) 0%, transparent 70%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}

/* ── Phone frame ────────────────────────────────────────────────── */
.phone {
  position: relative;
  width: 320px; aspect-ratio: 9 / 19.5;
  background: #0A0E18;
  border-radius: 44px;
  padding: 10px;
  box-shadow:
    0 0 0 2px #1A2030,
    0 0 0 4px #0A0E18,
    var(--elev-3),
    0 60px 100px -40px rgba(15,27,45,0.5);
  z-index: 1;
}
html[data-theme="dark"] .phone {
  box-shadow:
    0 0 0 2px #232C40,
    0 0 0 4px #0A0E18,
    0 30px 60px -30px rgba(0,0,0,0.9);
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #fff;
  /* Force light-mode rendering of the screenshots regardless of page theme */
  color-scheme: light;
  filter: none;
}
.phone-screen img {
  width: 100%; height: auto;
  display: block;
  filter: none !important;
}
.phone-notch {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 28px;
  background: #0A0E18;
  border-radius: 999px;
  z-index: 2;
}
.phone-side-btn { position: absolute; background: #1A2030; }
.phone-side-btn.power { right: -3px; top: 130px; width: 4px; height: 70px; border-radius: 0 2px 2px 0; }
.phone-side-btn.vol-up { left: -3px; top: 110px; width: 4px; height: 50px; border-radius: 2px 0 0 2px; }
.phone-side-btn.vol-down { left: -3px; top: 175px; width: 4px; height: 50px; border-radius: 2px 0 0 2px; }
.phone.float { animation: phoneFloat 6s ease-in-out infinite; }
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@media (max-width: 540px) {
  .phone { width: min(260px, 78vw); }
  .hero-phone-wrap { min-height: unset; }
  .feature-media { min-height: unset; padding-block: 24px; }
}

/* ════════════════════════════════════════════════════════════════════
   Trust strip
   ════════════════════════════════════════════════════════════════════ */
.trust-strip {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 22px 32px;
  margin-top: 24px;
  margin-bottom: 96px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  box-shadow: var(--elev-1);
}
@media (max-width: 800px) { .trust-strip { grid-template-columns: repeat(2, 1fr); } }
.trust-item {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}
.trust-item .icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--surface-subtle);
  display: grid; place-items: center;
  color: var(--brand);
}
html[data-theme="dark"] .trust-item .icon { color: var(--brand-light); }
.trust-item .icon svg { width: 18px; height: 18px; }

/* ════════════════════════════════════════════════════════════════════
   Sections
   ════════════════════════════════════════════════════════════════════ */
section.bleed { padding-block: 96px; }
@media (max-width: 700px) { section.bleed { padding-block: 64px; } }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .lede { margin: 16px auto 0; }

/* ════════════════════════════════════════════════════════════════════
   How it works + Escrow Animation
   ════════════════════════════════════════════════════════════════════ */
.how-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 980px) { .how-grid { grid-template-columns: 1fr; } }

.steps { display: flex; flex-direction: column; gap: 24px; }
.step {
  display: grid; grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: flex-start;
}
.step-num {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  display: grid; place-items: center;
  font-weight: 800; font-size: 17px;
  color: var(--brand);
  font-family: var(--font-num);
  box-shadow: var(--elev-1);
}
html[data-theme="dark"] .step-num { background: var(--surface-subtle); border-color: var(--hairline); color: var(--brand-light); }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--ink-muted); font-size: 15px; line-height: 1.6; max-width: 44ch; }

/* The animation viewport */
.escrow-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1.05 / 1;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card-lg);
  overflow: hidden;
  box-shadow: var(--elev-2);
}
.escrow-stage::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 50% 40%, rgba(45,127,249,0.06) 0%, transparent 70%);
  pointer-events: none;
}
html[data-theme="dark"] .escrow-stage::before {
  background:
    radial-gradient(60% 60% at 50% 40%, rgba(45,127,249,0.12) 0%, transparent 70%);
}
.escrow-stage svg { width: 100%; height: 100%; display: block; }

/* Status overlay narrates each animation phase */
.escrow-status {
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  display: grid;
  pointer-events: none;
  z-index: 2;
}
.e-pill {
  grid-area: 1 / 1;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--hairline);
  font-size: 13px; font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  box-shadow: var(--elev-1);
  opacity: 0;
  animation-duration: 12s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  font-family: var(--font-en);
}
html[lang="ar"] .e-pill { font-family: var(--font-ar); }
.e-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}
@keyframes pillFadeWaiting {
  0%, 4% { opacity: 1; }
  7%, 100% { opacity: 0; }
}
@keyframes pillFadeFunding {
  0%, 5% { opacity: 0; }
  8%, 19% { opacity: 1; }
  22%, 100% { opacity: 0; }
}
@keyframes pillFadeFunded {
  0%, 20% { opacity: 0; }
  23%, 38% { opacity: 1; }
  41%, 100% { opacity: 0; }
}
@keyframes pillFadeDelivering {
  0%, 39% { opacity: 0; }
  42%, 63% { opacity: 1; }
  66%, 100% { opacity: 0; }
}
@keyframes pillFadeDelivered {
  0%, 64% { opacity: 0; }
  67%, 84% { opacity: 1; }
  87%, 100% { opacity: 0; }
}
@keyframes pillFadeCompleted {
  0%, 85% { opacity: 0; }
  88%, 97% { opacity: 1; }
  100% { opacity: 0; }
}
.e-pill.waiting    { animation-name: pillFadeWaiting; }
.e-pill.funding    { animation-name: pillFadeFunding; }
.e-pill.funded     { animation-name: pillFadeFunded; }
.e-pill.delivering { animation-name: pillFadeDelivering; }
.e-pill.delivered  { animation-name: pillFadeDelivered; }
.e-pill.completed  { animation-name: pillFadeCompleted; }
.e-pill.waiting .dot    { background: var(--ink-soft); }
.e-pill.funding .dot    { background: var(--brand); animation: dotPulseBlue 1.2s ease-in-out infinite; }
.e-pill.funded .dot     { background: var(--brand); }
.e-pill.delivering .dot { background: var(--accepted); animation: dotPulseOrange 1.2s ease-in-out infinite; }
.e-pill.delivered .dot  { background: var(--delivered); }
.e-pill.completed .dot  { background: var(--completed); }
@keyframes dotPulseBlue {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45,127,249,0.5); }
  50%      { box-shadow: 0 0 0 5px rgba(45,127,249,0); }
}
@keyframes dotPulseOrange {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229,138,58,0.5); }
  50%      { box-shadow: 0 0 0 5px rgba(229,138,58,0); }
}

/* Avatars & labels in the SVG are styled here */
.es-label {
  fill: var(--ink-muted);
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  text-anchor: middle;
}
html[lang="ar"] .es-label { font-family: var(--font-ar); }
.es-label.role {
  fill: var(--ink);
  font-weight: 600;
  font-size: 13px;
}
.es-label.tag {
  fill: var(--brand);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* Animation */
@keyframes coinFundJourney {
  0%   { transform: translate(0, 0)        scale(0.4); opacity: 0; }
  3%   { transform: translate(0, 0)        scale(1);   opacity: 1; }
  10%  { transform: translate(48px, -45px) scale(1.15); opacity: 1; }
  20%  { transform: translate(95px, 0)     scale(0.75); opacity: 1; }
  23%, 100% { transform: translate(95px, 0) scale(0);  opacity: 0; }
}
@keyframes vaultGlow {
  0%, 22%   { filter: drop-shadow(0 0 0 rgba(45,127,249,0)); transform: scale(1); }
  28%       { filter: drop-shadow(0 0 18px rgba(45,127,249,0.7)); transform: scale(1.06); }
  90%       { filter: drop-shadow(0 0 14px rgba(45,127,249,0.5)); transform: scale(1.04); }
  98%, 100% { filter: drop-shadow(0 0 0 rgba(45,127,249,0)); transform: scale(1); }
}
@keyframes packageDeliverJourney {
  0%, 40%  { transform: translate(0, 0)          scale(0);    opacity: 0; }
  43%      { transform: translate(0, 0)          scale(1);    opacity: 1; }
  55%      { transform: translate(-95px, -50px)  scale(1.08); opacity: 1; }
  64%      { transform: translate(-190px, 0)     scale(0.85); opacity: 1; }
  67%, 100%{ transform: translate(-190px, 0)     scale(0);    opacity: 0; }
}
@keyframes coinReleaseJourney {
  0%, 65%  { transform: translate(0, 0)         scale(0);    opacity: 0; }
  68%      { transform: translate(0, 0)         scale(1);    opacity: 1; }
  78%      { transform: translate(48px, -45px)  scale(1.15); opacity: 1; }
  87%      { transform: translate(95px, 0)      scale(0.85); opacity: 1; }
  90%, 100%{ transform: translate(95px, 0)      scale(0);    opacity: 0; }
}
@keyframes checkBuyerPulse {
  0%, 64%  { opacity: 0; transform: scale(0); }
  67%      { opacity: 1; transform: scale(1.3); }
  70%, 90% { opacity: 1; transform: scale(1); }
  95%, 100%{ opacity: 0; transform: scale(1); }
}
@keyframes checkSellerPulse {
  0%, 87%  { opacity: 0; transform: scale(0); }
  90%      { opacity: 1; transform: scale(1.3); }
  93%, 98% { opacity: 1; transform: scale(1); }
  100%     { opacity: 0; transform: scale(1); }
}
@keyframes heldLabelFade {
  0%, 22%  { opacity: 0; transform: translateY(6px); }
  30%      { opacity: 1; transform: translateY(0); }
  85%      { opacity: 1; transform: translateY(0); }
  92%, 100%{ opacity: 0; transform: translateY(6px); }
}
@keyframes avatarBreathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.02); }
}

#anim-coin-fund {
  animation: coinFundJourney 12s cubic-bezier(.4,0,.2,1) infinite;
  transform-origin: center;
  transform-box: fill-box;
}
#anim-package {
  animation: packageDeliverJourney 12s cubic-bezier(.4,0,.2,1) infinite;
  transform-origin: center;
  transform-box: fill-box;
}
#anim-coin-release {
  animation: coinReleaseJourney 12s cubic-bezier(.4,0,.2,1) infinite;
  transform-origin: center;
  transform-box: fill-box;
}
#anim-vault {
  animation: vaultGlow 12s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
#anim-check-buyer { animation: checkBuyerPulse 12s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
#anim-check-seller { animation: checkSellerPulse 12s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
#anim-held-label   { animation: heldLabelFade 12s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
#anim-buyer  { animation: avatarBreathe 5s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
#anim-seller { animation: avatarBreathe 5s ease-in-out infinite 1s; transform-origin: center; transform-box: fill-box; }

@media (prefers-reduced-motion: reduce) {
  #anim-coin-fund, #anim-package, #anim-coin-release,
  #anim-vault, #anim-check-buyer, #anim-check-seller,
  #anim-held-label, #anim-buyer, #anim-seller,
  .phone.float, .e-pill {
    animation: none !important;
  }
  /* Static final-state view */
  #anim-held-label { opacity: 1; transform: none; }
  #anim-coin-fund, #anim-package, #anim-coin-release,
  #anim-check-buyer, #anim-check-seller { opacity: 0; }
  .e-pill.funded { opacity: 1; }
}

/* ════════════════════════════════════════════════════════════════════
   Use cases
   ════════════════════════════════════════════════════════════════════ */
.use-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .use-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .use-grid { grid-template-columns: 1fr; } }
.use-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 28px;
  display: flex; flex-direction: column;
  gap: 18px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.use-card:hover {
  transform: translateY(-3px);
  border-color: var(--hairline-strong);
  box-shadow: var(--elev-2);
}
.use-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 8px 22px -10px rgba(15,27,45,0.2);
  flex-shrink: 0;
}
.use-icon svg { width: 28px; height: 28px; }
.use-icon.purple { background: linear-gradient(160deg, #8C73FF, #6D4FE8); }
.use-icon.pink   { background: linear-gradient(160deg, #FF7596, #E83A6A); }
.use-icon.blue   { background: linear-gradient(160deg, #4F94FF, #2168E6); }
.use-icon.orange { background: linear-gradient(160deg, #F09A4F, #D77423); }
.use-icon.green  { background: linear-gradient(160deg, #2CB37D, #0F8957); }
.use-icon.navy   { background: linear-gradient(160deg, #2A3D5F, #0F1B2D); }
.use-card h3 { font-size: 18px; }
.use-card p { color: var(--ink-muted); font-size: 14.5px; line-height: 1.55; }

/* ════════════════════════════════════════════════════════════════════
   Features (alternating)
   ════════════════════════════════════════════════════════════════════ */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 80px;
}
.feature-block:last-of-type { margin-bottom: 0; }
.feature-block.reverse .feature-media { order: 2; }
@media (max-width: 900px) {
  .feature-block, .feature-block.reverse {
    grid-template-columns: 1fr; gap: 40px;
    margin-bottom: 64px;
  }
  .feature-block.reverse .feature-media { order: -1; }
}
html[dir="rtl"] .feature-block.reverse .feature-media { order: -1; }
html[dir="rtl"] .feature-block:not(.reverse) .feature-media { order: 2; }
.feature-media {
  display: flex; align-items: center; justify-content: center;
  position: relative;
  min-height: 540px;
}
.feature-media .phone { width: 280px; }
.feature-media .phone-glow {
  position: absolute; inset: 10% 5%;
  background: radial-gradient(closest-side, rgba(45,127,249,0.25), transparent 70%);
  filter: blur(20px);
  z-index: 0; pointer-events: none;
}
.feature-copy { display: flex; flex-direction: column; gap: 20px; }
.feature-copy h2 { font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -0.022em; }
.feature-bullets { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.feature-bullets li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15.5px; color: var(--ink);
  line-height: 1.55;
  list-style: none;
}
.feature-bullets ul { margin: 0; padding: 0; }
.feature-bullets .check {
  flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--pill-completed-bg);
  display: grid; place-items: center;
  color: var(--pill-completed-fg);
  margin-top: 1px;
}
.feature-bullets .check svg { width: 12px; height: 12px; }

/* Status pill specimens (used in feature 1 copy) */
.pill { display: inline-flex; padding: 2px 8px; border-radius: var(--r-pill); font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.pill.funded    { background: var(--pill-funded-bg); color: var(--pill-funded-fg); }
.pill.completed { background: var(--pill-completed-bg); color: var(--pill-completed-fg); }
.pill.delivered { background: var(--pill-delivered-bg); color: var(--pill-delivered-fg); }

/* ════════════════════════════════════════════════════════════════════
   Stats strip (dark navy)
   ════════════════════════════════════════════════════════════════════ */
.stats {
  background: var(--navy-card), var(--navy);
  color: #fff;
  border-radius: var(--r-card-lg);
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
}
.stats::after {
  content: ''; position: absolute; inset: 0;
  background: var(--navy-card-glow);
  pointer-events: none;
}
.stats-grid {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 800px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
.stat-cell {
  border-inline-start: 1px solid rgba(255,255,255,0.12);
  padding-inline-start: 24px;
}
.stat-cell:first-child {
  border-inline-start: none;
  padding-inline-start: 0;
}
@media (max-width: 800px) {
  .stat-cell:nth-child(3) { border-inline-start: none; padding-inline-start: 0; }
}
.stat-num {
  font-family: var(--font-num);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
  color: #fff;
  margin-bottom: 8px;
}
.stat-num small { font-size: 0.45em; font-weight: 600; opacity: 0.8; margin-inline-start: 4px; }
.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

/* ════════════════════════════════════════════════════════════════════
   Download CTA
   ════════════════════════════════════════════════════════════════════ */
.dl-cta {
  background: var(--navy-card), var(--navy);
  color: #fff;
  border-radius: var(--r-card-lg);
  padding: 80px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.dl-cta::after {
  content: ''; position: absolute; inset: 0;
  background: var(--navy-card-glow);
  pointer-events: none;
}
.dl-cta-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; align-items: center; }
.dl-cta h2 { color: #fff; font-size: clamp(32px, 4.5vw, 48px); letter-spacing: -0.025em; }
.dl-cta .lede { color: rgba(255,255,255,0.7); margin: 0; }
.dl-cta-row { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; justify-content: center; }
.qr-card {
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  box-shadow: var(--elev-3);
}
.qr-card .qr { width: 130px; height: 130px; }
.qr-card .qr-label { font-size: 11px; color: var(--ink-muted); font-weight: 500; }
@media (max-width: 600px) { .qr-card { display: none; } }
.dl-cta .store-badge { background: transparent; }
.dl-cta .store-badge:hover { background: transparent; }

/* Waitlist form */
.waitlist-form {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.waitlist-form input[type="email"] {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  padding: 14px 18px;
  font-size: 15px;
  color: #fff;
  font-family: inherit;
}
.waitlist-form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.45);
}
.waitlist-form input:-webkit-autofill,
.waitlist-form input:-webkit-autofill:hover,
.waitlist-form input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px rgba(15,27,45,0.95) inset;
  -webkit-text-fill-color: #fff;
  transition: background-color 5000s ease-in-out 0s;
  caret-color: #fff;
}
.waitlist-form button {
  flex-shrink: 0;
  background: #fff;
  color: var(--navy);
  border: none;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .15s ease;
}
.waitlist-form button:hover { opacity: 0.9; }
.waitlist-form button:disabled { opacity: 0.6; cursor: not-allowed; }
.waitlist-note {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  margin: 0;
  text-align: center;
}
@media (max-width: 480px) {
  .waitlist-form { max-width: 100%; }
}

/* ════════════════════════════════════════════════════════════════════
   Footer
   ════════════════════════════════════════════════════════════════════ */
.site-footer {
  padding-block: 64px 32px;
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  margin-top: 96px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand-col { display: flex; flex-direction: column; gap: 16px; }
.footer-brand-col .lede { font-size: 14px; max-width: 30ch; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--surface-subtle);
  display: grid; place-items: center;
  color: var(--ink-muted);
  transition: background .2s, color .2s;
}
.footer-socials a:hover { background: var(--brand); color: #fff; }
.footer-socials svg { width: 16px; height: 16px; }
.footer-col h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-soft); font-weight: 600;
  margin-bottom: 16px;
}
.footer-col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--ink-muted); font-size: 14px; transition: color .15s; }
.footer-col a:hover { color: var(--ink); }
.footer-col.legal a { color: var(--ink-soft); font-size: 12px; }
.footer-col.legal a:hover { color: var(--ink-muted); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  color: var(--ink-soft);
  font-size: 13px;
}
.footer-bottom .heart { color: #D14545; }

/* ════════════════════════════════════════════════════════════════════
   Mobile drawer
   ════════════════════════════════════════════════════════════════════ */
.drawer {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15,27,45,0.6);
  backdrop-filter: blur(6px);
  display: none;
  align-items: stretch; justify-content: flex-end;
}
.drawer.open { display: flex; }
.drawer-panel {
  width: min(360px, 88vw);
  background: var(--surface);
  padding: 24px;
  display: flex; flex-direction: column; gap: 20px;
  animation: drawerIn .25s ease;
}
html[dir="rtl"] .drawer { justify-content: flex-start; }
@keyframes drawerIn { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-close {
  align-self: flex-end;
  background: transparent; border: 0; cursor: pointer;
  color: var(--ink-muted); padding: 6px;
}
.drawer-close svg { width: 22px; height: 22px; }
.drawer nav { display: flex; flex-direction: column; gap: 4px; }
.drawer nav a {
  padding: 14px 12px;
  font-size: 16px; font-weight: 500;
  color: var(--ink);
  border-radius: 10px;
}
.drawer nav a:hover { background: var(--surface-subtle); }
