/*
 * Shpper eSIM card, the homepage's link to /esim/ (elementor/widgets/class-shpper-esim-promo.php,
 * assets/js/shpper-esim-promo.js). Carries its own dark theme, so keep this file out of the
 * dark-mode generator's input. Logical properties mirror the card for Arabic; the map is
 * geography, so it never flips. Colour rules on h2/p/a carry `html body` to stay ahead of the
 * kit and the generated dark sheet. The white ground and the spacing around the card are
 * settings on the Elementor section that holds it, as on every other homepage section, so the
 * dark sheet darkens it with its neighbours wherever the card is placed.
 */
.shpper-esim-promo {
	--sp-navy: #1f3043;
	--sp-navy-deep: #13202f;
	--sp-yellow: #f3da14;
	--sp-blue: #2b8fe6;
	--sp-sky: #72d2ff;
	--sp-green: #2fb574;
	--sp-edge: rgba(255, 255, 255, .06);
	/* Offset plus negative spread stays larger than the blur, so no shade shows above the card. */
	--sp-shadow: 0 50px 70px -40px rgba(16, 38, 58, .5);
	--sp-shadow-hover: 0 64px 90px -44px rgba(16, 38, 58, .62);
	--sp-ease: cubic-bezier(.2, .8, .2, 1);
	--sp-head: "Neulis Sans", Poppins, system-ui, sans-serif;
	--sp-body: Poppins, system-ui, sans-serif;
	position: relative;
	font-family: var(--sp-body);
	font-size: 16px;
	line-height: 1.6;
}
html[data-theme="dark"] .shpper-esim-promo {
	--sp-edge: rgba(255, 255, 255, .1);
	--sp-shadow: 0 50px 70px -40px rgba(0, 0, 0, .8);
	--sp-shadow-hover: 0 64px 90px -44px rgba(0, 0, 0, .88);
}
.shpper-esim-promo *,
.shpper-esim-promo *::before,
.shpper-esim-promo *::after { box-sizing: border-box; }
.shpper-esim-promo :where(h2, p, ul, li) { margin: 0; padding: 0; }
.shpper-esim-promo :where(ul) { list-style: none; }
.shpper-esim-promo .sp-ico {
	width: 20px;
	height: 20px;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
[dir="rtl"] .shpper-esim-promo .sp-flip { transform: scaleX(-1); }

/* ---- card --------------------------------------------------------------- */
/* The content width of Highlights and As Seen On, so the card's edges line up with theirs. */
.shpper-esim-promo .sp-wrap { width: min(1540px, 90%); margin-inline: auto; }
.shpper-esim-promo .sp-card {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(24px, 4vw, 64px);
	min-height: 480px;
	padding: clamp(36px, 5vw, 72px);
	overflow: hidden;
	border-radius: 32px;
	background: linear-gradient(135deg, var(--sp-navy) 0%, var(--sp-navy-deep) 100%);
	box-shadow: var(--sp-shadow), inset 0 0 0 1px var(--sp-edge);
	color: #fff;
	transition: transform .45s var(--sp-ease), box-shadow .45s var(--sp-ease);
}
.shpper-esim-promo .sp-card:hover { transform: translateY(-4px); box-shadow: var(--sp-shadow-hover), inset 0 0 0 1px var(--sp-edge); }
.shpper-esim-promo .sp-card:has(.sp-cta:focus-visible) { outline: 3px solid var(--sp-yellow); outline-offset: 4px; }

.shpper-esim-promo .sp-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.shpper-esim-promo .sp-glow { position: absolute; border-radius: 50%; }
.shpper-esim-promo .sp-glow--a {
	width: 720px;
	height: 720px;
	inset-block-start: -300px;
	inset-inline-end: -200px;
	background: radial-gradient(circle, rgba(43, 143, 230, .5), transparent 64%);
	transition: translate .8s var(--sp-ease);
}
.shpper-esim-promo .sp-glow--b {
	width: 460px;
	height: 460px;
	inset-block-end: -300px;
	inset-inline-start: -140px;
	background: radial-gradient(circle, rgba(243, 218, 20, .2), transparent 64%);
}
.shpper-esim-promo .sp-card:hover .sp-glow--a { translate: -40px 30px; }
.shpper-esim-promo .sp-dots {
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1.4px);
	background-size: 26px 26px;
	-webkit-mask-image: radial-gradient(ellipse 55% 80% at 78% 45%, #000, transparent 74%);
	mask-image: radial-gradient(ellipse 55% 80% at 78% 45%, #000, transparent 74%);
}
[dir="rtl"] .shpper-esim-promo .sp-dots {
	-webkit-mask-image: radial-gradient(ellipse 55% 80% at 22% 45%, #000, transparent 74%);
	mask-image: radial-gradient(ellipse 55% 80% at 22% 45%, #000, transparent 74%);
}

/* ---- copy --------------------------------------------------------------- */
.shpper-esim-promo .sp-copy { position: relative; max-width: 580px; }
html body .shpper-esim-promo h2.sp-title {
	margin: 0;
	font-family: var(--sp-head);
	font-size: clamp(34px, 3.7vw, 58px);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -.01em;
	text-transform: none;
	color: #fff;
}
html body .shpper-esim-promo .sp-eyebrow {
	display: flex;
	width: fit-content;
	align-items: center;
	gap: 10px;
	margin-bottom: 22px;
	padding-block: 8px;
	padding-inline: 12px 16px;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 999px;
	background: rgba(255, 255, 255, .07);
	font-family: var(--sp-body);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0;
	color: #fff;
}
.shpper-esim-promo .sp-eyebrow__dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--sp-yellow); box-shadow: 0 0 0 5px rgba(243, 218, 20, .2); }
.shpper-esim-promo .sp-title__main { display: block; }
html body .shpper-esim-promo .sp-hl { color: var(--sp-yellow); white-space: nowrap; }
.shpper-esim-promo .sp-count { display: inline-block; font-variant-numeric: tabular-nums; text-align: end; }
html body .shpper-esim-promo p.sp-lead { max-width: 520px; margin-top: 18px; font-size: 17px; font-weight: 300; line-height: 1.7; color: rgba(255, 255, 255, .78); }
.shpper-esim-promo .sp-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
html body .shpper-esim-promo .sp-points li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 12px;
	background: rgba(255, 255, 255, .07);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	color: #fff;
}
.shpper-esim-promo .sp-points .sp-ico { width: 18px; height: 18px; color: var(--sp-sky); }
html body .shpper-esim-promo a.sp-cta {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: 34px;
	padding: 16px 28px;
	border-radius: 999px;
	background: var(--sp-yellow);
	color: var(--sp-navy);
	font-family: var(--sp-body);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: box-shadow .35s var(--sp-ease), background-color .35s var(--sp-ease);
}
/* The whole card is the link. */
html body .shpper-esim-promo a.sp-cta::after { content: ""; position: absolute; inset: 0; border-radius: 32px; }
html body .shpper-esim-promo .sp-card:hover a.sp-cta { background: #ffe53d; box-shadow: 0 16px 34px -14px rgba(243, 218, 20, .6); }
html body .shpper-esim-promo a.sp-cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ---- art ---------------------------------------------------------------- */
.shpper-esim-promo .sp-art { position: relative; align-self: stretch; min-height: 340px; pointer-events: none; }
.shpper-esim-promo .sp-map { position: absolute; top: 8%; left: -4%; right: -4%; aspect-ratio: 1000 / 434.1; direction: ltr; }
.shpper-esim-promo .sp-land {
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle, rgba(114, 210, 255, .55) 1.15px, transparent 1.6px);
	background-size: 8px 8px;
	-webkit-mask: var(--sp-land) center / 100% 100% no-repeat;
	mask: var(--sp-land) center / 100% 100% no-repeat;
}
.shpper-esim-promo .sp-arcs { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.shpper-esim-promo .sp-arc { fill: none; stroke: var(--sp-yellow); stroke-width: 1.6; stroke-linecap: round; opacity: .8; vector-effect: non-scaling-stroke; }
.shpper-esim-promo .sp-pin { position: absolute; width: 0; height: 0; }
.shpper-esim-promo .sp-pin i {
	position: absolute;
	left: -4px;
	top: -4px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--sp-sky);
	box-shadow: 0 0 0 4px rgba(114, 210, 255, .18);
	color: var(--sp-sky);
}
.shpper-esim-promo .sp-pin--hub i { left: -6px; top: -6px; width: 12px; height: 12px; background: var(--sp-yellow); box-shadow: 0 0 0 6px rgba(243, 218, 20, .22); color: var(--sp-yellow); }
.shpper-esim-promo .sp-pin i::after { content: ""; position: absolute; inset: 0; border: 1.5px solid currentColor; border-radius: 50%; opacity: 0; }

.shpper-esim-promo .sp-sim { position: absolute; bottom: 2%; inset-inline-end: 12%; width: clamp(130px, 12vw, 180px); aspect-ratio: 1; }
.shpper-esim-promo .sp-sim img { position: relative; display: block; width: 100%; height: auto; rotate: 12deg; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .45)); transition: rotate .6s var(--sp-ease); }
[dir="rtl"] .shpper-esim-promo .sp-sim img { rotate: -12deg; }
.shpper-esim-promo .sp-card:hover .sp-sim img { rotate: 3deg; }
[dir="rtl"] .shpper-esim-promo .sp-card:hover .sp-sim img { rotate: -3deg; }
.shpper-esim-promo .sp-ring { position: absolute; inset: -22%; border: 1.5px dashed rgba(255, 255, 255, .16); border-radius: 50%; }
.shpper-esim-promo .sp-ring--2 { inset: -50%; border-style: solid; border-color: rgba(114, 210, 255, .12); }

