.cp {
  --navy: #0d263e;
  --teal: #006669;
  --teal-btn: #006367;
  --muted: #495d73;
  --cream: var(--bn-cream);
  --paper: #fbf8f1;
  color: var(--navy);
  background: var(--cream);
  overflow: hidden;
}

/* Site styles force Playfair/Fustat on headings and links. Keep this page on the Figma fonts. */
.cp,
.cp h1,
.cp h2,
.cp h3,
.cp p,
.cp a,
.cp li,
.cp span,
.cp strong,
.cp em {
  font-family: "Poppins", sans-serif !important;
}

html[dir="rtl"] .cp,
html[dir="rtl"] .cp h1,
html[dir="rtl"] .cp h2,
html[dir="rtl"] .cp h3,
html[dir="rtl"] .cp p,
html[dir="rtl"] .cp a,
html[dir="rtl"] .cp li,
html[dir="rtl"] .cp span,
html[dir="rtl"] .cp strong,
html[dir="rtl"] .cp em {
  font-family: "El Messiri", sans-serif !important;
}

.cp .cp-num {
  font-family: "Poppins", sans-serif !important;
}

.cp * { box-sizing: border-box; }
.cp a { text-decoration: none; }
.cp img { max-width: 100%; height: auto; }

.cp-wrap {
  width: min(1350px, calc(100% - 48px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cp-hero,
.cp-path { position: relative; }
.cp-hero { padding: 28px 0 36px; }
.cp-path { background: var(--cream); padding: 8px 0 56px; }
.cp-path .cp-deco { display: none; }

.cp-deco {
  position: absolute;
  width: 210px;
  pointer-events: none;
  z-index: 1;
  user-select: none;
}
.cp-deco--tl { top: 8px; left: 0; }
.cp-deco--tr { top: 8px; right: 0; }

.cp-intro { text-align: center; max-width: 760px; margin: 0 auto; }

.cp-eyebrow {
  margin: 0;
  color: #006669;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 19px;
}
html[dir="rtl"] .cp-eyebrow {
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
  font-size: 15px;
  line-height: 23px;
}

.cp-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 14px;
}
.cp-mark::before,
.cp-mark::after {
  content: "";
  width: 42px;
  height: 1px;
  background: #9ec3bb;
}
.cp-mark img { width: 16px; height: 16px; }

.cp h1,
.cp h2,
.cp h3 {
  text-transform: none;
  padding: 0;
}
.cp-h1 {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #0d263e;
  font-size: 64px;
  line-height: 78px;
  font-weight: 700;
}
.cp-h1 em {
  font-style: italic;
  font-weight: 700;
  color: #006669;
  font-size: 60px;
  line-height: 73px;
}
html[dir="rtl"] .cp-h1 { line-height: 96px; }
html[dir="rtl"] .cp-h1 em {
  font-style: normal;
  font-size: 60px;
  line-height: 90px;
}
.cp-h1__accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cp-lead {
  margin: 10px auto 0;
  max-width: 760px;
  color: #495d73;
  font-size: 22px;
  line-height: 29px;
  font-weight: 400;
}
html[dir="rtl"] .cp-lead { line-height: 33px; }

.cp-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
  align-items: stretch;
}

.cp-card {
  position: relative;
  min-height: 500px;
  border-radius: 28px;
  overflow: hidden;
  padding: 27px 29px 28px;
}
.cp-card--quran { background: linear-gradient(180deg, #e4eee8 0%, #eef3ea 100%); }
.cp-card--arabic { background: linear-gradient(180deg, #fae6e6 0%, #f8ece6 100%); }

.cp-card__art {
  position: absolute;
  inset-inline-end: 0;
  bottom: 0;
  height: 100%;
  width: auto;
  max-width: 54%;
  object-fit: contain;
  object-position: bottom center;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%);
  mask-image: linear-gradient(90deg, transparent, #000 16%);
}
html[dir="rtl"] .cp-card__art {
  -webkit-mask-image: linear-gradient(270deg, transparent, #000 16%);
  mask-image: linear-gradient(270deg, transparent, #000 16%);
}
/* Sharper 2x file, same 300×390 slot the card already uses. */
.cp-card--quran .cp-card__art {
  width: 300px;
  max-width: 100%;
  height: auto;
}

.cp-card__body {
  position: relative;
  z-index: 1;
  max-width: 420px;
  min-height: 444px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cp-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}
html[dir="rtl"] .cp-pill {
  letter-spacing: 0;
  text-transform: none;
  font-size: 14px;
  font-weight: 700;
}
.cp-pill--quran { background: #bfdcd0; color: #005760; }
.cp-pill--arabic { background: #f4c9c6; color: #8a3d3a; }

.cp-card h2 {
  margin: 16px 0 0;
  font-size: 36px;
  line-height: 1.15;
  font-weight: 700;
  color: #0d263e;
}
.cp-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.45;
}

.cp-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 22px;
}
.cp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--navy);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(13, 38, 62, 0.06);
}
.cp-chip img { width: 16px; height: 16px; }

.cp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  background: #fff;
  color: var(--navy);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(13, 38, 62, 0.08);
}
.cp-btn img { width: 15px; height: 12px; }
html[dir="rtl"] .cp-arrow { transform: scaleX(-1); }
.cp-btn--teal {
  margin-top: 0;
  background: #006669;
  color: #fff;
  box-shadow: none;
  padding: 16px 28px;
  min-height: 60px;
  font-size: 18px;
}
.cp-btn:hover { filter: brightness(0.98); color: inherit; }
.cp a.cp-btn { color: var(--navy) !important; }
.cp a.cp-btn--teal,
.cp a.cp-btn--teal:hover { color: #fff !important; }

.cp-trial {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}
.cp-reassure {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14.5px;
}
.cp-reassure li { display: inline-flex; align-items: center; gap: 8px; }
.cp-reassure li:not(:last-child)::after {
  content: "";
  width: 1px;
  height: 14px;
  margin-inline-start: 14px;
  background: #c5cdd4;
}
.cp-reassure img { width: 18px; height: 18px; }

.cp-path-h {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #0d263e;
  font-size: 52px;
  line-height: 1.08;
  font-weight: 700;
}
.cp-path-h em {
  font-style: italic;
  font-weight: 700;
  color: #006669;
}
html[dir="rtl"] .cp-path-h em { font-style: normal; }
.cp-path .cp-lead { font-size: 18px; line-height: 1.45; }

.cp-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 32px;
}
.cp-panel {
  position: relative;
  border-radius: 26px;
  padding: 26px 24px 32px;
  overflow: hidden;
  min-height: 0;
}
.cp-panel--quran { background: #eaf0e9; }
.cp-panel--arabic { background: #fdebe7; }

.cp-panel__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.cp-panel__head h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
}
.cp-panel__head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}

.cp-ico {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #e1ede4;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.cp-panel .cp-ico img { width: 32px; height: 32px; }
.cp-panel--arabic .cp-ico,
.cp-ico--rose { background: #f8d6d2; }
.cp-ico img { width: 24px; height: 24px; }

.cp-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 0;
  padding: 14px 0;
  max-width: calc(100% - 150px);
  border-top: 1px solid #d5e3dc;
}
.cp-panel--arabic .cp-step { border-top-color: #f0d8d4; }
.cp-panel .cp-step:first-of-type { margin-top: 18px; }
.cp-step strong {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.35;
}
.cp-step span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}
.cp-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #d7ebe1;
  color: #3d6b62;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 14px;
}
.cp-panel--arabic .cp-num { background: #f8d6d2; color: #8d534e; }

.cp-illu {
  position: absolute;
  inset-inline-end: 10px;
  bottom: 14px;
  width: 150px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at 50% 55%, #000 42%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 55%, #000 42%, transparent 72%);
}

.cp-support { margin-top: 40px; }
.cp-support h2 {
  margin: 0 0 16px;
  text-align: start;
  font-size: 36px;
  line-height: 44px;
  font-weight: 700;
  color: #08273f;
}
.cp-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.cp-benefit {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: start;
  padding: 0 16px;
  border-inline-start: 1px solid #d5e0da;
}
.cp-benefit:first-child { border-inline-start: 0; padding-inline-start: 0; }
.cp-benefit h3 {
  margin: 0;
  max-width: 10em;
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  color: #08273f;
  text-transform: none;
}
.cp-benefit p {
  margin: 4px 0 0;
  color: #415c73;
  font-size: 16px;
  line-height: 21px;
}
.cp-benefit .cp-ico { width: 64px; height: 64px; }
.cp-benefit .cp-ico img { width: 32px; height: 32px; }

.cp-banner {
  position: relative;
  margin-top: 28px;
  background: #e5f1ea;
  border-radius: 28px;
  padding: 22px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
}
.cp-banner__copy { position: relative; z-index: 1; max-width: 640px; }
.cp-banner h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
}
.cp-banner p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.45;
}
.cp-banner .cp-btn { position: relative; z-index: 1; flex: 0 0 auto; }
.cp-banner__leaf { display: none; }
.cp-banner__leaf--l { left: 8px; bottom: 4px; }
.cp-banner__leaf--r { right: 6px; top: 6px; width: 100px; }

@media (max-width: 1100px) {
  .cp-wrap { width: min(728px, calc(100% - 40px)); }
  .cp-h1 { font-size: 40px; line-height: 48px; }
  .cp-h1 em { font-size: 36px; line-height: 44px; }
  html[dir="rtl"] .cp-h1 { line-height: 56px; }
  html[dir="rtl"] .cp-h1 em { font-size: 36px; line-height: 52px; }
  .cp-lead { font-size: 18px; line-height: 26px; }
  .cp-cards,
  .cp-panels { grid-template-columns: 1fr; }
  .cp-card { min-height: 480px; }
  .cp-card__body { max-width: 58%; min-height: 410px; }
  .cp-card h2 { font-size: 32px; }
  .cp-path-h { font-size: 40px; }
  .cp-benefits { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
  .cp-benefit,
  .cp-benefit:first-child { border: 0; padding: 0; }
  .cp-benefit .cp-ico { width: 56px; height: 56px; }
  .cp-deco { width: 128px; }
  .cp-banner { flex-direction: column; align-items: flex-start; }
  .cp-step { max-width: calc(100% - 140px); }
  .cp-support h2 { font-size: 32px; line-height: 40px; }
}

@media (max-width: 700px) {
  .cp-hero { padding-top: 28px; }
  .cp-path { padding-bottom: 36px; }
  .cp-wrap { width: calc(100% - 28px); }
  .cp-h1 { font-size: 28px; line-height: 36px; }
  .cp-h1 em { font-size: 26px; line-height: 34px; }
  html[dir="rtl"] .cp-h1,
  html[dir="rtl"] .cp-h1 em { line-height: 42px; }
  .cp-lead { font-size: 16px; line-height: 24px; }
  .cp-eyebrow { font-size: 12px; letter-spacing: 2px; line-height: 16px; }
  html[dir="rtl"] .cp-eyebrow { letter-spacing: 0; font-size: 14px; }
  .cp-deco { display: block; width: 64px; }
  .cp-cards { gap: 16px; }
  .cp-card {
    min-height: 0;
    padding: 0 0 18px;
    display: flex;
    flex-direction: column;
  }
  .cp-card__art {
    position: relative;
    inset: auto;
    order: -1;
    width: 100%;
    max-width: none;
    height: 210px;
    object-fit: cover;
    object-position: center 40%;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .cp-card--quran .cp-card__art {
    width: 100%;
    max-width: none;
    height: auto;
  }
  .cp-card--arabic .cp-card__art {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 1.72 / 1;
    margin: 0;
    object-fit: cover;
    object-position: center 72%;
  }
  .cp-card--arabic .cp-card__body {
    padding-top: 12px;
  }
  .cp-card__body {
    max-width: none;
    min-height: 0;
    padding: 16px 16px 0;
  }
  .cp-card h2 { font-size: 28px; line-height: 1.2; }
  .cp-chips { flex-wrap: wrap; max-width: 250px; }
  html[dir="rtl"] .cp-chips { flex-direction: column; align-items: flex-start; max-width: none; }
  .cp-reassure { flex-direction: column; align-items: center; gap: 12px; }
  .cp-reassure li:not(:last-child)::after { display: none; }
  .cp-card .cp-btn {
    margin-top: 18px;
    background: var(--bn-teal, #0e7490);
    color: #fff;
    box-shadow: none;
  }
  .cp .cp-card a.cp-btn,
  .cp .cp-card a.cp-btn:hover {
    color: #fff !important;
  }
  .cp-card .cp-btn:hover {
    filter: none;
    opacity: 0.92;
  }
  .cp-card .cp-btn img {
    filter: brightness(0) invert(1);
  }
  .cp-trial { align-items: center; }
  .cp-trial .cp-btn,
  .cp-banner .cp-btn { width: auto; justify-content: center; }
  .cp-path-h { font-size: 30px; line-height: 1.15; }
  .cp-panel { min-height: 0; padding-bottom: 118px; }
  .cp-illu { width: 112px; bottom: 10px; }
  .cp-panel__head h3 { font-size: 22px; }
  .cp-step { max-width: none; }
  .cp-benefits { grid-template-columns: 1fr; gap: 18px; }
  .cp-support h2,
  .cp-banner h2 { font-size: 26px; line-height: 34px; }
  .cp-banner { padding: 22px 18px; align-items: flex-start; }
  .cp-banner .cp-btn { width: auto; }
  .cp-benefit h3 { font-size: 16px; line-height: 22px; }
  .cp-benefit p { font-size: 14px; line-height: 20px; }
  .cp-banner__leaf { width: 72px; }

  /* Arabic only. Bootstrap keeps a physical text-align:left, so wrapped lines
     sit on the left while badges and icons stay on the right. */
  html[dir="rtl"] .cp-card h2,
  html[dir="rtl"] .cp-card p {
    align-self: stretch;
    width: 100%;
    text-align: right;
  }
  html[dir="rtl"] .cp-panel__head > div,
  html[dir="rtl"] .cp-step > div:last-child,
  html[dir="rtl"] .cp-benefit > div,
  html[dir="rtl"] .cp-banner__copy {
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
    overflow-wrap: break-word;
  }
  html[dir="rtl"] .cp-step {
    max-width: calc(100% - 120px);
  }
  html[dir="rtl"] .cp-banner__copy {
    width: 100%;
    max-width: none;
  }
}
