/* ==========================================================================
   Yazoo Score — shared stylesheet
   Magenta-violet brand. RTL Arabic. Mobile-first responsive design.
   ========================================================================== */

:root {
  --brand: #8521eb;
  --violet: #6050f6;
  --pop: #f63f87;
  --ink: #10122a;
  --ink-soft: #1c1f3d;
  --text: #1a1f33;
  --text-soft: #4a5371;
  --muted: #8893ad;
  --bg: #faf8ff;
  --surface: #ffffff;
  --line: rgba(16, 18, 42, 0.08);
  --shadow-sm: 0 4px 12px rgba(16, 18, 42, 0.06);
  --shadow-md: 0 14px 40px rgba(16, 18, 42, 0.10);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --container: 1080px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Display",
               "Segoe UI", "Tajawal", "Cairo", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border-color .2s ease;
}
a:hover { border-bottom-color: var(--brand); }

img { max-width: 100%; display: block; }

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

/* ----- Navigation -------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.nav__brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px;
  color: var(--ink);
  border: none;
}
.nav__logo {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--violet));
  display: grid; place-items: center;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 6px 18px rgba(133, 33, 235, 0.35);
}
.nav__links {
  display: flex; gap: 22px; align-items: center;
  list-style: none; padding: 0; margin: 0;
}
.nav__links a {
  font-size: 14px; font-weight: 600;
  color: var(--text-soft);
  border: none;
}
.nav__links a:hover { color: var(--ink); }

@media (max-width: 640px) {
  .nav__links { gap: 14px; }
  .nav__links a { font-size: 13px; }
}

/* ----- Hero -------------------------------------------------------------- */

.hero {
  position: relative;
  background: linear-gradient(160deg, var(--ink), var(--ink-soft));
  color: #fff;
  overflow: hidden;
  padding: 80px 0 90px;
  isolation: isolate;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  z-index: -1;
}
.hero::before {
  background: var(--brand);
  width: 380px; height: 380px;
  top: -120px;
  inset-inline-end: -120px;
}
.hero::after {
  background: var(--pop);
  width: 320px; height: 320px;
  bottom: -160px;
  inset-inline-start: -120px;
  opacity: 0.35;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 900;
  line-height: 1.15;
  margin: 14px 0 18px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--brand), var(--pop));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  font-size: 18px;
  color: rgba(255,255,255,.75);
  max-width: 600px;
  margin: 0 auto 24px;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(133, 33, 235, 0.20);
  border: 1px solid rgba(133, 33, 235, 0.45);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
}
.hero__inner { text-align: center; }

/* ----- Section ----------------------------------------------------------- */

.section {
  padding: 70px 0;
}
.section--soft { background: var(--surface); }

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}
.section__title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 900;
  margin: 0 0 12px;
  color: var(--ink);
}
.section__sub {
  font-size: 16px;
  color: var(--text-soft);
}

/* ----- Feature grid ------------------------------------------------------ */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 880px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(133, 33, 235, 0.4);
}
.feature__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--violet));
  display: grid; place-items: center;
  color: #fff;
  font-size: 20px;
  margin-bottom: 14px;
}
.feature h3 {
  font-size: 17px; font-weight: 800;
  margin: 0 0 6px;
  color: var(--ink);
}
.feature p {
  font-size: 14px;
  color: var(--text-soft);
  margin: 0;
}

/* ----- Doc page (privacy / support) -------------------------------------- */

.page {
  padding: 50px 0 80px;
}
.page__head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 36px;
}
.page__head h1 {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 900;
  margin: 8px 0 12px;
  color: var(--ink);
}
.page__head .meta {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.page__head p {
  font-size: 16px;
  color: var(--text-soft);
}

.doc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 600px) { .doc { padding: 24px 18px; border-radius: 18px; } }

.doc h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 32px 0 10px;
  color: var(--ink);
}
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li {
  font-size: 15px;
  color: var(--text-soft);
}
.doc ul { padding-inline-start: 22px; }
.doc li + li { margin-top: 6px; }

/* ----- FAQ accordion ----------------------------------------------------- */

.faq {
  display: flex; flex-direction: column; gap: 10px;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 4px 18px;
  transition: border-color .2s ease;
}
.faq details[open] { border-color: rgba(133, 33, 235, 0.45); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 0;
  color: var(--ink);
  display: flex; align-items: center; justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 700;
  color: var(--brand);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 16px; color: var(--text-soft); font-size: 14px; }

/* ----- Footer ------------------------------------------------------------ */

.footer {
  background: var(--ink);
  color: rgba(255,255,255,.65);
  padding: 36px 0 24px;
  font-size: 14px;
  text-align: center;
}
.footer a { color: rgba(255,255,255,.65); border: none; }
.footer a:hover { color: #fff; }
.footer__links {
  display: flex; gap: 18px; justify-content: center;
  margin-top: 14px;
  list-style: none; padding: 0;
}
.footer__copy {
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255,255,255,.45);
}
