:root {
  --red: #8B0000;
  --red-2: #991B1B;
  --red-deep: #5C0A0A;
  --cream: #FFF7EC;
  --sand: #F8F1EA;
  --ink: #2A1A17;
  --muted: #6E5A55;
  --line: #EADBD5;
  --card: #FFFFFF;
  --bg: #FFFCF8;
  --gold: #E9B949;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(92, 10, 10, .08);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #F6EDE8; --muted: #C9B7B1; --line: #3A2826; --card: #211615; --bg: #160E0D; --sand: #1C1312;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  --ink: #F6EDE8; --muted: #C9B7B1; --line: #3A2826; --card: #211615; --bg: #160E0D; --sand: #1C1312;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: 17px; line-height: 1.75; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.3; margin: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: #fff; color: var(--red); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 5; background: rgba(92, 10, 10, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.nav-in { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 800; font-size: 22px; }
.brand img { border-radius: 12px; }
.nav nav { display: flex; gap: 22px; margin-inline-start: auto; }
.nav nav a { color: rgba(255, 255, 255, .85); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav nav a:hover { color: #fff; }
@media (max-width: 720px) { .nav nav { display: none; } .nav .btn-sm { margin-inline-start: auto; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn-light { background: #fff; color: var(--red); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(139, 0, 0, .25); }
.btn-primary:hover { background: var(--red-2); }
.btn-ghost { border: 2px solid var(--red); color: var(--red); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-ghost { border-color: #F0B4AE; color: #F0B4AE; } }

/* hero */
.hero { background: #7D1A16; /* exactly the mascot pictures' red, so they blend in */ color: #fff; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 24px; padding-top: 56px; padding-bottom: 40px; }
.eyebrow { margin: 0 0 10px; font-weight: 700; font-size: 14px; letter-spacing: .2px; color: var(--gold); }
.hero h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 800; }
.lead { font-size: clamp(17px, 2vw, 20px); color: rgba(255, 255, 255, .88); max-width: 34em; margin: 18px 0 28px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 6px 18px 6px 20px; border-radius: 14px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .22); color: #fff; font-weight: 700; font-size: 17px; direction: ltr; }
.store svg { width: 24px; height: 24px; fill: #fff; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store small { font-weight: 500; font-size: 12px; opacity: .8; direction: rtl; text-align: left; }
.hero-art { justify-self: center; width: min(210px, 60vw); }
/* the mascot: five poses on the app red, cross-fading every 3 s (app.js) */
/* no frame: the edges fade out so the picture melts into the hero red */
.sheep-card {
  position: relative; aspect-ratio: 220 / 540;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-composite: intersect;
}
.sheep { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease; }
.sheep.on { opacity: 1; }
@media (max-width: 820px) {
  .hero-in { grid-template-columns: 1fr; text-align: center; padding-top: 36px; }
  .lead { margin-inline: auto; }
  .stores { justify-content: center; }
  .hero-art { width: min(130px, 38vw); order: -1; }
}

/* sections */
section h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; }
.offer { padding: 72px 16px 24px; }
.offer h2 { text-align: center; margin-bottom: 32px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); }
.card .ic { width: 52px; height: 52px; display: grid; place-items: center; font-size: 28px; border-radius: 16px; background: var(--sand); margin-bottom: 14px; }
.card h3 { font-size: 20px; font-weight: 800; color: var(--red); margin-bottom: 6px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card h3 { color: #F0B4AE; } }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.how { padding: 56px 0; }
.how-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; background: var(--sand); border-radius: 28px; padding: 40px; }
@media (max-width: 820px) { .how-in { grid-template-columns: 1fr; padding: 28px 20px; } .lamb { max-width: 300px; margin: 0 auto; } }
.steps { list-style: none; padding: 0; margin: 24px 0 0; counter-reset: s; display: grid; gap: 18px; }
.steps li { counter-increment: s; position: relative; padding-inline-start: 62px; display: flex; flex-direction: column; }
.steps li::before { content: counter(s, arabic-indic); position: absolute; inset-inline-start: 0; top: 2px; width: 44px; height: 44px; border-radius: 14px; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.steps b { font-size: 19px; }
.steps span { color: var(--muted); }

.merchants { padding: 24px 16px 56px; }
.m-box { display: grid; grid-template-columns: 1.4fr .6fr; gap: 28px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 40px; box-shadow: var(--shadow); border-inline-start: 6px solid var(--red); }
@media (max-width: 820px) { .m-box { grid-template-columns: 1fr; padding: 28px 20px; } }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 32px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%; background: #15803D url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat; }
.m-cta { display: flex; flex-direction: column; gap: 12px; }

.about { padding: 8px 16px 72px; max-width: 820px; }
.about p { color: var(--muted); font-size: 18px; margin: 14px 0 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 24px 0 0; }
.facts div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.facts a { color: var(--red); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .facts a { color: #F0B4AE; } }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* footer */
.foot { background: var(--red-deep); color: rgba(255, 255, 255, .85); padding: 28px 0; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 18px; }
.foot-brand img { border-radius: 9px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot nav a { color: rgba(255, 255, 255, .85); text-decoration: none; font-size: 15px; }
.foot nav a:hover { color: #fff; text-decoration: underline; }
.copy { margin: 0 auto 0 0; font-size: 14px; opacity: .75; }
@media (max-width: 720px) { .foot-in { flex-direction: column; text-align: center; } .copy { margin: 0; } .foot nav { justify-content: center; } }
