/* The store's public landing page. Colours come from the store: --brand, --accent, --on-brand are set on #lp. */
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 400; font-display: swap; src: url("../../../admin_old/custom/madar/fonts/IBMPlexSansArabic-Regular.ttf"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 500; font-display: swap; src: url("../../../admin_old/custom/madar/fonts/IBMPlexSansArabic-Medium.ttf"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 600; font-display: swap; src: url("../../../admin_old/custom/madar/fonts/IBMPlexSansArabic-SemiBold.ttf"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 700; font-display: swap; src: url("../../../admin_old/custom/madar/fonts/IBMPlexSansArabic-Bold.ttf"); }
.lp, .lp * { box-sizing: border-box; }
html, body.lp-body, body.lp-text-body { margin: 0; }
.lp { --brand-deep: color-mix(in srgb, var(--brand) 42%, #071233); --tint: color-mix(in srgb, var(--brand) 8%, #fff); --gray: #5B667A; background: #fff; color: var(--brand-deep); overflow: clip; font: 15px/1.7 "IBM Plex Sans Arabic", system-ui, sans-serif; }
.lp a { color: inherit; text-decoration: none; }
.lp img { display: block; }
.lp :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lp .num { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.lp-c { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.lp .dl { display: inline-block; background: var(--brand); color: var(--on-brand); font-weight: 600; font-size: 16px; padding: 11px 34px; border-radius: 14px; box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 30%, transparent); transition: transform .2s; }
.lp .dl:hover { transform: translateY(-2px); }

/* everything comes in with a fade as it reaches the screen; the phones travel a little further */
.lp-js .lp-fade { opacity: 0; transform: translateY(26px); transition: opacity .75s ease var(--d, 0s), transform .75s cubic-bezier(.2, .7, .2, 1) var(--d, 0s); }
.lp-js .lp-fade.lp-phone { transform: translateY(70px) scale(.94); transition-duration: 1s, 1s; }
.lp-js .lp-fade.in { opacity: 1; transform: none; }

.hero { background: var(--tint); text-align: center; position: relative; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; max-width: 1040px; margin: 0 auto; }
.brand-l { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 19px; }
.brand-l img.full { height: 42px; width: auto; }
.chip { width: 38px; height: 38px; border-radius: 11px; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-size: 20px; overflow: hidden; }
.chip img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.lang { display: flex; align-items: center; gap: 5px; font-weight: 600; font-size: 14px; }
.lang svg { width: 18px; height: 18px; }
.hero h1 { margin: 18px auto 0; max-width: 15em; font-size: clamp(31px, 5vw, 56px); line-height: 1.32; font-weight: 700; text-wrap: balance; color: var(--brand); padding: 0 18px; }
.lp-lead { margin: 12px auto 22px; max-width: 34em; padding: 0 22px; font-size: clamp(15.5px, 1.6vw, 18px); line-height: 1.85; text-wrap: pretty; }

.mq { margin-top: 30px; overflow: hidden; direction: ltr; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-t { display: flex; width: max-content; animation: lp-mq 46s linear infinite; }
.mq:hover .mq-t { animation-play-state: paused; }
@keyframes lp-mq { from { transform: translateX(-25%); } to { transform: translateX(0); } }
.mq-i { direction: rtl; display: flex; align-items: center; gap: 10px; padding: 0 20px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.lp[dir=ltr] .mq-i { direction: ltr; }
.mq-i img { width: 62px; height: 62px; object-fit: contain; filter: drop-shadow(0 5px 7px rgba(11, 31, 77, .16)); }

.stage { position: relative; height: 470px; margin-top: 26px; overflow: hidden; }
.stage::after { content: ""; position: absolute; z-index: 5; left: -15%; right: -15%; bottom: -92px; height: 150px; background: #fff; border-radius: 50%; }
.ph-at { position: absolute; z-index: 3; left: 50%; top: 8px; margin-left: -131px; }
.rg { position: absolute; left: 50%; top: 280px; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--brand) 32%, #fff); animation: lp-spin var(--t) linear infinite; }
.rg.back { animation-direction: reverse; }
.rg i { position: absolute; left: 50%; top: -6px; margin-left: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.rg.back i { background: var(--brand); }
.rg b { position: absolute; left: 50%; bottom: -4px; margin-left: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); opacity: .55; }
@keyframes lp-spin { to { transform: rotate(360deg); } }

.mark-c { display: flex; justify-content: center; }
.mark-c img { height: 66px; width: auto; }
.mark-c > span { display: flex; align-items: center; gap: 8px; font-size: 25px; font-weight: 700; color: var(--brand); }
.sc { padding-top: 46px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.fc { display: flex; align-items: flex-start; gap: 14px; background: var(--tint); border-radius: 18px; padding: 18px; }
.fc > span { flex: none; width: 48px; height: 48px; background: #fff; border-radius: 14px; display: grid; place-items: center; color: var(--brand); }
.fc svg { width: 26px; height: 26px; }
.fc > span img { width: 32px; height: 32px; object-fit: contain; }
.lp-slot { width: 22px; height: 22px; object-fit: contain; }
.way > i .lp-slot { border-radius: 50%; }
.fc h4 { margin: 0; font-size: 18px; font-weight: 700; color: var(--brand); }
.fc p { margin: 3px 0 0; color: var(--gray); line-height: 1.7; font-size: 15px; }
.cta { text-align: center; margin-top: 26px; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: center; }
.split h3 { margin: 0; font-size: clamp(27px, 3.4vw, 40px); line-height: 1.4; font-weight: 700; color: var(--brand); text-wrap: balance; }
.split p { margin: 10px 0 0; font-size: 16.5px; line-height: 1.9; color: var(--gray); text-wrap: pretty; }
.split .dl { margin-top: 20px; }
.tilt { position: relative; height: 440px; overflow: hidden; display: flex; justify-content: center; padding-top: 22px; }
.tilt .ph { transform: rotate(-8deg); transform-origin: 50% 30%; }
.tilt::before { content: ""; position: absolute; width: 410px; height: 410px; border-radius: 50%; background: var(--tint); top: 14px; left: 50%; margin-left: -205px; }
.tilt > div { position: relative; }
.pair { display: flex; justify-content: center; gap: 16px; height: 470px; overflow: hidden; padding-top: 8px; }
.pair .ph { zoom: .86; }
.pair > div:first-child .ph { margin-top: 34px; }
.mdr-h { display: inline-grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--brand); margin-bottom: 10px; }

.why { position: relative; overflow: hidden; background: var(--brand); color: var(--on-brand); border-radius: 26px; padding: 34px; display: grid; grid-template-columns: minmax(0, 1fr) 230px; align-items: center; gap: 18px; }
.why h3 { margin: 0; font-size: clamp(27px, 3.4vw, 40px); line-height: 1.4; font-weight: 700; }
.why p { margin: 8px 0 0; font-size: 16.5px; line-height: 1.9; opacity: .95; text-wrap: pretty; }
.why img { width: 100%; height: auto; animation: lp-float 4.2s ease-in-out infinite; filter: drop-shadow(0 16px 18px rgba(4, 12, 40, .3)); position: relative; }
.why::before { content: ""; position: absolute; width: 430px; height: 430px; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--on-brand) 26%, transparent); inset-inline-end: -110px; top: -70px; }
@keyframes lp-float { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-9px) rotate(1.5deg); } }

.sc > h3.t { margin: 0; text-align: center; font-size: clamp(27px, 3.4vw, 40px); font-weight: 700; color: var(--brand); line-height: 1.4; }
.faq { display: grid; gap: 10px; max-width: 800px; margin: 20px auto 0; }
.faq details { border-radius: 14px; overflow: hidden; border: 1.5px solid var(--brand); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--brand); color: var(--on-brand); padding: 11px 16px; font-weight: 600; font-size: 15.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; font-weight: 500; }
.faq details[open] summary::after { content: "×"; }
.faq p { margin: 0; padding: 11px 16px 13px; font-size: 15px; color: var(--gray); line-height: 1.85; }
.close { text-align: center; padding: 50px 20px 46px; }
.close p { margin: 8px 0 18px; font-size: 16.5px; }

.foot { background: var(--brand-deep); color: #fff; padding-top: 38px; }
.foot-g { display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px 44px; }
.foot h5 { margin: 0 0 12px; font-size: 16.5px; font-weight: 600; }
.foot .about p { margin: 10px 0 14px; color: #C8D4EC; line-height: 1.85; font-size: 14.5px; }
.apps { display: flex; gap: 10px; flex-wrap: wrap; }
.apps a { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 12px; padding: 7px 14px; font-weight: 500; font-size: 14.5px; transition: background .2s; }
.apps a:hover { background: rgba(255, 255, 255, .1); }
.apps i { font-size: 18px; }
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.way { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .08); border-radius: 13px; padding: 9px 11px; min-width: 0; transition: background .2s; }
a.way:hover { background: rgba(255, 255, 255, .15); }
.way > div { min-width: 0; }
.way > i { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--brand-deep); font-size: 18px; font-style: normal; }
.way svg { width: 18px; height: 18px; }
.way.wa > i { background: #25D366; color: #fff; }
.way b { display: block; font-size: 12.5px; font-weight: 500; color: #C8D4EC; line-height: 1.4; }
.way span { display: block; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.5; }
.way span.num { text-align: start; }
.soc { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.soc a { width: 41px; height: 41px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); font-size: 18px; transition: background .2s, transform .2s; }
.soc a:hover { background: var(--accent); transform: translateY(-2px); }
.soc svg { width: 18px; height: 18px; }
.pol { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; color: #C8D4EC; }
.copy { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 0 18px; font-size: 13px; color: #A9B8D6; }
.copy > span:last-child { display: inline-flex; align-items: center; gap: 5px; }
.copy svg { width: 10px; height: 14px; fill: #fff; }

/* the store's app, in a phone */
.ph { width: 262px; height: 540px; flex: none; border-radius: 40px; background: #0B1226; padding: 8px; box-shadow: 0 26px 50px rgba(4, 12, 40, .3); }
.ph-s { position: relative; height: 100%; border-radius: 33px; overflow: hidden; background: #fff; color: #0B1F4D; font-size: 10.5px; line-height: 1.5; text-align: start; }
.a-st { display: flex; justify-content: space-between; font-size: 9px; font-weight: 600; margin-bottom: 7px; }
.a-h { background: var(--slide, var(--brand)); color: #fff; padding: 8px 11px 10px; transition: background .6s; }
.a-brand { display: flex; align-items: center; justify-content: space-between; }
.a-brand b { font-size: 14px; display: flex; align-items: center; gap: 5px; }
.a-brand b i { width: 21px; height: 21px; border-radius: 6px; background: #fff; color: var(--brand); display: grid; place-items: center; font-style: normal; font-size: 12px; overflow: hidden; }
.a-brand b i img { width: 100%; height: 100%; object-fit: contain; }
.a-brand img.full { height: 27px; width: auto; }
.a-to { font-size: 9.5px; opacity: .92; }
.a-find { background: #fff; color: #8892A6; border-radius: 16px; height: 29px; display: flex; align-items: center; padding: 0 11px; margin-top: 8px; }
.a-sl { position: relative; height: 104px; margin-top: 6px; overflow: hidden; }
.a-s { position: absolute; inset: 0; display: flex; align-items: center; gap: 4px; opacity: 0; transform: translateX(-34px); transition: opacity .5s, transform .5s; }
.a-s.on { opacity: 1; transform: none; }
.a-s.was { transform: translateX(34px); }
.a-s > div { flex: 1; min-width: 0; }
.a-s b { display: block; font-size: 15px; line-height: 1.35; }
.a-s small { display: block; font-size: 9.5px; opacity: .92; }
.a-s em { display: inline-block; margin-top: 5px; font-style: normal; background: #fff; color: var(--slide, var(--brand)); font-weight: 600; border-radius: 10px; padding: 2px 10px; transition: color .6s; }
.a-s img { width: 108px; height: 100px; object-fit: contain; flex: none; animation: lp-float 3.6s ease-in-out infinite; filter: drop-shadow(0 7px 8px rgba(4, 12, 40, .3)); }
.a-d { display: flex; justify-content: center; gap: 4px; margin-top: 2px; }
.a-d i { width: 5px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .5); transition: width .3s, background .3s; }
.a-d i.on { width: 14px; background: #fff; }
.a-cats { display: flex; justify-content: space-between; padding: 9px 11px 2px; text-align: center; }
.a-cats div { width: 50px; }
.a-cats i { display: grid; place-items: center; width: 43px; height: 43px; margin: 0 auto 3px; border-radius: 50%; background: var(--tint); }
.a-cats img { width: 33px; height: 33px; object-fit: contain; }
.a-cats span { display: block; font-size: 8.5px; line-height: 1.3; }
.a-t { font-size: 12px; font-weight: 700; padding: 5px 11px 4px; }
.a-g { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 0 11px; }
.a-c { border: 1px solid #E6EBF4; border-radius: 12px; overflow: hidden; }
.a-c > i { position: relative; display: block; height: 72px; background: #F1F5FD; padding: 6px; }
.a-c img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.a-c u { position: absolute; bottom: 5px; inset-inline-start: 5px; width: 20px; height: 20px; border-radius: 6px; background: #fff; border: 1px solid var(--brand); color: var(--brand); text-decoration: none; display: grid; place-items: center; font-weight: 700; }
.a-c b { display: block; font-weight: 500; padding: 4px 7px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr { display: flex; align-items: baseline; gap: 3px; color: var(--accent); font-weight: 700; font-size: 12px; padding: 0 7px 5px; }
.pr small { font-size: .62em; }
.pr i { font-style: normal; font-size: .62em; }
.a-nav { position: absolute; bottom: 7px; left: 7px; right: 7px; height: 46px; background: #fff; border-radius: 23px; box-shadow: 0 6px 20px rgba(11, 31, 77, .18); display: flex; align-items: center; justify-content: space-around; font-size: 8.5px; color: #7A859B; }
.a-nav > div { text-align: center; line-height: 1.25; }
.a-nav svg.n { width: 15px; height: 15px; display: block; margin: 0 auto 1px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.a-nav .on { color: var(--brand); font-weight: 600; }
.a-nav .mid { margin-top: -18px; color: var(--brand); font-weight: 600; }
.a-nav .mid i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 1px; background: var(--brand); border: 3px solid #fff; box-shadow: 0 4px 12px rgba(11, 31, 77, .25); }
.c-h { padding: 8px 11px 9px; background: var(--tint); }
.c-h h6 { margin: 2px 0 6px; font-size: 14px; font-weight: 700; color: var(--brand); text-align: center; }
.c-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 10px 11px; text-align: center; }
.c-g div { background: var(--tint); border-radius: 12px; padding: 7px 3px 6px; font-weight: 500; font-size: 9.5px; line-height: 1.3; }
.c-g img { width: 100%; height: 50px; object-fit: contain; margin-bottom: 3px; }
.sp { height: 100%; background: var(--brand); color: #fff; display: grid; place-items: center; text-align: center; position: relative; overflow: hidden; }
.sp-in { position: relative; z-index: 1; }
.sp img { width: 142px; height: auto; }
.sp b { display: block; font-size: 22px; }
.sp::before, .sp::after { content: ""; position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .26); }
.sp::before { width: 230px; height: 230px; margin: -115px 0 0 -115px; }
.sp::after { width: 330px; height: 330px; margin: -165px 0 0 -165px; }
.m-h { display: flex; align-items: center; gap: 7px; padding: 8px 11px; background: var(--tint); font-weight: 700; font-size: 13px; color: var(--brand); }
.m-h i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); }
.m-b { padding: 9px 10px; display: grid; gap: 7px; }
.m-u { justify-self: start; background: var(--brand); color: var(--on-brand); border-radius: 12px 12px 12px 3px; padding: 5px 10px; max-width: 86%; }
.m-a { justify-self: end; background: #F1F5FD; border-radius: 12px 12px 3px 12px; padding: 6px 10px; max-width: 90%; }
.m-c { border: 1px solid #E6EBF4; border-radius: 13px; padding: 7px; text-align: center; }
.m-c img { width: 92px; height: 86px; object-fit: contain; margin: 0 auto; }
.m-c b { display: block; font-size: 11px; }
.m-c em { display: block; font-style: normal; background: var(--brand); color: var(--on-brand); border-radius: 9px; padding: 4px; margin-top: 5px; font-weight: 600; }
.mb { overflow: visible; display: block; }
.mb .mb-body { transform-box: fill-box; transform-origin: 50% 100%; animation: lp-breathe 3.2s ease-in-out infinite; }
.mb .mb-top { transform-box: fill-box; transform-origin: 20% 100%; animation: lp-rise 3.2s ease-in-out infinite; }
.mb .mb-eye { transform-box: fill-box; transform-origin: center; animation: lp-blink 4.6s infinite; }
.mb .mb-orbit { transform-origin: 60px 60px; animation: lp-spin 9s linear infinite; }
@keyframes lp-breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.035); } }
@keyframes lp-rise { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes lp-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }

@media (max-width: 760px) {
    .cards, .split, .foot-g, .why, .ways { grid-template-columns: minmax(0, 1fr); }
    .split.flip > div:first-child { order: 2; }
    .split { text-align: center; }
    .why { text-align: center; padding: 26px 20px; }
    .why img { width: 170px; margin: 0 auto; }
    .stage { height: 430px; }
    .rg { top: 262px; }
    .mq-i img { width: 54px; height: 54px; }
    .pair { gap: 8px; height: 370px; }
    .pair .ph { zoom: .66; }
    .tilt { height: 400px; }
    .tilt .ph { zoom: .88; }
    .sc { padding-top: 38px; }
    .fc { padding: 15px; }
}

/* Madar Market's own page: asking for a store */
.lp-request { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 720px; margin: 20px auto 0; }
.lp-request input, .lp-request select, .lp-request textarea { font: inherit; color: inherit; width: 100%; padding: 10px 14px; border: 1.5px solid color-mix(in srgb, var(--brand) 22%, #fff); border-radius: 12px; background: #fff; }
.lp-request textarea, .lp-request .lp-request-msg { grid-column: 1 / -1; }
.lp-request .dl { grid-column: 1 / -1; justify-self: center; border: 0; cursor: pointer; font-family: inherit; }
.lp-request { position: relative; }
.lp-request .lp-hp { position: absolute; top: 0; left: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.lp-request-msg { margin: 0; text-align: center; font-weight: 600; color: var(--brand); }

/* policy pages */
.lp-text { max-width: 820px; margin: 0 auto; padding: 26px 20px 50px; overflow: visible; }
.lp-back { color: var(--brand); font-weight: 600; }
.lp-text h1 { color: var(--brand); font-size: 30px; line-height: 1.4; margin: 14px 0; }
.lp-text-in { color: #33415C; line-height: 1.95; font-size: 16px; }
.lp-text-in img { max-width: 100%; height: auto; }
