.price {
  position: relative;
  overflow: hidden;
  padding: 70px 0 90px;
  background: linear-gradient(160deg, #eaf2ff 0%, #f3fbf9 45%, #f7fafd 100%);
}

.price__decor {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.price__decor--a {
  width: 640px;
  height: 640px;
  bottom: -300px;
  left: -220px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.22) 0%, rgba(20, 184, 166, 0) 70%);
}

.price__decor--b {
  width: 640px;
  height: 640px;
  top: -260px;
  right: -220px;
  background: radial-gradient(circle, rgba(47, 111, 237, 0.20) 0%, rgba(47, 111, 237, 0) 70%);
}

.price__decor--c {
  width: 420px;
  height: 420px;
  bottom: -160px;
  right: 10%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.14) 0%, rgba(20, 184, 166, 0) 70%);
}

/* ---- Header ---- */

.price__head {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto 56px;
  padding: 0 140px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.price__badge {
  display: inline-flex;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}

.price__title {
  font-size: 42px;
  line-height: 1.25;
  font-weight: 900;
  color: var(--color-ink);
  margin-bottom: 16px;
}

.price__title-accent {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.price__desc {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-body);
}

.price__callout {
  position: absolute;
  z-index: 2;
}

.price__callout--tl {
  top: 70px;
  left: -70px;
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.price__callout--tl p {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.5;
  white-space: nowrap;
  margin-top: 4px;
}

.price__callout--tr {
  top: 40px;
  right: -190px;
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.price__callout-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.price__callout-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(47, 111, 237, 0.12);
  color: var(--color-primary);
  flex: none;
}

.price__callout-card p {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.5;
}

/* ---- Board: trust cards / plans / robot ---- */

.price__board {
  position: relative;
  z-index: 1;
  display: grid;
  /* Tracks declared right-to-left under dir=rtl (column 1 is the
     rightmost track): robot column lands right, plans in the middle,
     trust cards on the left - matching the reference regardless of
     source order. grid-row:1 pins all three to one row (otherwise the
     sparse auto-placement cursor scatters descending explicit columns
     across separate rows - see features.css for the same fix). */
  grid-template-columns: 190px 1fr 160px;
  align-items: start;
  gap: 14px;
  margin-bottom: 56px;
}

.price__side--robot { grid-column: 1; grid-row: 1; }
.price__plans { grid-column: 2; grid-row: 1; }
.price__side--trust { grid-column: 3; grid-row: 1; }

.price__side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.price__side--robot {
  align-items: center;
  padding-top: 20px;
}

.price__robot {
  width: 100%;
  max-width: 300px;
  height: auto;
}

.price__trust-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  text-align: right;
}

.price__trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(47, 111, 237, 0.1);
  color: var(--color-primary);
  margin-bottom: 12px;
}

.price__trust-card h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 4px;
}

.price__trust-card p {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--color-body);
}

.price__custom-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  width: 100%;
}

.price__custom-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(47, 111, 237, 0.1);
  color: var(--color-primary);
  margin-bottom: 10px;
}

.price__custom-card h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 6px;
}

.price__custom-card p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-body);
  margin-bottom: 14px;
}

.price__custom-cta {
  width: 100%;
  font-size: 13px;
  padding: 10px 14px;
}

/* ---- Plan cards ---- */

.price__plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Same fix as features.css's card columns: under dir=rtl, explicit
   grid-column 1 is the rightmost track. DOM order is [البداية,
   الاحترافية, المؤسسات] (left-to-right in the reference), so those
   need columns [3, 2, 1] respectively - and grid-row:1 is required on
   all three, since descending explicit columns in DOM order would
   otherwise make the sparse auto-placement cursor scatter them across
   separate rows instead of one. */
.price__plans > .plan:nth-child(1) { grid-column: 3; grid-row: 1; }
.price__plans > .plan:nth-child(2) { grid-column: 2; grid-row: 1; }
.price__plans > .plan:nth-child(3) { grid-column: 1; grid-row: 1; }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
}

.plan--featured {
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-10px);
  padding-top: 30px;
}

.plan__ribbon {
  position: absolute;
  top: -16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-btn);
  white-space: nowrap;
}

.plan__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.plan__icon--blue {
  background: rgba(47, 111, 237, 0.1);
  color: var(--color-primary);
}

.plan__icon--teal {
  background: rgba(20, 184, 166, 0.1);
  color: var(--color-teal);
}

.plan__icon--lg {
  width: 62px;
  height: 62px;
}

.plan__name {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-ink);
  margin-bottom: 4px;
}

.plan__tagline {
  font-size: 12px;
  color: var(--color-body);
  margin-bottom: 14px;
}

.plan__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  margin-bottom: 16px;
}

.plan__price strong {
  font-size: 34px;
  font-weight: 900;
  color: var(--color-ink);
}

.plan__currency {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-ink);
}

.plan__period {
  font-size: 12.5px;
  color: var(--color-muted);
  font-weight: 600;
}

.plan__features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 18px;
}

.plan__features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--color-body);
  font-weight: 600;
}

.plan__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(47, 111, 237, 0.1);
  color: var(--color-primary);
  flex: none;
}

.plan__check--solid {
  background: var(--gradient-brand);
  color: #fff;
}

.plan__cta {
  width: 100%;
  margin-top: auto;
}

/* ---- Stats row (same visual language as the features page) ---- */

.price__stats {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 56px;
  margin-bottom: 40px;
}

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

.price__stat-icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.price__stat-icon--blue {
  background: rgba(47, 111, 237, 0.1);
  color: var(--color-primary);
}

.price__stat-icon--teal {
  background: rgba(20, 184, 166, 0.1);
  color: var(--color-teal);
}

.price__stat div {
  display: flex;
  flex-direction: column;
}

.price__stat strong {
  font-size: 19px;
  font-weight: 800;
  color: var(--color-ink);
}

.price__stat span {
  font-size: 12px;
  color: var(--color-muted);
  font-weight: 600;
}

/* ---- Tagline ---- */

.price__tagline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
}

.price__tagline-line {
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.price__tagline p {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-body);
}
