/* نظام تصميم موقع «طير» — مطابق لهوية التطبيق (أخضر مزرعي + عنبري). */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');

:root {
  --green: #1f5f52;
  --green-700: #17493f;
  --amber: #e8a33d;
  --sand: #faf7f1;
  --ink: #1c2320;
  --muted: #5f6b66;
  --line: #e7e1d6;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 1px 3px rgba(28, 35, 32, .06), 0 8px 24px rgba(28, 35, 32, .05);
  --maxw: 960px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --green: #4a9e88;
    --green-700: #3c8a75;
    --amber: #f5b85c;
    --sand: #131816;
    --ink: #eef2ef;
    --muted: #9aa8a2;
    --line: #26302c;
    --card: #1b221f;
    --shadow: 0 1px 3px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'IBM Plex Sans Arabic', system-ui, -apple-system, sans-serif;
  background: var(--sand);
  color: var(--ink);
  line-height: 1.75;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ── الرأس ── */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--sand) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { font-size: 1.15rem; }
nav.site a {
  color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500;
  margin-inline-start: 22px; transition: color .15s;
}
nav.site a:hover { color: var(--green); }
@media (max-width: 640px) { nav.site a { margin-inline-start: 14px; font-size: .85rem; } .brand span { font-size: 1rem; } }

/* ── البطل ── */
.hero { text-align: center; padding: 72px 0 40px; }
.hero img.app { width: 104px; height: 104px; border-radius: 24px; box-shadow: var(--shadow); }
.hero h1 { font-size: 2.5rem; font-weight: 700; margin: 22px 0 10px; letter-spacing: -.5px; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 620px; margin: 0 auto 28px; }
@media (max-width: 640px) { .hero h1 { font-size: 1.9rem; } .hero p.lead { font-size: 1.05rem; } }

/* ── أزرار المتاجر ── */
.stores { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--sand);
  padding: 12px 22px; border-radius: 14px; text-decoration: none;
  font-weight: 600; font-size: .95rem; transition: transform .15s, opacity .15s;
}
.store:hover { transform: translateY(-2px); }
.store small { display: block; font-size: .7rem; opacity: .8; font-weight: 400; }
.store .s-name { font-size: 1rem; line-height: 1.1; }
.store svg { width: 24px; height: 24px; fill: currentColor; }

/* ── الأقسام ── */
section.block { padding: 48px 0; }
h2.sec { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; }
h2.sec::after { content: ''; display: block; width: 46px; height: 4px; background: var(--amber); border-radius: 3px; margin-top: 10px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 28px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.feature .ic {
  width: 44px; height: 44px; border-radius: 12px;
  background: color-mix(in srgb, var(--green) 12%, transparent);
  display: grid; place-items: center; margin-bottom: 14px;
}
.feature .ic svg { width: 22px; height: 22px; stroke: var(--green); fill: none; stroke-width: 1.8; }
.feature h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .95rem; }

/* ── محتوى قانوني ── */
.legal { padding: 44px 0 24px; }
.legal h1 { font-size: 2rem; margin-bottom: 6px; }
.legal .updated { color: var(--muted); font-size: .9rem; margin-bottom: 28px; }
.legal h2 { font-size: 1.3rem; margin: 32px 0 10px; color: var(--green); }
.legal h3 { font-size: 1.08rem; margin: 20px 0 8px; }
.legal p, .legal li { color: var(--ink); font-size: 1rem; margin-bottom: 12px; }
.legal ul { padding-inline-start: 22px; margin-bottom: 12px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--green); }
.legal .note {
  background: color-mix(in srgb, var(--amber) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--amber) 35%, transparent);
  border-radius: 12px; padding: 14px 18px; margin: 18px 0;
}
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .95rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: right; }
.legal th { background: color-mix(in srgb, var(--green) 8%, transparent); font-weight: 600; }

/* ── التذييل ── */
footer.site { border-top: 1px solid var(--line); padding: 36px 0; margin-top: 40px; color: var(--muted); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer.site a { color: var(--muted); text-decoration: none; font-size: .9rem; }
footer.site a:hover { color: var(--green); }
footer.site .copy { font-size: .85rem; }
