/* Exmis — home-page "get the mobile app" banner. */
.xdl { max-width: 1240px; margin: 34px auto 8px; padding: 0 20px; font-family: "Tajawal", "Source Sans 3", system-ui, sans-serif; }
.xdl *, .xdl *::before, .xdl *::after { box-sizing: border-box; }
.xdl-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 28px;
  padding: 46px 52px;
  border-radius: 34px;
  color: #fff;
  isolation: isolate;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(24, 182, 214, 0.42) 0%, transparent 45%),
    radial-gradient(90% 120% at 100% 100%, rgba(201, 162, 39, 0.20) 0%, transparent 50%),
    linear-gradient(135deg, #050f26 0%, #08224f 38%, #0c3274 68%, #1565d8 100%);
  box-shadow: 0 40px 90px rgba(8, 34, 79, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .8, .2, 1);
}
/* Visible by default. Only the first, script-driven reveal hides it until it scrolls into view —
   so a live refresh of the page (which re-inserts this HTML) can never leave it invisible. */
.xdl.xdl-reveal:not(.is-visible) .xdl-card { opacity: 0; transform: translateY(26px); }
.xdl-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.04) 40%, rgba(243, 210, 122, 0.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.xdl-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: 0.55; pointer-events: none; }
.xdl-glow-a { width: 340px; height: 340px; background: #2b7fff; inset-block-start: -120px; inset-inline-end: 18%; animation: xdl-drift 12s ease-in-out infinite alternate; }
.xdl-glow-b { width: 260px; height: 260px; background: #18b6d6; inset-block-end: -110px; inset-inline-start: 8%; animation: xdl-drift 14s ease-in-out infinite alternate-reverse; }
.xdl-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  background-image: linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
}
@keyframes xdl-drift { to { transform: translate(40px, 30px) scale(1.12); } }

/* —— copy —— */
.xdl-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: 0.3px; color: #f3d27a; background: rgba(243, 210, 122, 0.1); border: 1px solid rgba(243, 210, 122, 0.3); }
.xdl-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ee6a8; box-shadow: 0 0 0 4px rgba(62, 230, 168, 0.2); animation: xdl-ping 2s infinite; }
@keyframes xdl-ping { 50% { box-shadow: 0 0 0 7px rgba(62, 230, 168, 0); } }
.xdl-title { margin: 0 0 12px; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.15; font-weight: 800; letter-spacing: -0.3px; }
.xdl-title em {
  display: block;
  font-style: normal;
  background: linear-gradient(90deg, #8fd3ff, #ffffff 45%, #f3d27a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.xdl-lead { margin: 0 0 18px; max-width: 560px; font-size: 16px; line-height: 1.85; color: rgba(255, 255, 255, 0.82); }
.xdl-features { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.xdl-features li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; }
.xdl-check { flex: none; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; color: #08224f; background: linear-gradient(135deg, #3ee6a8, #18b6d6); }
.xdl-check svg { width: 15px; height: 15px; }

/* —— store buttons —— */
.xdl-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px; }
.xdl-android { display: flex; flex-direction: column; gap: 7px; }
.xdl-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 212px;
  height: 64px;
  padding: 0 22px;
  border-radius: 18px;
  text-decoration: none !important;
  color: #fff !important;
  transition: transform 0.22s cubic-bezier(.2, .9, .3, 1.3), box-shadow 0.22s;
}
.xdl-store svg { width: 30px; height: 30px; flex: none; }
.xdl-store span { display: flex; flex-direction: column; line-height: 1.1; text-align: start; }
.xdl-store small { font-size: 12px; font-weight: 600; opacity: 0.85; }
.xdl-store b { font-size: 21px; font-weight: 800; letter-spacing: 0.2px; }
.xdl-store:hover { transform: translateY(-3px); }
.xdl-store:focus-visible { outline: 3px solid #f3d27a; outline-offset: 3px; }
.xdl-store--ios { background: #000; border: 1px solid rgba(255, 255, 255, 0.28); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35); }
.xdl-store--ios:hover { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
.xdl-store--android { background: linear-gradient(135deg, #0d8a68, #18b58a 55%, #3ddc84); box-shadow: 0 14px 32px rgba(13, 138, 104, 0.4); }
.xdl-store--android:hover { box-shadow: 0 18px 40px rgba(13, 138, 104, 0.55); }
.xdl-store.is-primary { order: -1; animation: xdl-attn 2.6s ease-in-out 1s 2; }
@keyframes xdl-attn { 50% { transform: translateY(-3px) scale(1.03); } }
.xdl-meta { font-size: 12px; color: rgba(255, 255, 255, 0.72); padding-inline-start: 4px; }
.xdl-how { border: 0; padding: 0; background: none; color: #8fd3ff; font: inherit; font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.xdl-note { margin: 18px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, 0.6); }

/* —— phone mockup —— */
.xdl-visual { position: relative; display: flex; align-items: center; justify-content: center; gap: 26px; min-height: 420px; }
.xdl-phone {
  position: relative;
  width: 214px;
  height: 430px;
  padding: 10px;
  border-radius: 42px;
  background: linear-gradient(145deg, #1d2a44, #05091a);
  box-shadow: 0 40px 70px rgba(0, 0, 0, 0.5), inset 0 0 0 2px rgba(255, 255, 255, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.6);
  transform: rotate(-6deg);
  animation: xdl-float 6s ease-in-out infinite;
}
[dir="rtl"] .xdl-phone { transform: rotate(6deg); animation-name: xdl-float-rtl; }
@keyframes xdl-float { 50% { transform: rotate(-6deg) translateY(-12px); } }
@keyframes xdl-float-rtl { 50% { transform: rotate(6deg) translateY(-12px); } }
.xdl-notch { position: absolute; z-index: 2; inset-block-start: 18px; inset-inline-start: 50%; width: 70px; height: 20px; margin-inline-start: -35px; border-radius: 12px; background: #05091a; }
.xdl-screen { position: relative; height: 100%; overflow: hidden; padding: 40px 12px 12px; border-radius: 33px; color: #10203d; background: linear-gradient(180deg, #eaf2ff 0%, #f8fbff 40%, #ffffff 100%); }
.xdl-app-bar { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; }
.xdl-app-bar img { width: 26px; height: 26px; border-radius: 8px; }
.xdl-app-bar b { flex: 1; font-size: 14px; color: #08224f; }
.xdl-app-bar i { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #1565d8, #18b6d6); }
.xdl-app-title { margin: 0 0 8px; font-size: 12px; font-weight: 800; color: #08224f; }
.xdl-app-card { display: flex; align-items: center; gap: 8px; padding: 8px; margin-bottom: 8px; border-radius: 14px; background: #fff; box-shadow: 0 6px 16px rgba(8, 34, 79, 0.08); animation: xdl-slide 0.8s ease both; }
.xdl-app-card--b { animation-delay: 0.25s; }
.xdl-app-card span { flex: none; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #ffe3e6, #ffd0b0); }
.xdl-app-card--b span { background: linear-gradient(135deg, #d9f7ec, #b4ecdb); }
.xdl-app-card div { flex: 1; min-width: 0; }
.xdl-app-card b { display: block; font-size: 10px; line-height: 1.35; }
.xdl-app-card i { display: block; height: 6px; width: 60%; margin-top: 5px; border-radius: 4px; background: #e2ebf8; }
.xdl-app-stat { padding: 10px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #08224f, #1565d8); }
.xdl-app-stat small { display: block; font-size: 9.5px; opacity: 0.8; }
.xdl-app-stat b { font-size: 18px; }
.xdl-bars { display: flex; align-items: flex-end; gap: 4px; height: 38px; margin-top: 6px; }
.xdl-bars i { flex: 1; border-radius: 3px 3px 0 0; background: rgba(255, 255, 255, 0.85); animation: xdl-grow 1.2s ease both; }
.xdl-bars i:nth-child(1) { height: 35%; } .xdl-bars i:nth-child(2) { height: 55%; animation-delay: .1s; } .xdl-bars i:nth-child(3) { height: 42%; animation-delay: .2s; }
.xdl-bars i:nth-child(4) { height: 70%; animation-delay: .3s; } .xdl-bars i:nth-child(5) { height: 62%; animation-delay: .4s; } .xdl-bars i:nth-child(6) { height: 92%; animation-delay: .5s; background: #3ee6a8; }
.xdl-app-fab { position: absolute; inset-block-end: 14px; inset-inline-end: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 17px; background: linear-gradient(135deg, #08224f, #1565d8, #18b6d6); box-shadow: 0 8px 18px rgba(21, 101, 216, 0.45); }
@keyframes xdl-slide { from { opacity: 0; transform: translateY(10px); } }
@keyframes xdl-grow { from { transform: scaleY(0); transform-origin: bottom; } }

/* —— QR codes (desktop only) —— */
.xdl-qrs { text-align: center; }
.xdl-qrs > p { margin: 0 0 10px; font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, 0.75); }
.xdl-qr-row { display: flex; flex-direction: column; gap: 12px; }
.xdl-qr { margin: 0; padding: 9px 9px 7px; border-radius: 18px; background: #fff; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25); }
.xdl-qr > svg { display: block; width: 104px; height: 104px; }
.xdl-qr figcaption { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 4px; font-size: 11.5px; font-weight: 800; color: #08224f; }
.xdl-qr figcaption svg { width: 14px; height: 14px; }

/* —— install help —— */
.xdl-dialog { max-width: 440px; width: calc(100vw - 40px); padding: 26px; border: 0; border-radius: 26px; color: #10203d; box-shadow: 0 40px 80px rgba(8, 34, 79, 0.35); font-family: inherit; }
.xdl-dialog::backdrop { background: rgba(5, 15, 38, 0.55); backdrop-filter: blur(4px); }
.xdl-dialog h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 19px; color: #08224f; }
.xdl-dialog h3 svg { width: 26px; height: 26px; color: #18b58a; }
.xdl-dialog ol { margin: 0 0 14px; padding-inline-start: 22px; line-height: 1.85; font-size: 14.5px; }
.xdl-safe { display: flex; align-items: center; gap: 6px; margin: 0 0 16px; font-size: 13px; font-weight: 700; color: #0d8a68; }
.xdl-safe svg { width: 18px; height: 18px; }
.xdl-close { width: 100%; height: 46px; border: 0; border-radius: 14px; color: #fff; font: 800 15px/1 inherit; font-family: inherit; cursor: pointer; background: linear-gradient(135deg, #08224f, #1565d8); }
html[data-theme="dark"] .xdl-dialog { color: #e8eefb; background: #13213d; }
html[data-theme="dark"] .xdl-dialog h3 { color: #fff; }

/* —— responsive —— */
@media (max-width: 1080px) {
  .xdl-qrs { display: none; }
}
@media (max-width: 860px) {
  .xdl-card { grid-template-columns: 1fr; padding: 34px 26px 0; gap: 8px; text-align: start; }
  .xdl-visual { min-height: 0; height: 250px; overflow: hidden; align-items: flex-start; padding-top: 12px; }
  .xdl-phone { width: 190px; height: 380px; }
}
@media (max-width: 520px) {
  .xdl { padding: 0 12px; margin-top: 22px; }
  .xdl-card { padding: 28px 18px 0; border-radius: 28px; }
  .xdl-actions { flex-direction: column; align-items: stretch; }
  .xdl-store { width: 100%; min-width: 0; justify-content: center; }
  .xdl-android { width: 100%; }
  .xdl-meta { text-align: center; padding: 0; }
  .xdl-lead { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .xdl *, .xdl-card { animation: none !important; transition: none !important; }
  .xdl-card { opacity: 1; transform: none; }
}
