/* Dabr website — the approved warm design. */
:root {
  --cream: #F6F2EB;
  --surface: #FBF8F2;
  --white: #FFFFFF;
  --navy: #2F3954;
  --navy-2: #3A4566;
  --lav: #B89BF2;
  --lav-soft: #E7E0F7;
  --lav-ink: #5B3FC4;
  --peach: #F1B69C;
  --peach-soft: #FBE3D7;
  --muted: rgba(47, 57, 84, 0.66);
  --faint: rgba(47, 57, 84, 0.08);
  --border: rgba(47, 57, 84, 0.10);
  --radius: 28px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: 'IBM Plex Sans Arabic', -apple-system, 'SF Arabic', Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }
b { font-weight: 700; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); font-size: 14px; }
.kicker { color: var(--lav-ink); font-weight: 600; font-size: 15px; margin-bottom: 10px; }

/* ---------- logo (the four official pieces on their 660×480 canvas) ---------- */
.logo-stage, .mini-logo { position: relative; direction: ltr; aspect-ratio: 660 / 480; }
.logo-stage img, .mini-logo img { position: absolute; }
.p-dal { left: 55%; top: 3.96%; width: 42.73%; }
.p-ba { left: 2.73%; top: 21.67%; width: 53.79%; }
.p-lav { left: 45.61%; top: 3.33%; width: 19.24%; }
.p-peach { left: 34.09%; top: 78.54%; width: 12.88%; }
.mini-logo { width: 54px; }

.logo-stage { width: 132px; margin-bottom: 28px; }
.logo-stage .p-dal { animation: dal 0.7s cubic-bezier(.2,.8,.2,1) 0.1s both; transform-origin: 30% 50%; }
.logo-stage .p-ba { animation: rise 0.7s cubic-bezier(.3,1.4,.5,1) 0.3s both; }
.logo-stage .p-lav { animation: drop 0.75s cubic-bezier(.3,1.5,.5,1) 0.6s both; }
.logo-stage .p-peach { animation: pop 0.6s cubic-bezier(.3,1.8,.5,1) 0.9s both; }
@keyframes dal { from { opacity: 0; transform: translateX(14px) rotate(-40deg) scale(.7); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-46px) rotate(-18deg); } 20% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: none; } }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(246, 242, 235, 0.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; }
.nav-links { display: flex; gap: 26px; margin-inline-start: auto; font-weight: 500; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--navy); }
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--navy); color: #fff; text-decoration: none; font-weight: 600; border-radius: 999px; padding: 12px 22px; }
.btn-sm { padding: 8px 18px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 96px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -10% -20% auto auto; width: 620px; height: 620px; background: radial-gradient(closest-side, rgba(184,155,242,.35), transparent); filter: blur(10px); pointer-events: none; }
.hero-in { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; position: relative; }
h1 { font-size: clamp(42px, 6.2vw, 74px); font-weight: 700; }
.hl { background: linear-gradient(transparent 62%, rgba(241,182,156,.75) 62%, rgba(241,182,156,.75) 90%, transparent 90%); padding-inline: 4px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 34em; margin-top: 22px; }
.cta-row { display: flex; align-items: center; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; border-radius: 16px; padding: 10px 20px 10px 22px; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 600; font-size: 19px; direction: ltr; text-align: left; }
.store-badge small { font-size: 11px; font-weight: 500; opacity: .75; direction: rtl; text-align: right; }

