:root {
  --bg: #f7f4ec;
  --surface: #ffffff;
  --surface-2: #efeadd;
  --ink: #10231c;
  --muted: #5b6b63;
  --line: #e2dccd;
  --green: #0e4d3a;
  --green-ink: #f7f4ec;
  --green-soft: #dcebe2;
  --lime: #d4f36b;
  --lime-ink: #10231c;
  --tomato: #e8492a;
  --radius: 24px;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1511;
    --surface: #12201a;
    --surface-2: #172a22;
    --ink: #edf3ee;
    --muted: #9fb2a8;
    --line: #23382e;
    --green: #134f3c;
    --green-soft: #173a2d;
    --tomato: #ff7552;
    color-scheme: dark;
  }
}

html[lang='ar'] {
  --font-body: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-display: 'IBM Plex Sans Arabic', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.02em; }
html[lang='ar'] :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.3; }
.wrap { max-width: 1300px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px;
  background: var(--green); color: var(--green-ink);
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-small { padding: 9px 18px; font-size: 0.92rem; }
.link { color: var(--green); font-weight: 600; text-underline-offset: 4px; }
@media (prefers-color-scheme: dark) { .link { color: var(--lime); } }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: 'Bricolage Grotesque', var(--font-body); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.logo svg { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 24px; margin-inline-end: auto; font-size: 0.95rem; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
@media (max-width: 640px) {
  .nav-inner { gap: 12px; height: 64px; }
  .nav-links { display: none; }
  .nav-actions { margin-inline-start: auto; }
  .nav-actions .btn { display: none; }
}

/* ---------- Language dropdown ---------- */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: 0.92rem; font-weight: 500; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line);
  padding: 8px 12px; border-radius: 999px; cursor: pointer;
}
.lang-btn:hover, .lang-btn[aria-expanded='true'] { border-color: var(--ink); }
.lang-btn svg { width: 18px; height: 18px; }
.lang-btn .chev { width: 16px; height: 16px; transition: transform 0.15s ease; }
.lang-btn[aria-expanded='true'] .chev { transform: rotate(180deg); }
.lang-list {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0;
  min-width: 170px; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 16px 40px -12px rgba(16, 35, 28, 0.25);
}
.lang-list button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font: inherit; font-size: 0.95rem; color: var(--ink); text-align: start;
  background: none; border: 0; padding: 10px 12px; border-radius: 10px; cursor: pointer;
}
.lang-list button[lang='ar'] { font-family: 'IBM Plex Sans Arabic', sans-serif; }
.lang-list button:hover, .lang-list button:focus-visible { background: var(--surface-2); outline: none; }
.lang-list button[aria-checked='true']::after {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green);
}
@media (prefers-color-scheme: dark) { .lang-list button[aria-checked='true']::after { background: var(--lime); } }

