/* ==========================================================================
   تموينات — موقع تعريفي
   الهوية: أخضر زمردي + ذهبي زعفراني + ورق كريمي
   ========================================================================== */

:root {
  --green: #0e4a38;
  --green-600: #135f47;
  --deep: #0a3628;
  --gold: #f2b544;
  --gold-deep: #d99a24;
  --gold-soft: #fbe7be;
  --cream: #f7f4ec;
  --cream-2: #f1ece0;
  --paper: #ffffff;
  --ink: #12211b;
  --muted: #62756b;
  --border: #e6e0d3;
  --soft-green: #eef5f1;
  --shadow-sm: 0 4px 16px rgba(10, 54, 40, 0.06);
  --shadow-md: 0 18px 44px rgba(10, 54, 40, 0.1);
  --shadow-lg: 0 32px 80px rgba(10, 54, 40, 0.16);
  --radius: 22px;
  --container: 1180px;
  /* خط التطبيق الرئيسي: Noto Kufi Arabic */
  --font: "Noto Kufi Arabic", Tahoma, "Segoe UI", sans-serif;
  --font-brand: "Noto Kufi Arabic", Tahoma, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[id] { scroll-margin-top: 88px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 200;
  background: var(--green);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 12px 12px;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid rgba(242, 181, 68, 0.85);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============================ Buttons ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: var(--gold);
  color: var(--deep);
  box-shadow: 0 10px 24px rgba(242, 181, 68, 0.32);
}
.btn-gold:hover { background: #f6c463; box-shadow: 0 14px 30px rgba(242, 181, 68, 0.42); }

.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-600); }

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.14); }

.btn-sm { padding: 9px 18px; font-size: 0.88rem; }
.btn-block { width: 100%; }

.header-merchant-cta {
  font-weight: 700;
}

/* ============================ Header ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(247, 244, 236, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px rgba(10, 54, 40, 0.06);
  background: rgba(247, 244, 236, 0.94);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 74px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img,
.brand-icon,
.download-logo {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 22.37%;
  background: transparent;
  box-shadow:
    0 0 0 0.5px rgba(14, 74, 56, 0.12),
    0 2px 6px rgba(14, 74, 56, 0.16);
}
/* نفس تنسيق اسم العلامة أعلى تسجيل الدخول — الإنجليزية بعرض العربي تماماً */
.brand-lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  width: max-content;
  line-height: 1;
  gap: 0;
}
.brand-ar {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.25rem;
  color: #17201c;
  letter-spacing: 0.4px;
  white-space: nowrap;
  text-align: center;
}
.brand-en {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  margin-top: 2px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 0.5rem;
  letter-spacing: 0;
  color: #4e5b55;
  text-transform: uppercase;
  line-height: 1;
}
.brand-en > span {
  flex: 0 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-inline-start: auto;
}
.nav a {
  position: relative;
  font-weight: 500;
  font-size: 0.96rem;
  color: #3c4f46;
  padding: 6px 0;
  transition: color 0.18s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.22s ease;
}
.nav a:hover { color: var(--green); }
.nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  padding: 0;
  place-items: center;
  gap: 4px;
  flex-direction: column;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================ Hero ============================ */
