/* مواشي برو — موقع تعريفي (ألوان متوافقة مع التطبيق) */
@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap");

:root {
  --bg: hsl(38 27% 96%);
  --fg: hsl(134 33% 15%);
  --primary: hsl(146 46% 33%);
  --primary-fg: hsl(0 0% 100%);
  --secondary: hsl(38 79% 56%);
  --muted: hsl(38 20% 90%);
  --muted-fg: hsl(26 15% 45%);
  --border: hsl(38 20% 85%);
  --radius: 0.75rem;
  --shadow: 0 4px 24px hsl(134 33% 15% / 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Tajawal", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  direction: rtl;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  opacity: 0.9;
}

.top-band {
  height: 4px;
  background: linear-gradient(90deg, #166534 0%, #2d7a4f 55%, #15803d 100%);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.site-header a.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  font-weight: 800;
  font-size: 1.15rem;
}

.site-header .brand img {
  width: 44px;
  height: 44px;
  display: block;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: 0 2px 8px hsl(146 46% 33% / 0.35);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.hero {
  text-align: center;
  padding: 2.5rem 0 2rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--fg);
  line-height: 1.25;
}

.hero .lead {
  margin: 0 auto 1.5rem;
  max-width: 36rem;
  font-size: 1.05rem;
  color: var(--muted-fg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.download-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 0 auto 2rem;
  max-width: min(100%, 36rem);
}

.download-block .hint {
  font-size: 0.9rem;
  color: var(--muted-fg);
  margin: 0;
  text-align: center;
}

.app-store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

/* رابط شارة App Store — مساحة لمس أوضح + حجم الشارة في .app-store-badge-img */
.app-store-badge-link {
  display: inline-block;
  line-height: 0;
  padding: 0.35rem;
  margin: -0.35rem;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.app-store-badge-link:hover {
  opacity: 0.92;
  transform: scale(1.02);
}

.app-store-badge-img {
  height: clamp(72px, 22vw, 108px);
  width: auto;
  max-width: min(100%, 420px);
  min-height: 72px;
  display: block;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 2.5rem 0;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--primary);
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted-fg);
}

.section-title {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
  margin: 2.5rem 0 1.25rem;
  color: var(--fg);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
  gap: 2.75rem 2rem;
  margin-bottom: 2.5rem;
  justify-items: center;
  align-items: start;
}

/* موكب iPhone — إطار معدني، جزيرة ديناميكية، أزرار جانبية */
.phone-mockup {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.phone-frame {
  position: relative;
  padding: 11px;
  border-radius: 52px;
  background:
    linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0) 42%
    ),
    linear-gradient(
      172deg,
      #636368 0%,
      #48484d 12%,
      #323236 35%,
      #1c1c1f 52%,
      #2a2a2e 88%,
      #3e3e42 100%
    );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 0 0 1px rgba(0, 0, 0, 0.55),
    0 40px 80px -24px rgba(0, 0, 0, 0.4),
    0 16px 40px -12px rgba(0, 0, 0, 0.28);
}

.phone-inner {
  border-radius: 42px;
  padding: 3px;
  background: linear-gradient(180deg, #08080a 0%, #141418 50%, #0c0c0e 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.9) inset,
    0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.phone-screen {
  position: relative;
  border-radius: 39px;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  background: #000;
  isolation: isolate;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Dynamic Island */
.phone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: min(34%, 122px);
  height: 30px;
  background: #050505;
  border-radius: 22px;
  z-index: 4;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07) inset,
    0 2px 6px rgba(0, 0, 0, 0.5),
    0 8px 20px rgba(0, 0, 0, 0.35);
}

/* أزرار الجهاز (يسار: كتم/صوت — يمين: التشغيل) — ثابتة حسب الجهاز وليس RTL */
.phone-btn {
  position: absolute;
  z-index: 1;
  border-radius: 1.5px;
  background: linear-gradient(180deg, #45454a 0%, #252528 45%, #1a1a1d 100%);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.6);
}

.phone-btn--mute {
  left: -2px;
  top: 15%;
  width: 3px;
  height: 20px;
}

.phone-btn--vol-up {
  left: -2px;
  top: 22%;
  width: 3px;
  height: 18%;
  max-height: 52px;
}

.phone-btn--vol-down {
  left: -2px;
  top: 38%;
  width: 3px;
  height: 18%;
  max-height: 52px;
}

.phone-btn--power {
  right: -2px;
  top: 22%;
  width: 3px;
  height: 72px;
}

@media (max-width: 380px) {
  .phone-mockup {
    max-width: min(100%, 300px);
  }

  .phone-frame {
    border-radius: 46px;
    padding: 9px;
  }

  .phone-inner {
    border-radius: 38px;
  }

  .phone-screen {
    border-radius: 35px;
  }

  .phone-island {
    height: 26px;
    top: 8px;
  }
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted-fg);
  background: hsl(38 27% 94%);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.site-footer a {
  font-weight: 600;
}

.site-footer .fine {
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* صفحات قانونية */
.legal-page {
  padding: 1.5rem 0 3rem;
}

.legal-page h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--fg);
}

.legal-page .intro-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
}

.legal-meta {
  font-size: 0.85rem;
  color: var(--muted-fg);
  margin-bottom: 1.5rem;
}

.legal-section {
  margin-bottom: 2rem;
}

.legal-section h2 {
  font-size: 1.15rem;
  color: var(--primary);
  margin: 0 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid hsl(146 46% 33% / 0.25);
}

.legal-section p,
.legal-section li {
  font-size: 0.95rem;
  margin: 0 0 0.65rem;
}

.legal-section ul {
  padding-inline-start: 1.25rem;
  margin: 0 0 0.75rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 600;
}