/* ---------- Hero ---------- */
.hero { padding-block: 8px 24px; }
/* Desktop: the hero fills the first screen, centred with equal space above and below */
@media (min-width: 960px) {
  .hero { min-height: calc(100vh - 72px); min-height: calc(100svh - 72px); display: flex; align-items: center; padding-block: 24px; }
  .hero > .wrap { width: 100%; }
}
.hero-panel {
  position: relative; overflow: hidden;
  display: grid; gap: 40px; align-items: center;
  padding: 40px 24px;
  border-radius: 32px;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(212, 243, 107, 0.18), transparent 60%),
    var(--green);
  color: var(--green-ink);
}
@media (min-width: 960px) {
  .hero-panel { grid-template-columns: 1.05fr 0.95fr; padding: 64px; align-content: center;
    min-height: max(600px, calc((100vh - 72px) * 0.9)); min-height: max(600px, calc((100svh - 72px) * 0.9)); }
}
.pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px;
  padding: 6px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 500;
  background: rgba(247, 244, 236, 0.1); border: 1px solid rgba(247, 244, 236, 0.18);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(212, 243, 107, 0.25); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(212, 243, 107, 0); } }
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 800; margin-bottom: 20px; }
h1 mark {
  background: var(--lime); color: var(--lime-ink);
  display: inline-block; margin-top: 0.12em; line-height: 1.05;
  padding: 0.02em 0.18em 0.06em; border-radius: 0.2em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
html[lang='ar'] h1 mark { margin-top: 0.3em; line-height: 1.45; padding: 0.02em 0.28em 0.08em; }
.lead { font-size: 1.12rem; max-width: 34em; margin: 0 0 32px; color: rgba(247, 244, 236, 0.8); }

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

.store {
  display: inline-flex; align-items: center; gap: 10px; min-width: 176px;
  padding: 10px 20px; border-radius: 16px; text-decoration: none;
  background: var(--lime); color: var(--lime-ink);
  transition: transform 0.15s ease;
}
.store + .store { background: var(--green-ink); }
.store:hover { transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; flex-shrink: 0; }
.store span { display: flex; flex-direction: column; line-height: 1.2; text-align: start; }
.store small { font-size: 0.72rem; opacity: 0.75; }
.store b { font-family: var(--font-body); font-size: 1.08rem; font-weight: 600; }

.trust { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.9rem; color: rgba(247, 244, 236, 0.75); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before {
  content: ''; width: 16px; height: 16px; flex-shrink: 0; border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='%2310231C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
br.m { display: none; }
@media (max-width: 599px) {
  .hero-panel { padding-inline: 20px; }
  .stores { flex-wrap: nowrap; gap: 8px; }
  .store { flex: 1 1 0; min-width: 0; gap: 6px; padding: 10px; justify-content: center; }
  .store svg { width: 20px; height: 20px; }
  .store b { font-size: 0.9rem; white-space: nowrap; }
  .store small { font-size: 0.62rem; white-space: nowrap; }
  .trust { flex-wrap: nowrap; justify-content: space-between; gap: 6px; font-size: min(0.74rem, 3.25vw); }
  .trust li { gap: 4px; white-space: nowrap; }
  .trust li::before { width: 13px; height: 13px; }
  br.m { display: inline; }
  #how h2 { font-size: min(2rem, calc(7.8vw - 3px)); }
  .hero-panel > *, .cta > * { min-width: 0; }
}

@media (max-width: 349px) { .trust { flex-wrap: wrap; } }
/* ---------- Phone mockups ---------- */
.phones { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 440px; }
.phone {
  width: 260px; padding: 10px; border-radius: 40px;
  background: #0a1a14; border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
}
.screen { height: 100%; border-radius: 30px; background: #f7f4ec; color: #10231c; padding: 18px 14px 20px; display: flex; flex-direction: column; gap: 10px; }
.phone-main { height: 460px; position: relative; z-index: 1; }
.phone-qr { display: none; }
@media (min-width: 520px) {
  .phones { justify-content: flex-start; padding-inline-start: 12px; }
  .phone-qr {
    display: block; position: absolute; z-index: 2;
    inset-inline-end: 0; bottom: 0; width: 210px; height: 380px;
  }
}
@media (min-width: 960px) { .phones { width: 100%; max-width: 520px; margin-inline-start: auto; } .phone-qr { inset-inline-end: -8px; width: 230px; height: 420px; }
  .phone-main { width: 290px; height: 510px; }
  h1 { font-size: clamp(4rem, 5.6vw, 5.2rem); } }

.app-head { display: flex; justify-content: space-between; align-items: center; padding-inline: 2px; }
.app-head small { display: block; font-size: 0.7rem; color: #5b6b63; }
.app-head b { font-family: 'Bricolage Grotesque', var(--font-body); font-size: 1.05rem; }
html[lang='ar'] .app-head b { font-family: var(--font-body); }
.app-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #0e4d3a; color: #d4f36b; font-size: 0.8rem; font-weight: 700; }
.app-chips { display: flex; gap: 6px; margin-bottom: 2px; }
.app-chips span { padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid #e2dccd; font-size: 0.7rem; white-space: nowrap; }
.app-chips .on { background: #0e4d3a; color: #f7f4ec; border-color: #0e4d3a; }
.offer { position: relative; display: flex; gap: 10px; align-items: center; padding: 8px; background: #fff; border-radius: 16px; border: 1px solid #ece6d8; }
.offer-img { width: 58px; height: 58px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; font-size: 1.8rem; background: var(--tile); }
.offer-info { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.offer-info b { font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offer-info small { font-size: 0.68rem; color: #5b6b63; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offer-price { display: flex; gap: 6px; align-items: baseline; margin-top: 2px; }
.offer-price strong { font-size: 0.88rem; color: #e8492a; }
.offer-price s { font-size: 0.68rem; color: #8a968f; }
html[lang='ar'] .offer-info { line-height: 1.6; gap: 2px; }
html[lang='ar'] .offer-price { margin-top: 4px; }
.left { position: absolute; top: 4px; inset-inline-start: 4px; font-size: 0.58rem; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: #0e4d3a; color: #d4f36b; box-shadow: 0 0 0 2px #fff; }

.phone-qr .screen { align-items: center; text-align: center; gap: 6px; padding-top: 22px; }
.qr-kicker { font-size: 0.68rem; color: #5b6b63; }
.qr-title { font-size: 0.85rem; }
.qr-box { margin: 8px 0 4px; padding: 10px; background: #fff; border-radius: 16px; border: 1px solid #ece6d8; }
#qr { display: block; width: 120px; height: 120px; color: #10231c; }
.qr-timer span {
  display: inline-block; direction: ltr; font-family: 'Bricolage Grotesque', var(--font-body);
  font-weight: 800; font-size: 1.6rem; color: #0e4d3a; font-variant-numeric: tabular-nums;
  padding: 2px 14px; border-radius: 999px; background: #d4f36b;
}
.qr-hint { font-size: 0.68rem; color: #5b6b63; max-width: 16em; }

/* ---------- Sections ---------- */
.section { padding-block: 80px; }
.section-alt { background: var(--surface-2); }
@media (max-width: 640px) { .section { padding-block: 56px; } }
.kicker { margin: 0 0 10px; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tomato); }
html[lang='ar'] .kicker { text-transform: none; letter-spacing: 0; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; max-width: 18em; }
#how h2 { max-width: none; }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 16px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { position: relative; padding: 28px; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 16px; row-gap: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--green-soft); color: var(--green); }
.steps li h3 { margin: 0; padding-inline-end: 32px; }
.steps li p { grid-column: 1 / -1; align-self: start; }
@media (prefers-color-scheme: dark) { .step-icon { color: var(--lime); } }
.step-icon svg { width: 26px; height: 26px; }
.step-num { position: absolute; top: 44px; inset-inline-end: 28px; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 0.9rem; color: var(--muted); }
.steps h3, .why-card h3 { font-size: 1.35rem; }
.steps p, .why-card p { margin: 0; color: var(--muted); }

.why { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 800px) { .why { grid-template-columns: 1.3fr 1fr 1fr; } }
.why-card { padding: 28px; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; align-content: start; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.why-feature { background: var(--green); color: var(--green-ink); border-color: transparent; }
.why-feature p { color: rgba(247, 244, 236, 0.78); }
.big { display: block; font-family: 'Bricolage Grotesque', var(--font-body); font-weight: 800; font-size: clamp(3rem, 7vw, 4.2rem); line-height: 1; color: var(--lime); margin-bottom: 16px; }
.emoji { font-size: 2.2rem; line-height: 1; margin-bottom: 16px; }
.emoji + h3 { margin-bottom: 16px; }
.why-card > :not(.emoji) { grid-column: 1 / -1; }
.why-card > .emoji + h3 { grid-column: auto; }

.cats { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 800px) { .cats { grid-template-columns: repeat(4, 1fr); } }
.cats li { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; row-gap: 8px; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.cats span { font-size: 1.8rem; line-height: 1; }
.cats b { font-size: 1.05rem; }
.cats small { grid-column: 1 / -1; color: var(--muted); font-size: 0.88rem; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; gap: 32px; }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: 0.8fr 1.2fr; gap: 64px; } }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); padding: 4px 22px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  /* plus drawn with two bars so it is optically centred in the circle (rotates into an ×) */
  content: ''; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat,
    var(--surface-2);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
  display: grid; gap: 28px; align-items: center;
  padding: 48px 28px; border-radius: 32px;
  background: var(--lime); color: var(--lime-ink);
}
@media (min-width: 900px) { .cta { grid-template-columns: 1fr auto; padding: 56px 64px; } }
.cta h2 { margin-bottom: 8px; }
.cta p { margin: 0; font-size: 1.1rem; opacity: 0.8; }
.store-light, .store-light + .store-light { background: var(--green); color: var(--green-ink); }

/* ---------- Footer ---------- */
.footer { padding-block: 32px 40px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; margin-inline-start: auto; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover { color: var(--ink); }
.copy { order: -1; margin: 0; color: var(--muted); font-size: 0.85rem; }
@media (max-width: 599px) {
  .footer-inner { flex-direction: column; gap: 12px; }
  .footer-links { margin-inline-start: 0; justify-content: center; }
}

:focus-visible { outline: 2px solid var(--tomato); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