.hero {
  position: relative;
  padding: 66px 0 92px;
  background:
    radial-gradient(1000px 540px at 88% 4%, rgba(127, 174, 106, 0.2), transparent 62%),
    radial-gradient(760px 420px at 4% 92%, rgba(242, 181, 68, 0.18), transparent 60%),
    var(--cream);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(14, 74, 56, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(700px 400px at 80% 20%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(700px 400px at 80% 20%, #000 0%, transparent 75%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--green);
  box-shadow: var(--shadow-sm);
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(242, 181, 68, 0.22);
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.15rem, 4.6vw, 3.65rem);
  line-height: 1.16;
  letter-spacing: -0.8px;
  color: var(--ink);
}
.hero h1 .highlight {
  color: var(--green);
  background-image: linear-gradient(transparent 68%, rgba(242, 181, 68, 0.82) 68%, rgba(242, 181, 68, 0.82) 92%, transparent 92%);
  background-repeat: no-repeat;
  padding-inline: 2px;
}

.lead {
  margin-top: 20px;
  font-size: 1.06rem;
  line-height: 1.95;
  color: #4c6157;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.store-badge,
.store-badge-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 148px;
  height: 44px;
  line-height: 0;
  border-radius: 8px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.store-badge:hover,
.store-badge-play:hover { transform: translateY(-2px); opacity: 0.92; }
.store-badge img,
.store-badge-play img {
  display: block;
  width: 148px !important;
  height: 44px !important;
  max-width: 148px;
  margin: 0 !important;
  object-fit: contain;
  object-position: center;
  transform: none;
}

.text-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--green);
  padding: 10px 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.text-link span { transition: transform 0.18s ease; }
.text-link:hover span { transform: translateX(-4px); }

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 28px;
  font-size: 0.85rem;
  color: #52665b;
}
.trust-list li { display: inline-flex; align-items: center; gap: 6px; }
.trust-list svg { width: 17px; height: 17px; color: var(--green); flex: none; }

/* --- Hero visual --- */
.hero-visual { position: relative; }
.hero-figure {
  position: relative;
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(230, 224, 211, 0.9);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.4;
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 26px -22px -26px 22px;
  border-radius: 34px;
  border: 2px dashed rgba(14, 74, 56, 0.16);
  z-index: -1;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 11px 14px;
  box-shadow: 0 18px 40px rgba(10, 54, 40, 0.16);
  animation: float 7s ease-in-out infinite;
}
.float-store { top: -20px; right: -18px; }
.float-order { bottom: -24px; left: -14px; animation-delay: 1.2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@media (prefers-reduced-motion: reduce) {
  .float-card { animation: none; }
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 22.37%;
  object-fit: cover;
  background: transparent;
  color: #fff;
  display: block;
  flex: none;
  box-shadow:
    0 0 0 0.5px rgba(14, 74, 56, 0.12),
    0 2px 6px rgba(14, 74, 56, 0.16);
}
.float-body { display: flex; flex-direction: column; line-height: 1.4; }
.float-body strong { font-size: 0.86rem; }
.float-body span { font-size: 0.74rem; color: var(--muted); }
.star { color: var(--gold-deep); }
.badge-open {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--green);
  background: var(--soft-green);
  padding: 4px 9px;
  border-radius: 999px;
}
.order-icon { color: var(--green); }
.order-icon svg { width: 30px; height: 30px; }
.progress {
  width: 132px;
  height: 5px;
  border-radius: 99px;
  background: #e8efe9;
  margin-top: 6px;
  overflow: hidden;
}
.progress span { display: block; width: 62%; height: 100%; border-radius: inherit; background: var(--gold); }

/* ============================ Stats ============================ */
.stats { background: var(--deep); color: #fff; padding: 40px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat {
  text-align: center;
  padding: 6px 10px;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.12);
}
.stat:first-child { border-inline-start: 0; }
.stat strong {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.stat strong .plus,
.stat strong .pct { font-size: 0.7em; }
.stat > span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.72); }

/* ============================ Sections ============================ */
.section { padding: 88px 0; }
.section-head { max-width: 660px; margin: 0 auto 46px; text-align: center; }
.section-head.align-start { text-align: start; margin-inline: 0; }
.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--green);
  background: rgba(14, 74, 56, 0.08);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.kicker.light { color: var(--gold); background: rgba(242, 181, 68, 0.14); }
.section-head h2 { font-size: clamp(1.65rem, 3.1vw, 2.4rem); letter-spacing: -0.5px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1rem; }
.section-head a { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ============================ How ============================ */
.how { background: #fff; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative;
  background: #fbf9f3;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
  position: absolute;
  top: 22px;
  inset-inline-start: 24px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-deep);
  letter-spacing: 1px;
}
.step-icon {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: var(--soft-green);
  color: var(--green);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.step-icon svg { width: 27px; height: 27px; }
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.93rem; }

/* ============================ Features ============================ */
.features { background: var(--cream); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d9d1be; }
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--soft-green);
  color: var(--green);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 0.92rem; }

