/* =========================================================
   الباقات والأسعار — Pricing
   Faithful rebuild of Figma node 2177:68
   Exact Figma tokens used in this section:
     section bg              #f7f7fb
     dark card bg / brand    #372873   (Figma indigo — NOT --primary #2a1e59)
     heading indigo          #241b4f
     accent lime             #acd91a  (= --accent)
     muted grey              #6b6790  (= --border)
     light-card border/div   #e7e5f0
     dark-card subtext        #cfcbe6
     light check circle       #639922
   Font: Tajawal (400 / 500 / 700), loaded globally
   ========================================================= */

.pricing {
  box-sizing: border-box;
  width: 100%;
  background: #f7f7fb;
  padding: 96px 64px;
  display: flex;
  justify-content: center;
  font-family: "Tajawal", "Segoe UI", Tahoma, sans-serif;
}
.pricing *,
.pricing *::before,
.pricing *::after { box-sizing: border-box; }

.pricing__inner {
  width: 100%;
  max-width: 1152px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
}

/* ---------- head ---------- */
.pricing__head {
  width: 100%;              /* stay within the section — never force page-wide overflow */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  word-break: break-word;
}
.pricing__eyebrow {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
  line-height: normal;
  letter-spacing: 0.42px;
  color: #372873;
  white-space: nowrap;
}
.pricing__title {
  margin: 0;
  font-weight: 700;
  font-size: 34px;
  line-height: normal;
  color: #241b4f;
  white-space: nowrap;
}
.pricing__subtitle {
  margin: 0;
  width: 100%;
  max-width: 640px;   /* cap width without forcing a fixed 640px box on mobile */
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--border); /* #6b6790 */
}

/* ---------- cards ---------- */
.pricing__cards {
  display: flex;
  flex-direction: row-reverse;   /* Figma: light card left, dark card right */
  gap: 28px;
  align-items: center;
  justify-content: center;
}

.pricing__card {
  position: relative;
  flex-shrink: 0;
  width: 486px;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* RTL: inline-start = right edge */
  gap: 20px;
  padding: 38px 34px;
  /* Figma physical radii: tl 22 · tr 10 · br 22 · bl 10 */
  border-radius: 22px 10px 22px 10px;
}

.pricing__card {
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.3s ease;
}
.pricing__card--light {
  background: #ffffff;
  border: 1px solid #e7e5f0;
  box-shadow: 0 8px 11px rgba(36, 27, 79, 0.08);
}
.pricing__card--light:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 52px rgba(36, 27, 79, 0.18);
  border-color: rgba(55, 40, 115, 0.28);
}
.pricing__card--dark {
  background: #372873; /* exact Figma dark-card fill */
  box-shadow: 0 14px 15px rgba(55, 40, 115, 0.3);
}
.pricing__card--dark:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(55, 40, 115, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .pricing__card { transition: none; }
}

/* ---------- card text ---------- */
.pricing__card-eyebrow {
  margin: 0;
  font-weight: 700;
  font-size: 15px;
  line-height: normal;
  color: #372873;
  text-align: right;
  white-space: nowrap;
}
.pricing__card-eyebrow--accent { color: var(--accent); } /* #acd91a */

.pricing__price {
  margin: 0;
  font-weight: 700;
  font-size: 40px;
  line-height: normal;
  color: #241b4f;
  text-align: right;
  white-space: nowrap;
}
.pricing__price--dark {
  font-size: 30px;
  color: #ffffff;
}
/* new Saudi Riyal glyph rendered as SVG so it stays compact across fonts/OSes */
.pricing__riyal {
  display: inline-block;
  height: 0.8em;
  width: auto;
  vertical-align: -0.04em;
  margin-inline-start: 8px; /* gap between the number and ﷼ (Arabic only; hidden in EN) */
}

.pricing__note {
  margin: 0;
  font-weight: 500;
  font-size: 13px;
  line-height: normal;
  color: var(--border); /* #6b6790 */
  text-align: right;
  white-space: nowrap;
}
.pricing__note--dark { color: #cfcbe6; }

.pricing__desc {
  margin: 0;
  width: 100%;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.65;
  color: var(--border); /* #6b6790 */
  text-align: right;
  word-break: break-word;
}
.pricing__desc--dark { color: #cfcbe6; }

/* ---------- divider ---------- */
.pricing__divider {
  width: 100%;
  height: 1px;
  background: #e7e5f0;
  flex-shrink: 0;
}
.pricing__divider--dark { background: rgba(255, 255, 255, 0.16); }

/* ---------- feature list ---------- */
.pricing__list {
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* RTL: inline-start = right edge */
  gap: 13px;
}
.pricing__feat {
  width: 100%;
  display: flex;
  flex-direction: row-reverse; /* check hugs the right (RTL start) */
  align-items: center;
  gap: 10px;
}
.pricing__feat-text {
  flex: 1 0 0;
  min-width: 0;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
  color: #241b4f;
  text-align: right;
}
.pricing__feat-text--dark { color: #ffffff; }
.pricing__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: block;
}

/* ---------- CTA ---------- */
.pricing__cta {
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  line-height: normal;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.pricing__cta--outline {
  background: #ffffff;
  border: 1.5px solid #372873;
  color: #372873;
}
.pricing__cta--outline:hover {
  background: #372873;
  color: #ffffff;
  transform: translateY(-1px);
}
.pricing__cta--solid {
  background: #ffffff;
  border: 1.5px solid #ffffff;
  color: #372873;
}
.pricing__cta--solid:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

/* ---------- badge ---------- */
.pricing__badge {
  position: absolute;
  top: -14px;
  left: 335px;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent); /* #acd91a */
  color: #241b4f;
  font-weight: 700;
  font-size: 12.5px;
  line-height: normal;
  white-space: nowrap;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .pricing { padding: 80px 40px; }
}

@media (max-width: 900px) {
  .pricing { padding: 64px 24px; }
  .pricing__title { white-space: normal; }
  .pricing__cards {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
  }
  .pricing__card {
    width: 100%;
    max-width: 486px;
  }
  .pricing__badge { left: auto; right: 24px; }
}

@media (max-width: 480px) {
  .pricing { padding: 56px 18px; }
  .pricing__title { font-size: 26px; }
  .pricing__price { font-size: 34px; }
  .pricing__card { padding: 32px 24px; }
}
