/* YumYum landing: flat style. No shadows, glows or gradients; crisp borders only. */
:root {
  --primary: #B5EB3C;
  --primary-soft: #EEF9D6;
  --primary-deep: #4F6B12;
  --ink: #111111;
  --on-ink: #FFFFFF;
  --muted: #6B6B6B;
  --surface: #FFFFFF;
  --surface-alt: #F4F4F2;
  --border: #E6E6E3;
  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 14px;
  --max: 1120px;
  --font: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary-soft: #263015;
    --primary-deep: #C9F06B;
    --ink: #F4F4F2;
    --on-ink: #111111;
    --muted: #A3A3A0;
    --surface: #111214;
    --surface-alt: #1D1E21;
    --border: #2E2F33;
  }
}

/* Language switching: only the active language's blocks are shown. */
html:not([data-lang="en"]) [data-l="en"],
html:not([data-lang="fr"]) [data-l="fr"],
html:not([data-lang="ar"]) [data-l="ar"] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; top: 12px; left: 12px; transform: translateY(-200%); }
.skip:focus { transform: none; background: var(--primary); color: #111; padding: 8px 12px; border-radius: 10px; z-index: 10; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 5;
  background: var(--surface);
  border-bottom: 1.5px solid var(--border);
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -0.5px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; }
.nav a { text-decoration: none; font-weight: 500; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.langs { display: flex; border: 1.5px solid var(--border); border-radius: 999px; padding: 3px; gap: 2px; }
.langs button {
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  border: 0; background: transparent; color: var(--muted);
  padding: 5px 11px; border-radius: 999px;
}
.langs button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
@media (max-width: 760px) {
  .nav { display: none; }
  .langs { margin-inline-start: auto; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; text-decoration: none; font-size: 16px;
  padding: 14px 22px; border-radius: 16px; border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--on-ink);
}
.btn:hover { opacity: .9; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn img { width: 26px; height: 26px; border-radius: 7px; }
.btn small { display: block; font-weight: 500; font-size: 12px; opacity: .75; line-height: 1.1; }
.btn span { line-height: 1.2; }

/* Hero */
.hero { padding: 28px 0 0; }
.hero-box {
  background: var(--primary); color: #111;
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center;
}
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.02; letter-spacing: -2px; margin: 0 0 18px; font-weight: 800; }
html[data-lang="ar"] .hero h1 { letter-spacing: 0; line-height: 1.25; }
.hero p.lead { font-size: 19px; margin: 0 0 28px; max-width: 34ch; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn { background: #111; color: #fff; border-color: #111; }
.hero .btn.ghost { background: transparent; color: #111; }
.pill { display: inline-block; font-size: 14px; font-weight: 600; border: 1.5px solid #111; border-radius: 999px; padding: 4px 12px; margin-bottom: 18px; }

/* Stamp card mock (pure CSS, flat) */
.card-mock {
  background: #111; color: #fff; border-radius: var(--radius-lg);
  padding: 26px; max-width: 380px; justify-self: center; width: 100%;
}
.card-mock .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-mock .shop { font-weight: 700; font-size: 18px; }
.card-mock .sub { color: #A3A3A0; font-size: 14px; }
.card-mock .badge { background: var(--primary); color: #111; font-weight: 700; font-size: 13px; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.stamps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0; }
.stamp { aspect-ratio: 1; border-radius: 50%; border: 2px dashed #3A3B3F; display: grid; place-items: center; }
.stamp.on { background: var(--primary); border: 2px solid var(--primary); }
.stamp.on::after { content: ""; width: 34%; height: 34%; border-radius: 50%; background: #111; }
.stamp.gift { border: 2px solid var(--primary); color: var(--primary); }
.card-mock .meter { height: 10px; border-radius: 999px; background: #2E2F33; overflow: hidden; }
.card-mock .meter i { display: block; height: 100%; width: 75%; background: var(--primary); }

/* Sections */
section { padding: 80px 0 0; }
.eyebrow { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--primary-deep); margin: 0 0 8px; }
html[data-lang="ar"] .eyebrow { letter-spacing: 0; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -1px; margin: 0 0 14px; font-weight: 800; }
html[data-lang="ar"] h2 { letter-spacing: 0; line-height: 1.3; }
.intro { color: var(--muted); max-width: 60ch; margin: 0 0 36px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { border: 1.5px solid var(--border); border-radius: var(--radius); padding: 26px; }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--primary); color: #111; font-weight: 800; margin-bottom: 16px;
}
.step h3, .feat h3 { margin: 0 0 6px; font-size: 19px; }
.step p, .feat p { margin: 0; color: var(--muted); font-size: 16px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { border-radius: var(--radius-lg); padding: 36px; }
.panel.light { background: var(--surface-alt); border: 1.5px solid var(--border); }
.panel.dark { background: #111; color: #fff; border: 1.5px solid #111; }
@media (prefers-color-scheme: dark) { .panel.dark { border-color: #2E2F33; } }
.panel .head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.panel .head img { width: 56px; height: 56px; border-radius: 16px; }
.panel .head h3 { margin: 0; font-size: 24px; }
.panel .head p { margin: 0; font-size: 15px; opacity: .7; }
.panel ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; }
.panel li { display: flex; gap: 12px; align-items: flex-start; }
.panel li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 7px;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat;
}
.panel.dark .btn { background: var(--primary); color: #111; border-color: var(--primary); }

.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { border: 1.5px solid var(--border); border-radius: var(--radius); padding: 24px; }
.feat .ic {
  width: 46px; height: 46px; border-radius: 14px; background: var(--primary-soft); color: var(--primary-deep);
  display: grid; place-items: center; margin-bottom: 14px;
}
.feat .ic svg { width: 24px; height: 24px; }

.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 700; font-size: 22px; line-height: 1; color: var(--primary-deep); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

.cta-band {
  margin-top: 80px; background: #111; color: #fff; border-radius: var(--radius-lg);
  padding: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.cta-band h2 { margin: 0; color: #fff; }
.cta-band .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn { background: var(--primary); color: #111; border-color: var(--primary); }
.cta-band .btn.ghost { background: transparent; color: #fff; border-color: #fff; }

/* Footer */
footer { margin-top: 80px; border-top: 1.5px solid var(--border); padding: 36px 0 48px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }

/* Legal pages */
.doc { max-width: 780px; margin: 0 auto; padding: 48px 20px 0; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); letter-spacing: -1px; line-height: 1.1; margin: 0 0 8px; }
html[data-lang="ar"] .doc h1 { letter-spacing: 0; line-height: 1.3; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 24px; letter-spacing: -0.3px; margin: 40px 0 10px; }
.doc h3 { font-size: 18px; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--ink); }
.doc ul, .doc ol { padding-inline-start: 22px; }
.doc li { margin: 6px 0; }
.doc a { color: var(--primary-deep); font-weight: 600; }
.note {
  background: var(--primary-soft); border: 1.5px solid var(--primary);
  border-radius: var(--radius); padding: 20px 22px; margin: 24px 0;
}
.note p { margin: 0; }
.boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.box { border: 1.5px solid var(--border); border-radius: var(--radius); padding: 22px; }
.box h3 { margin-top: 0; }
.box ol { margin: 0; }
table.data { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
table.data th, table.data td { text-align: start; border-bottom: 1.5px solid var(--border); padding: 10px 8px; vertical-align: top; }
table.data th { font-weight: 700; }
.table-scroll { overflow-x: auto; }

.notfound { text-align: center; padding: 120px 20px 40px; }
.notfound .big { font-size: 96px; font-weight: 800; letter-spacing: -3px; line-height: 1; margin: 0; }

@media (max-width: 900px) {
  .hero-box { grid-template-columns: 1fr; padding: 40px 28px; }
  .steps, .feats { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding-top: 16px; }
  .hero-box { padding: 32px 22px; border-radius: 24px; }
  .steps, .feats, .boxes { grid-template-columns: 1fr; }
  .panel { padding: 26px 22px; }
  .cta-band { padding: 32px 22px; }
  section { padding-top: 60px; }
  .doc { padding: 32px 16px 0; }
}