/* ============================ Merchants ============================ */
.merchants { background: var(--cream-2); }
.merchant-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 46px;
  align-items: center;
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(242, 181, 68, 0.22), transparent 60%),
    linear-gradient(150deg, var(--green) 0%, var(--deep) 70%);
  color: #fff;
  border-radius: 32px;
  padding: 48px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.merchant-card::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.merchant-copy .kicker {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 7px 16px;
  margin-bottom: 14px;
  border-radius: 999px;
}
.merchant-copy h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); margin-bottom: 16px; }
.merchant-copy > p { color: rgba(255, 255, 255, 0.82); max-width: 34rem; }
.merchant-copy .emph-free {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.08em;
  letter-spacing: 0.2px;
  text-shadow: 0 0 18px rgba(242, 181, 68, 0.35);
}
.check-list { margin: 22px 0 28px; display: grid; gap: 11px; }
.check-list li {
  position: relative;
  padding-inline-start: 30px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}
.check-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(242, 181, 68, 0.2);
  box-shadow: inset 0 0 0 1px rgba(242, 181, 68, 0.5);
}
.check-list li::after {
  content: "";
  position: absolute;
  inset-inline-start: 6px;
  top: 7px;
  width: 5px;
  height: 9px;
  border: solid var(--gold);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.merchant-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.page-merchants .merchants-hero {
  padding-top: 48px;
}
.page-merchants .merchant-card {
  align-items: stretch;
}
.page-merchants .merchant-copy h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  margin-bottom: 16px;
  line-height: 1.3;
}
.merchant-city-note {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}
.merchant-steps .feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--green);
  background: var(--gold-soft);
}
.btn-outline-light[hidden],
.js-whatsapp-cta[hidden] {
  display: none !important;
}

.merchant-form-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.merchant-help-btn {
  align-self: stretch;
  text-align: center;
  justify-content: center;
  pointer-events: none;
  cursor: default;
  margin: 0;
  user-select: none;
}

.merchant-form {
  position: relative;
  z-index: 1;
  background: #fff;
  color: var(--ink);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}
.merchant-form h3 { font-size: 1.2rem; }
.form-note { color: var(--muted); font-size: 0.85rem; margin: 4px 0 18px; }
.merchant-form label { display: block; margin-bottom: 14px; }
.merchant-form label > span {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #35473e;
}
.merchant-form input,
.merchant-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: #fbf9f3;
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.merchant-form textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.55;
  font: inherit;
}
.merchant-form input::placeholder,
.merchant-form textarea::placeholder { color: #9aa79f; }
.merchant-form input:focus,
.merchant-form textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(14, 74, 56, 0.1);
}
.form-privacy { margin-top: 12px; font-size: 0.72rem; color: var(--muted); text-align: center; }

/* ============================ Gallery ============================ */
.gallery { background: #fff; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.shot {
  margin: 0;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--cream);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.shot:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px 26px 0 0;
}
.shot figcaption {
  padding: 15px 16px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--green);
  background: #fff;
  border-top: 1px solid var(--border);
}

/* ============================ FAQ ============================ */
.faq { background: var(--cream); }
.faq-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; }
.accordion { border-top: 1px solid var(--border); }
.accordion details { border-bottom: 1px solid var(--border); }
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 2px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  color: #21362c;
}
.accordion summary::-webkit-details-marker { display: none; }
.chev {
  width: 10px;
  height: 10px;
  border-inline-end: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(45deg);
  transition: transform 0.22s ease;
  flex: none;
  margin-inline-end: 4px;
}
details[open] .chev { transform: rotate(-135deg); }
.answer { padding: 0 2px 20px; color: var(--muted); font-size: 0.93rem; }
.answer a { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ============================ Download ============================ */
.download { background: var(--cream-2); }
.download-card {
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 56px 28px;
  box-shadow: var(--shadow-md);
  max-width: 820px;
}
.download-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  box-shadow:
    0 0 0 0.5px rgba(14, 74, 56, 0.12),
    0 8px 20px rgba(14, 74, 56, 0.18);
}
.download-card h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.download-card > p { color: var(--muted); margin-top: 10px; }
.download-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 26px;
  direction: ltr;
  unicode-bidi: isolate;
}

