/* Download page — Flask landing layout, WP child-theme colours/type */
.download-page {
  background: transparent;
  color: #fff;
  padding-top: 120px;
  padding-bottom: 4rem;
  font-family: "Mukta", sans-serif;
}

.rtl .download-page,
html[dir="rtl"] .download-page {
  font-family: "Almarai", sans-serif;
}

.dl-hero {
  padding: 3.5rem 0 2rem;
}

.dl-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.dl-hero-title,
.download-page h1.dl-hero-title {
  color: #A3D1FB !important;
  font-weight: 300 !important;
  font-size: 4.175vw !important;
  line-height: 1.15 !important;
  margin: 0 0 1.25rem;
  font-family: inherit !important;
}

.dl-hero-title strong,
.dl-hero-title * {
  color: #A3D1FB !important;
  font-weight: 700 !important;
}

.dl-hero-body {
  font-size: 1.25vw;
  line-height: 1.575vw;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
  margin-bottom: 1.75rem;
  font-weight: 300;
}

.dl-follow-label {
  display: block;
  font-size: 1.25vw;
  line-height: 1.575vw;
  margin-bottom: 0.6rem;
  color: #fff;
  opacity: 0.9;
  font-weight: 300;
}

.dl-social.icon-container,
.download-page .dl-social {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.download-page .dl-social a {
  display: inline-block;
  line-height: 0;
  border: 0;
  background: transparent;
  width: auto;
  height: auto;
  border-radius: 0;
  padding: 0;
}

.download-page .dl-social img,
.download-page .dl-social.icon-container img {
  width: 50px !important;
  height: 50px !important;
  object-fit: contain;
  filter: none;
}

.dl-hero-visual {
  display: flex;
  justify-content: center;
}

.dl-phone-img {
  max-width: min(320px, 100%);
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.45));
}

.dl-phone-placeholder {
  text-align: center;
  width: min(280px, 100%);
}

.dl-phone-frame {
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-radius: 36px;
  padding: 12px;
  background: linear-gradient(160deg, #3b1d7a, #1a0a3d 70%);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.dl-phone-notch {
  width: 40%;
  height: 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  margin: 4px auto 12px;
}

.dl-phone-screen {
  background: linear-gradient(180deg, #4a2a8f, #2a1458);
  border-radius: 24px;
  padding: 1.5rem 1rem 1.25rem;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.dl-phone-welcome {
  font-size: 1.825vw;
  line-height: 2.35vw;
  font-weight: 600;
  margin: 0.5rem 0 0.35rem;
  color: #fff;
}

.dl-phone-tag {
  font-size: 1.25vw;
  line-height: 1.575vw;
  color: #fff;
  opacity: 0.95;
  margin: 0 0 0.25rem;
  font-weight: 300;
}

.dl-phone-sub {
  font-size: 1.25vw;
  line-height: 1.575vw;
  color: #fff;
  opacity: 0.7;
  margin-bottom: 1rem;
  font-weight: 300;
}

.dl-phone-art {
  font-size: 4rem;
  margin: 1.5rem 0;
  opacity: 0.85;
}

.dl-phone-brand {
  margin-top: auto;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  font-size: 1.25vw;
}

.dl-phone-next {
  margin-top: 1rem;
  background: #f0a020;
  color: #1a0a3d;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.55rem 1.75rem;
  font-size: 1.25vw;
}

.dl-intro {
  text-align: left;
  padding: 2.5rem 0 1.5rem;
}

.dl-intro-title,
.download-page h2.dl-intro-title {
  color: #fff !important;
  font-weight: 200 !important;
  font-size: 3.125vw !important;
  line-height: 1.25 !important;
  margin-bottom: 0.85rem;
  font-family: inherit !important;
}

.dl-intro-title * {
  color: #fff !important;
  font-weight: 200 !important;
}

html[dir="rtl"] .dl-intro-title,
.rtl .dl-intro-title,
.page-download.rtl .dl-intro-title {
  text-align: right;
}

.dl-intro-body {
  max-width: 40rem;
  margin: 0;
  font-size: 1.25vw;
  line-height: 1.575vw;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
}

.dl-intro-body strong {
  color: #fff;
  font-weight: 600;
}

html[dir="rtl"] .dl-intro-body,
.rtl .dl-intro-body,
.page-download.rtl .dl-intro-body {
  text-align: right;
  margin-left: auto;
  margin-right: 0;
}

.dl-roles {
  padding: 1.5rem 0 2rem;
}

.dl-roles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.dl-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
  padding: 1.875rem; /* 30px all sides */
  backdrop-filter: blur(6px);
}

.dl-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: transparent;
  color: #fff;
  border: 1.5px solid #B396E1;
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  min-width: 150px;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 0.85rem;
  font-weight: 400;
}

.dl-card-badge img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.dl-card-title,
.download-page h3.dl-card-title {
  color: #fff !important;
  font-size: 2.65vw !important;
  line-height: 1.2 !important;
  font-weight: 500 !important;
  margin: 0 0 1rem;
  font-family: inherit !important;
}

.dl-card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.35rem;
}