html body .shpper-esim-promo .sp-status {
	position: absolute;
	bottom: 14%;
	inset-inline-start: 2%;
	display: flex;
	align-items: center;
	gap: 12px;
	padding-block: 12px;
	padding-inline: 12px 20px;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 24px 40px -22px rgba(0, 0, 0, .6);
	color: var(--sp-navy);
	white-space: nowrap;
}
.shpper-esim-promo .sp-status__ico { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: #e8f3fd; color: var(--sp-blue); }
html body .shpper-esim-promo .sp-status strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--sp-navy); }
html body .shpper-esim-promo .sp-status small { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; font-weight: 500; line-height: 1.2; color: #23875a; }
.shpper-esim-promo .sp-status small i { width: 7px; height: 7px; border-radius: 50%; background: var(--sp-green); box-shadow: 0 0 0 3px rgba(47, 181, 116, .2); }

/* ---- smaller screens ---------------------------------------------------- */
@media (max-width: 1024px) {
	.shpper-esim-promo .sp-card { grid-template-columns: minmax(0, 1fr); min-height: 0; text-align: center; }
	.shpper-esim-promo .sp-copy { margin-inline: auto; }
	html body .shpper-esim-promo .sp-eyebrow,
	html body .shpper-esim-promo p.sp-lead { margin-inline: auto; }
	.shpper-esim-promo .sp-points { justify-content: center; }
	.shpper-esim-promo .sp-art { order: -1; width: min(100%, 560px); min-height: 0; aspect-ratio: 16 / 9; margin-inline: auto; }
}
@media (max-width: 640px) {
	.shpper-esim-promo .sp-wrap { width: calc(100% - 40px); }
	.shpper-esim-promo .sp-card { gap: 8px; padding: 20px 20px 28px; border-radius: 26px; }
	html body .shpper-esim-promo a.sp-cta::after { border-radius: 26px; }
	html body .shpper-esim-promo h2.sp-title { font-size: 34px; }
	html body .shpper-esim-promo .sp-eyebrow { margin-bottom: 16px; font-size: 13px; }
	html body .shpper-esim-promo p.sp-lead { font-size: 15px; }
	.shpper-esim-promo .sp-points { gap: 8px; margin-top: 20px; }
	html body .shpper-esim-promo .sp-points li { padding: 7px 12px; font-size: 13px; }
	html body .shpper-esim-promo a.sp-cta { display: flex; justify-content: center; margin-top: 26px; }
	.shpper-esim-promo .sp-art { aspect-ratio: 4 / 3; }
	.shpper-esim-promo .sp-sim { width: 110px; inset-inline-end: 8%; }
	html body .shpper-esim-promo .sp-status { bottom: 10%; scale: .9; transform-origin: bottom left; }
	[dir="rtl"] body .shpper-esim-promo .sp-status { transform-origin: bottom right; }
}
/* On narrow phones the three facts stack into three rows and repeat the lead, so the card drops them. */
@media (max-width: 480px) {
	.shpper-esim-promo .sp-points { display: none; }
}

/* ---- motion ------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
	.shpper-esim-promo .sp-sim { animation: sp-float 6s ease-in-out infinite; }
	html body .shpper-esim-promo .sp-status { animation: sp-float 7s ease-in-out -2.5s infinite; }
	.shpper-esim-promo .sp-pin i::after { animation: sp-ping 2.8s var(--sp-ease) infinite; }
	.shpper-esim-promo .sp-pin:nth-child(odd) i::after { animation-delay: -1.4s; }
	.shpper-esim-promo .sp-cta .sp-ico { transition: transform .35s var(--sp-ease); }
	.shpper-esim-promo .sp-card:hover .sp-cta .sp-ico { transform: translateX(4px); }
	[dir="rtl"] .shpper-esim-promo .sp-card:hover .sp-cta .sp-ico { transform: scaleX(-1) translateX(4px); }

	/* The script arms the card only while it is still below the fold. */
	.shpper-esim-promo.sp-armed .sp-card { opacity: 0; translate: 0 56px; scale: .97; }
	.shpper-esim-promo.sp-armed [data-sp] { opacity: 0; translate: 0 20px; }
	.shpper-esim-promo.sp-armed .sp-arc { stroke-dasharray: 1; stroke-dashoffset: 1; }
	.shpper-esim-promo.sp-in .sp-card {
		opacity: 1;
		translate: none;
		scale: none;
		transition: opacity .8s var(--sp-ease), translate 1s var(--sp-ease), scale 1s var(--sp-ease), transform .45s var(--sp-ease), box-shadow .45s var(--sp-ease);
	}
	.shpper-esim-promo.sp-in [data-sp] {
		opacity: 1;
		translate: none;
		transition: opacity .7s var(--sp-ease) calc(var(--d, 0) * 90ms + 250ms), translate .9s var(--sp-ease) calc(var(--d, 0) * 90ms + 250ms);
	}
	.shpper-esim-promo.sp-in .sp-arc { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--sp-ease) calc(var(--d, 0) * 120ms + 700ms); }
}
@keyframes sp-float { 50% { transform: translateY(-10px); } }
@keyframes sp-ping {
	0% { opacity: .8; transform: scale(1); }
	100% { opacity: 0; transform: scale(3.2); }
}