/* ============================ Footer ============================ */
.site-footer { background: var(--deep); color: rgba(255, 255, 255, 0.78); padding: 64px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: 34px;
  padding-bottom: 44px;
}
.footer-brand .brand-ar { color: #fff; }
.footer-brand .brand-en { color: #f2b544; }
.footer-brand .brand img {
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.18),
    0 2px 8px rgba(0, 0, 0, 0.28);
}
.footer-brand p { margin-top: 14px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.66); max-width: 30rem; }
.site-footer h4 { font-size: 0.86rem; color: var(--gold); margin-bottom: 14px; letter-spacing: 0.3px; }
.site-footer nav { display: flex; flex-direction: column; gap: 9px; }
.site-footer a { font-size: 0.9rem; color: rgba(255, 255, 255, 0.78); transition: color 0.18s ease; }
.site-footer a:hover { color: var(--gold); }
.muted-small { font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); margin-top: 6px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-legal { display: flex; gap: 18px; }

/* ============================ Toast + reveal ============================ */
.toast {
  position: fixed;
  inset-inline: 0;
  bottom: 26px;
  margin-inline: auto;
  width: max-content;
  max-width: calc(100% - 40px);
  background: var(--deep);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.88rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 150;
}
.toast.show { opacity: 1; transform: translateY(0); }

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ============================ Legal pages ============================ */
.legal-page { padding: 56px 0 88px; }
.legal-card {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 44px 42px;
  box-shadow: var(--shadow-sm);
}
.legal-card h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.legal-card .updated { color: var(--muted); font-size: 0.82rem; margin-top: 8px; }
.legal-card h2 { font-size: 1.12rem; margin-top: 30px; margin-bottom: 10px; color: var(--green); }
.legal-card p, .legal-card li { color: #4f6258; font-size: 0.94rem; line-height: 1.95; }
.legal-card p + p { margin-top: 10px; }
.legal-card ul { list-style: disc; padding-inline-start: 22px; display: grid; gap: 7px; margin-top: 6px; }
.legal-card a { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.legal-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; font-weight: 600; color: var(--green); }
@media (max-width: 680px) { .legal-card { padding: 28px 22px; border-radius: 20px; } }

/* ============================ Responsive ============================ */
@media (max-width: 1024px) {
  .hero-grid { gap: 34px; }
  .float-store { right: -6px; top: -14px; }
  .float-order { left: -6px; bottom: -18px; }
  .merchant-card { grid-template-columns: 1fr; padding: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: 74px;
    inset-inline: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 11px 12px; border-radius: 10px; }
  .nav a:hover { background: var(--cream); }
  .nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .header-actions { margin-inline-start: auto; }

  .hero { padding: 44px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin-inline: auto; width: 100%; }
  .hero-visual::before { display: none; }
  .hero h1 { margin-top: 18px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .stat:nth-child(3) { border-inline-start: 0; }
  .steps { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: repeat(3, minmax(220px, 1fr)); overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
  .shot { scroll-snap-align: center; }
  .faq-wrap { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .header-actions .header-merchant-cta {
    display: inline-flex;
  }
  .hero-figure { aspect-ratio: 4 / 3; }
  .float-card { padding: 9px 12px; gap: 8px; }
  .float-store { top: -12px; right: 4px; }
  .float-order { left: 4px; bottom: -16px; }
  .float-order .progress { width: 104px; }
  .feature-grid { grid-template-columns: 1fr; }
  .merchant-card { padding: 30px 22px; border-radius: 24px; }
  .merchant-form { padding: 22px; }
  .download-card { padding: 40px 20px; border-radius: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .shots { grid-template-columns: repeat(3, minmax(200px, 1fr)); }
}

@media (max-width: 430px) {
  .hero-actions { gap: 10px; }
  .store-badge,
  .store-badge-play {
    width: 136px;
    height: 40px;
  }
  .store-badge img,
  .store-badge-play img {
    width: 136px !important;
    height: 40px !important;
  }
  .float-store { top: -12px; right: 4px; }
  .float-order { left: 4px; bottom: -14px; }
  .stat > span { font-size: 0.78rem; }
}