.dl-card-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.65rem;
  font-size: 1.25vw;
  line-height: 1.575vw;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 300;
}

html[dir="rtl"] .dl-card-list li,
.rtl .dl-card-list li,
.page-download.rtl .dl-card-list li {
  padding-left: 0;
  padding-right: 2rem;
}

.dl-card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 18px;
  height: 18px;
  background: url("../images/steps.png") no-repeat center / contain;
}

html[dir="rtl"] .dl-card-list li::before,
.rtl .dl-card-list li::before,
.page-download.rtl .dl-card-list li::before {
  left: auto;
  right: 0;
}

.dl-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 16px;
}

.dl-qr {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 24px;
  padding: 21px;
  width: 283px;
  height: 173px;
  flex: 0 0 283px;
  box-sizing: border-box;
}

.dl-qr img,
.dl-qr-code {
  width: 131px;
  height: 131px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  padding: 0;
  flex-shrink: 0;
}

.dl-qr-placeholder {
  width: 131px;
  height: 131px;
  border-radius: 8px;
  border: 2px dashed rgba(26, 10, 61, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(26, 10, 61, 0.45);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  box-sizing: border-box;
}

.dl-qr-label {
  align-self: flex-end;
  color: #1a0a3d;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 500;
  max-width: 4.6em;
  opacity: 1;
  text-align: left;
}

.rtl .dl-qr-label,
.page-download.rtl .dl-qr-label {
  text-align: right;
  max-width: 6.5em;
}

.dl-store-btns {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 19px;
  flex: 0 0 218px;
  width: 218px;
  height: 173px;
  min-width: 0;
}

.dl-store-btn {
  display: block;
  line-height: 0;
}

.dl-store-btn img {
  display: block;
  width: 218px;
  height: 77px;
  object-fit: contain;
}

@media (max-width: 991px) {
  .dl-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .dl-hero-body {
    margin-left: auto;
    margin-right: auto;
  }

  .dl-social {
    justify-content: center;
  }

  .dl-roles-grid {
    grid-template-columns: 1fr;
  }

  .dl-card-actions {
    justify-content: center;
  }

  .dl-hero-title,
  .download-page h1.dl-hero-title {
    font-size: clamp(2rem, 8vw, 3rem) !important;
    line-height: 1.15 !important;
  }

  .dl-intro-title,
  .download-page h2.dl-intro-title {
    font-size: clamp(1.5rem, 6vw, 2.25rem) !important;
    line-height: 1.25 !important;
  }

  .dl-card-title,
  .download-page h3.dl-card-title {
    font-size: clamp(1.25rem, 5vw, 1.75rem) !important;
    line-height: 1.3 !important;
  }

  .dl-hero-body,
  .dl-intro-body,
  .dl-card-list li,
  .dl-follow-label,
  .dl-phone-tag,
  .dl-phone-sub,
  .dl-phone-brand,
  .dl-phone-next,
  .dl-phone-welcome {
    font-size: clamp(1rem, 3.5vw, 1.15rem) !important;
    line-height: 1.5 !important;
  }
}

@media (max-width: 575px) {
  .download-page {
    padding-top: 100px;
  }

  .dl-hero {
    padding-top: 2rem;
  }

  .dl-phone-screen {
    min-height: 360px;
  }

  .dl-card-actions {
    flex-direction: column;
    align-items: center;
  }

  .dl-qr {
    width: 283px;
    max-width: 100%;
    height: 173px;
    flex: 0 0 auto;
  }

  .dl-store-btns {
    width: 218px;
    height: 173px;
    flex: 0 0 auto;
    margin-inline: auto;
  }
}