/* phone mockup */
.phone-wrap { position: relative; justify-self: center; animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.phone { width: 320px; aspect-ratio: 9 / 19.2; background: #11141c; border-radius: 52px; padding: 12px; box-shadow: 0 40px 80px -30px rgba(47,57,84,.55), 0 0 0 1.5px #2a2f3d inset; position: relative; }
.notch { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 96px; height: 28px; background: #000; border-radius: 20px; z-index: 2; }
.screen { height: 100%; background: var(--cream); border-radius: 41px; padding: 62px 16px 16px; overflow: hidden; font-size: 13px; }
.s-top { display: flex; justify-content: space-between; align-items: flex-start; }
.s-sub { font-size: 10.5px; color: var(--muted); }
.s-hi { font-weight: 700; font-size: 19px; }
.s-bolt { width: 34px; height: 34px; border-radius: 12px; background: var(--surface); border: 1px solid var(--faint); display: grid; place-items: center; }
.s-hero { background: var(--navy); color: #fff; border-radius: 22px; padding: 16px; margin-top: 14px; }
.s-label { font-size: 11.5px; opacity: .78; }
.s-amount { margin: 4px 0 10px; display: flex; align-items: baseline; gap: 6px; }
.s-amount b { font-size: 38px; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.s-amount span { opacity: .78; }
.s-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.s-pills span { background: rgba(255,255,255,.12); border-radius: 999px; padding: 4px 10px; font-size: 11px; }
.s-bar { display: flex; height: 7px; border-radius: 4px; overflow: hidden; background: rgba(255,255,255,.18); margin: 14px 0 10px; }
.s-legend { display: flex; justify-content: space-between; font-size: 10px; }
.s-legend span { display: flex; flex-direction: column; opacity: .85; }
.s-legend em { display: inline-block; width: 6px; height: 6px; border-radius: 3px; margin-inline-end: 4px; }
.s-legend b { font-size: 12px; opacity: 1; }
.s-title { font-weight: 700; font-size: 14px; margin: 16px 2px 8px; }
.s-list { display: grid; gap: 2px; }
.s-row { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--faint); }
.s-row div { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.s-row small { color: var(--muted); font-size: 10.5px; }
.s-row .n, .feed-card .n, .cc-row .n { direction: ltr; font-variant-numeric: tabular-nums; }
.s-row.fresh { animation: fresh 1s ease 2.4s both; }
@keyframes fresh { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* category tiles (same tints as the app) */
.t { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; font-style: normal; }
.t svg { width: 18px; height: 18px; }
.coffee { background: #EFE3D6; color: #7A4A2A; }
.food { background: #E3E7EF; color: #2F3954; }
.fuel { background: #DFEAF3; color: #2E5E85; }
.cart { background: #E7E0F7; color: #5B3FC4; }
.bike { background: #FBE3D7; color: #A24E2C; }
.home { background: #E3E7EF; color: #2F3954; }
.car { background: #DFEAF3; color: #2E5E85; }
.phone-t { background: #E7E0F7; color: #5B3FC4; }

.toast { position: absolute; top: 120px; inset-inline-start: -64px; display: flex; gap: 10px; align-items: center; background: var(--white); border-radius: 18px; padding: 10px 14px; box-shadow: 0 18px 40px -18px rgba(47,57,84,.4); animation: toast 0.7s cubic-bezier(.3,1.4,.5,1) 2s both; }
.toast div { display: flex; flex-direction: column; line-height: 1.35; font-size: 13px; }
.toast small { color: var(--muted); font-size: 11px; }
.toast-ic { width: 32px; height: 32px; border-radius: 10px; background: var(--lav-soft); color: var(--lav-ink); display: grid; place-items: center; }
@keyframes toast { from { opacity: 0; transform: translateY(-14px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
section { position: relative; }
h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; }
.how { padding: 96px 0; background: var(--surface); border-block: 1px solid var(--faint); }
.how h2 { max-width: 16em; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.step { background: var(--white); border-radius: 24px; padding: 26px 22px; border: 1px solid var(--faint); }
.step .num { width: 38px; height: 38px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 18px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

.split { padding: 110px 0; }
.split.alt { padding-top: 20px; }
.split-in { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-copy p:not(.kicker) { color: var(--muted); margin-top: 18px; font-size: 18px; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.ticks li::before { content: ''; width: 22px; height: 22px; border-radius: 50%; flex: none; background: var(--lav-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%235B3FC4' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

.feed { display: grid; gap: 12px; padding: 28px; background: var(--navy); border-radius: var(--radius); position: relative; }
.feed::after { content: ''; position: absolute; inset: auto 0 0; height: 90px; border-radius: 0 0 var(--radius) var(--radius); background: linear-gradient(transparent, var(--navy)); }
.feed-card { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.96); border-radius: 18px; padding: 12px 14px; }
.feed-card div { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.feed-card small { color: var(--muted); font-size: 13px; }
.feed.in .feed-card { animation: slide .6s cubic-bezier(.2,.8,.2,1) both; }
.feed.in .feed-card:nth-child(2) { animation-delay: .12s; }
.feed.in .feed-card:nth-child(3) { animation-delay: .24s; }
.feed.in .feed-card:nth-child(4) { animation-delay: .36s; }
@keyframes slide { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }

.commit-card { background: var(--white); border-radius: var(--radius); padding: 26px; border: 1px solid var(--faint); box-shadow: 0 30px 60px -40px rgba(47,57,84,.45); }
.cc-head { display: flex; justify-content: space-between; align-items: baseline; }
.cc-head span { color: var(--muted); font-size: 15px; }
.cc-head span b { color: var(--navy); font-size: 20px; }
.cc-track, .mini-track { display: block; height: 8px; border-radius: 4px; background: var(--faint); overflow: hidden; margin: 12px 0 8px; }
.cc-track i, .mini-track i { display: block; height: 100%; background: var(--lav); border-radius: 4px; }
.mini-track { height: 5px; margin: 6px 0 0; width: 140px; }
.mini-track i { background: var(--navy); }
.cc-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--faint); }
.cc-row div { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.cc-row small { color: var(--muted); font-size: 13px; }
.paid { font-size: 13px; font-weight: 600; color: #2E6E4A; background: #E4F0E8; border-radius: 999px; padding: 4px 12px; }

.privacy { padding: 30px 0 110px; }
.privacy-card { background: var(--navy); color: #fff; border-radius: 36px; padding: clamp(32px, 6vw, 72px); text-align: center; position: relative; overflow: hidden; }
.privacy-card::before { content: ''; position: absolute; width: 420px; height: 420px; inset: -180px auto auto -120px; background: radial-gradient(closest-side, rgba(184,155,242,.32), transparent); }
.privacy-card p { color: rgba(255,255,255,.8); max-width: 38em; margin: 18px auto 26px; font-size: 18px; position: relative; }
.privacy-card h2 { position: relative; }
.lock { width: 64px; height: 64px; border-radius: 20px; background: rgba(184,155,242,.2); display: grid; place-items: center; margin: 0 auto 22px; position: relative; }
.link-light { color: #D9C9FA; font-weight: 600; text-decoration: none; position: relative; }
.link-light:hover { text-decoration: underline; }

.final { padding: 20px 0 110px; text-align: center; }
.final p { color: var(--muted); margin-top: 12px; font-size: 18px; }

.foot { border-top: 1px solid var(--border); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--muted); }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--navy); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.steps .step.reveal:nth-child(2) { transition-delay: .08s; }
.steps .step.reveal:nth-child(3) { transition-delay: .16s; }
.steps .step.reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- legal pages ---------- */
.doc { padding: 56px 0 96px; }
.doc .wrap { width: min(760px, 100% - 40px); }
.doc h1 { font-size: clamp(34px, 5vw, 48px); }
.doc .updated { color: var(--muted); margin: 10px 0 34px; font-size: 15px; }
.doc h2 { font-size: 22px; margin: 34px 0 10px; }
.doc p, .doc li { color: rgba(47,57,84,.86); }
.doc ul { padding-inline-start: 22px; }
.doc li { margin: 6px 0; }
.doc .card { background: var(--surface); border: 1px solid var(--faint); border-radius: 22px; padding: 22px 24px; margin-top: 18px; }
.doc .en { direction: ltr; text-align: left; margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--border); font-family: -apple-system, 'Segoe UI', Roboto, sans-serif; }
.doc a { color: var(--lav-ink); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-in, .split-in { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-top: 36px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .split.alt .commit-card { order: 2; }
  .toast { inset-inline-start: -24px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-in { justify-content: space-between; }
  .steps { grid-template-columns: 1fr; }
  .phone { width: 280px; }
  .toast { inset-inline-start: -8px; top: 96px; }
  .how, .split { padding: 72px 0; }
  .feed { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.doc h3 { font-size: 18px; margin: 22px 0 6px; }
