/*
 * Waiting-list landing page.
 * Mobile first. Logical properties keep the right-to-left layout correct.
 */

body.ewm-page-waitlist {
	background: var(--ewm-white);
}

/*
 * The hero's soft background shapes run past the hero edges (up behind the header, down behind
 * the benefits). Only sideways overflow is cut, on the main element, so phones never zoom out.
 */
.ewm-wl {
	overflow-x: hidden;
}

@supports (overflow: clip) {
	.ewm-wl {
		overflow-x: clip;
	}
}

/* Header */

.ewm-wl-header {
	position: relative;
	z-index: 3;
	padding-block: clamp(0.9rem, 2.4vw, 1.5rem);
}

.ewm-wl-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
}

.ewm-wl-logo {
	display: block;
	width: clamp(9.5rem, 30vw, 13.5rem);
	border-radius: var(--ewm-radius-sm);
}

.ewm-wl-logo__frame {
	display: block;
	aspect-ratio: 775 / 153;
}

.ewm-wl-logo__img {
	display: block;
	width: 100%;
	height: 100%;
}

.ewm-wl-status {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.45rem 0.95rem;
	border-radius: var(--ewm-radius-pill);
	background: var(--ewm-white);
	box-shadow: var(--ewm-shadow-sm), 0 0 0 1px var(--ewm-line);
	color: var(--ewm-navy);
	font-size: var(--ewm-fs-xs);
	font-weight: 600;
	line-height: 1.4;
}

/* "Open" light: the one place green is used, like a traffic light. */
.ewm-pulse {
	--ewm-open: #22c55e;
	position: relative;
	flex: none;
	width: 0.6rem;
	height: 0.6rem;
	border-radius: 50%;
	background: var(--ewm-open);
	box-shadow: 0 0 0 3px rgb(34 197 94 / 0.18);
}

.ewm-pulse::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--ewm-open);
	animation: ewm-pulse 1.8s ease-out infinite;
}

@media (max-width: 39.99rem) {
	.ewm-wl-header__inner {
		flex-wrap: nowrap;
	}

	.ewm-wl-logo {
		width: clamp(7.75rem, 34vw, 9.5rem);
	}

	.ewm-wl-status {
		padding: 0.4rem 0.75rem;
		font-size: 0.75rem;
		white-space: nowrap;
	}
}

@media (max-width: 22.5rem) {
	.ewm-wl-header__inner {
		flex-wrap: wrap;
	}
}

/* Hero */

.ewm-wl-hero {
	position: relative;
	isolation: isolate;
	padding-block: clamp(0.75rem, 3vw, 2.5rem) clamp(2.5rem, 6vw, 4.5rem);
}

.ewm-wl-hero__decor {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

.ewm-wl-blob {
	position: absolute;
	aspect-ratio: 1;
	border-radius: 50%;
}

.ewm-wl-blob--one {
	top: -16rem;
	left: -14rem;
	width: min(50rem, 110vw);
	background: radial-gradient(closest-side, var(--ewm-sky-soft), rgb(213 236 250 / 0));
}

.ewm-wl-blob--two {
	right: -14rem;
	bottom: -18rem;
	width: min(42rem, 95vw);
	background: radial-gradient(closest-side, var(--ewm-sky-light), rgb(234 246 253 / 0));
}

.ewm-wl-dots {
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgb(23 43 85 / 0.1) 1.2px, transparent 1.3px);
	background-size: 22px 22px;
	-webkit-mask-image: radial-gradient(55% 60% at 22% 42%, #000 0%, transparent 72%);
	mask-image: radial-gradient(55% 60% at 22% 42%, #000 0%, transparent 72%);
}

.ewm-wl-hero__grid {
	display: grid;
	gap: clamp(2.5rem, 5vw, 4rem);
	align-items: center;
}

.ewm-wl-hero__content > * {
	animation: ewm-rise 0.7s var(--ewm-ease) both;
}

.ewm-wl-hero__content > :nth-child(2) { animation-delay: 0.06s; }
.ewm-wl-hero__content > :nth-child(3) { animation-delay: 0.12s; }
.ewm-wl-hero__content > :nth-child(4) { animation-delay: 0.18s; }

.ewm-wl-title {
	color: var(--ewm-navy);
	font-size: var(--ewm-fs-display);
	font-weight: 800;
	line-height: 1.3;
}

.ewm-wl-title__highlight {
	position: relative;
	z-index: 0;
	display: inline-block;
	white-space: nowrap;
}

.ewm-wl-title__highlight::after {
	content: "";
	position: absolute;
	z-index: -1;
	inset-inline: -0.12em;
	bottom: 0.08em;
	height: 0.36em;
	border-radius: 0.2em;
	background: linear-gradient(90deg, var(--ewm-sky), var(--ewm-sky-soft));
}

/* === Browser translation fixes: BEGIN ===========================================================
 * Active only while Chrome / Google Translate shows the page translated: it marks <html> with
 * .translated-ltr (English, French, ...) or .translated-rtl before it reads the text. The Arabic page
 * never matches these selectors, so it looks exactly the same with or without this block.
 * To undo: delete everything from BEGIN to END. Nothing else refers to these rules.
 */

/* The highlighted words are translated as part of the sentence ("... from scratch with Maryam")
   instead of as a separate piece ("With Mary"). */
html.translated-ltr .ewm-wl-title__highlight,
html.translated-rtl .ewm-wl-title__highlight {
	display: inline;
}

/* Translated into a left-to-right language: the headline's words run left to right, so the line that
   holds the highlight is not reversed ("with Maryamscratch"). Kept right-aligned, as on the Arabic page. */
html.translated-ltr .ewm-wl-title {
	direction: ltr;
	text-align: right;
}

/* === Browser translation fixes: END ============================================================= */

.ewm-wl-offer {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	margin-top: clamp(1rem, 2.4vw, 1.4rem);
	padding: 0.75rem 1rem;
	border-inline-start: 4px solid var(--ewm-red);
	border-radius: 0.9rem;
	background: linear-gradient(to left, var(--ewm-red-soft), rgb(255 232 234 / 0) 95%);
	color: var(--ewm-red);
	font-size: clamp(1.125rem, 0.9rem + 1vw, 1.5rem);
	font-weight: 700;
	line-height: 1.5;
	text-wrap: balance;
}

[dir="ltr"] .ewm-wl-offer {
	background: linear-gradient(to right, var(--ewm-red-soft), rgb(255 232 234 / 0) 95%);
}

.ewm-wl-offer__icon {
	width: 1.05em;
	height: 1.05em;
	margin-top: 0.25em;
}

.ewm-wl-lead {
	max-width: 34rem;
	margin-top: 1rem;
	color: var(--ewm-ink);
	font-size: var(--ewm-fs-lead);
	line-height: 1.85;
}

/* Sign-up card */

.ewm-wl-card {
	position: relative;
	max-width: 34rem;
	margin-top: 2.25rem;
	padding: clamp(1.25rem, 3.2vw, 2rem);
	padding-top: 2.1rem;
	border-radius: var(--ewm-radius-lg);
	background: var(--ewm-white);
	box-shadow: var(--ewm-shadow), 0 0 0 1px var(--ewm-line);
}

.ewm-wl-card::before {
	content: "";
	position: absolute;
	inset-inline: clamp(1.25rem, 3.2vw, 2rem);
	top: -1px;
	height: 4px;
	border-radius: 0 0 4px 4px;
	background: linear-gradient(90deg, var(--ewm-sky), var(--ewm-red));
}

/* The badge sits on the card's top edge, so it costs no height above the email field. */
.ewm-wl-card__badge {
	position: absolute;
	top: 0;
	inset-inline-start: clamp(1rem, 3vw, 1.75rem);
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.45rem 1.05rem;
	border: 1px solid var(--ewm-sky-soft);
	border-radius: var(--ewm-radius-pill);
	background: var(--ewm-sky-light);
	box-shadow: 0 8px 18px -10px rgb(23 43 85 / 0.35);
	transform: translateY(-50%);
	color: var(--ewm-navy);
	font-size: clamp(1rem, 0.96rem + 0.25vw, 1.125rem);
	font-weight: 700;
	line-height: 1.4;
}

.ewm-wl-card__badge-icon {
	width: 1.15em;
	height: 1.15em;
}

.ewm-wl-field {
	display: grid;
	gap: 0.5rem;
}

.ewm-wl-card > .ewm-wl-success--confirmed {
	margin-top: 0.25rem;
}

.ewm-wl-field__label {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	color: var(--ewm-navy);
	font-size: var(--ewm-fs-sm);
	font-weight: 600;
}

.ewm-wl-field__icon {
	width: 1.25rem;
	height: 1.25rem;
}

.ewm-wl-input {
	width: 100%;
	min-height: 3.5rem;
	padding: 0.85rem 1.25rem;
	border: 2px solid var(--ewm-sky-soft);
	border-radius: var(--ewm-radius-pill);
	background: var(--ewm-sky-light);
	color: var(--ewm-ink);
	font-size: 1.0625rem;
	font-weight: 500;
	text-align: left;
	transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.ewm-wl-input::placeholder {
	color: rgb(23 43 85 / 0.45);
	opacity: 1;
}

.ewm-wl-input:hover {
	border-color: var(--ewm-sky);
}

.ewm-wl-input:focus-visible {
	outline: none;
	border-color: var(--ewm-navy);
	background: var(--ewm-white);
	box-shadow: 0 0 0 4px rgb(169 216 245 / 0.7);
}

.ewm-wl-error {
	margin-top: 0.75rem;
	padding: 0.7rem 1rem;
	border-inline-start: 4px solid var(--ewm-red);
	border-radius: var(--ewm-radius-sm);
	background: var(--ewm-red-soft);
	color: var(--ewm-navy);
	font-size: var(--ewm-fs-sm);
	font-weight: 500;
}

/* Typo hint under the email field ("هل تقصد name@gmail.com؟"). */
.ewm-wl-suggest {
	margin-top: 0.5rem;
	color: var(--ewm-navy);
	font-size: var(--ewm-fs-sm);
	line-height: 1.6;
}

.ewm-wl-suggest[hidden] {
	display: none;
}

.ewm-wl-suggest__fix {
	padding: 0;
	border: 0;
	background: none;
	color: var(--ewm-red);
	font: inherit;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
	unicode-bidi: isolate;
	word-break: break-all;
}

.ewm-wl-suggest__fix:focus-visible {
	outline: 2px solid var(--ewm-navy);
	outline-offset: 2px;
	border-radius: 4px;
}

.ewm-wl-submit {
	margin-top: 0.9rem;
	min-height: 3.6rem;
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

.ewm-btn__icon {
	width: 1.3em;
	height: 1.3em;
	transition: transform 0.25s var(--ewm-ease);
}

@media (hover: hover) {
	.ewm-wl-submit:hover .ewm-btn__icon {
		transform: translateX(-4px);
	}
}

.ewm-btn__spinner {
	display: none;
	width: 1.25em;
	height: 1.25em;
	border: 2.5px solid rgb(255 255 255 / 0.45);
	border-top-color: var(--ewm-white);
	border-radius: 50%;
	animation: ewm-spin 0.8s linear infinite;
}

.ewm-wl-card.is-loading .ewm-btn__spinner {
	display: inline-block;
}

.ewm-wl-card.is-loading .ewm-btn__icon {
	display: none;
}

.ewm-wl-card.is-loading .ewm-wl-submit {
	pointer-events: none;
}

/*
 * Sign-up "ignition": when a valid address is sent, light grows across the button from right to
 * left like a lightsaber blade, then the success message appears (assets/js/waitlist.js).
 * Switch: Appearance → Customize → "تأثير أزرار الانضمام" → body class .ewm-ignite.
 */
.ewm-wl-submit {
	position: relative;
}

.ewm-wl-submit > :not(.ewm-saber-blade) {
	position: relative;
	z-index: 1;
}

.ewm-saber-blade {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	border-radius: inherit;
	pointer-events: none;
}

.ewm-saber-blade::before {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	width: 0;
	border-radius: inherit;
	background:
		linear-gradient(180deg, rgb(255 255 255 / 0) 22%, rgb(255 255 255 / 0.3) 50%, rgb(255 255 255 / 0) 78%),
		linear-gradient(90deg, #ff5f6b, #ff7d87);
	box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.85), inset 0 0 16px rgb(255 255 255 / 0.55);
}

.ewm-saber-blade::after {
	content: "";
	position: absolute;
	inset-block: 12%;
	inset-inline-start: 0;
	width: 6px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 0 10px 4px rgb(255 255 255 / 0.9), 0 0 26px 9px rgb(255 110 120 / 0.85);
	opacity: 0;
}

.ewm-wl-submit.is-igniting .ewm-saber-blade::before {
	animation: ewm-blade 1.1s cubic-bezier(0.45, 0.05, 0.3, 1) forwards;
}

.ewm-wl-submit.is-igniting .ewm-saber-blade::after {
	animation: ewm-blade-tip 1.1s cubic-bezier(0.45, 0.05, 0.3, 1) forwards;
}

.ewm-wl-card .ewm-wl-submit.is-igniting {
	animation: ewm-blade-aura 1.25s ease-out forwards;
}

.ewm-wl-submit.is-igniting .ewm-btn__label {
	text-shadow: 0 1px 2px rgb(140 18 30 / 0.6);
}

.ewm-wl-card.is-loading .ewm-wl-submit.is-igniting .ewm-btn__spinner {
	display: none;
}

.ewm-wl-card.is-loading .ewm-wl-submit.is-igniting .ewm-btn__icon {
	display: inline-block;
}

@keyframes ewm-blade {
	from {
		width: 0;
	}

	to {
		width: 100%;
	}
}

@keyframes ewm-blade-tip {
	0% {
		inset-inline-start: 0;
		opacity: 1;
	}

	90% {
		opacity: 1;
	}

	100% {
		inset-inline-start: calc(100% - 6px);
		opacity: 0;
	}
}

@keyframes ewm-blade-aura {
	0% {
		box-shadow: var(--ewm-shadow-red);
	}

	55% {
		box-shadow: var(--ewm-shadow-red), 0 0 14px 3px rgb(255 108 118 / 0.75), 0 0 34px 9px rgb(229 57 70 / 0.42);
	}

	100% {
		box-shadow: var(--ewm-shadow-red), 0 0 12px 3px rgb(255 108 118 / 0.85), 0 0 46px 13px rgb(229 57 70 / 0.5);
	}
}

/* Zoho's own success and popup elements stay hidden; the theme shows its own Arabic message. */
.ewm-zoho__native-success,
#zcOptinOverLay,
#zcOptinSuccessPopup {
	display: none !important;
}

.ewm-wl-card.is-done .ewm-zoho {
	display: none;
}

.ewm-wl-success {
	display: grid;
	justify-items: center;
	gap: 0.5rem;
	margin-top: 1.25rem;
	padding: 1.5rem 1.25rem;
	border-radius: var(--ewm-radius);
	background: linear-gradient(180deg, var(--ewm-sky-light), var(--ewm-white));
	text-align: center;
}

.ewm-wl-success[hidden] {
	display: none;
}

.ewm-wl-success:focus {
	outline: none;
}

.ewm-wl-success__icon {
	width: 3.25rem;
	height: 3.25rem;
}

.ewm-wl-success__title {
	color: var(--ewm-navy);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.5;
}

.ewm-wl-success__text {
	font-size: var(--ewm-fs-sm);
}

/* "أرسلنا الرسالة إلى: name@gmail.com", the mail-app button and "ليس هذا بريدك؟ صحّحه". */
.ewm-wl-success__sent {
	margin-top: 0.25rem;
	color: var(--ewm-navy);
	font-size: var(--ewm-fs-sm);
	line-height: 1.7;
}

/* On its own line, whole; it only breaks when the address alone is wider than the box. */
.ewm-wl-success__address {
	display: block;
	font-weight: 700;
	direction: ltr;
	unicode-bidi: isolate;
	overflow-wrap: anywhere;
}

.ewm-wl-mailapp {
	justify-self: stretch;
	margin-top: 0.25rem;
	text-decoration: none;
}

/* Blue, so it reads differently from the red sign-up button (owner's choice, mockup B, 24 Nov). */
.ewm-btn.ewm-wl-mailapp,
.ewm-btn.ewm-wl-mailapp:hover {
	background: var(--ewm-gloss), var(--ewm-blue);
	box-shadow: 0 12px 28px -12px rgb(47 111 214 / 0.6), inset 0 1px 0 rgb(255 255 255 / 0.3);
}

.ewm-wl-mailapp[hidden],
.ewm-wl-mailapp [hidden] {
	display: none !important;
}

.ewm-wl-success__fix {
	padding: 0.35rem 0.5rem;
	border: 0;
	background: none;
	color: var(--ewm-navy);
	font: inherit;
	font-size: var(--ewm-fs-sm);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.ewm-wl-success__fix:focus-visible {
	outline: 2px solid var(--ewm-navy);
	outline-offset: 2px;
	border-radius: 4px;
}

.ewm-wl-success__reminder {
	margin-top: 0.25rem;
	padding: 0.6rem 0.9rem;
	border-radius: var(--ewm-radius-sm);
	background: var(--ewm-white);
	box-shadow: inset 0 0 0 1px var(--ewm-sky-soft);
	color: var(--ewm-ink-soft);
	font-size: var(--ewm-fs-xs);
	line-height: 1.7;
}

.ewm-wl-reassure {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	margin-top: 1rem;
	color: var(--ewm-ink);
	font-size: var(--ewm-fs-sm);
	line-height: 1.75;
}

.ewm-wl-reassure__icon {
	width: 1.35rem;
	height: 1.35rem;
	margin-top: 0.15rem;
}

.ewm-wl-smallprint {
	display: grid;
	gap: 0.5rem;
	margin-top: 1rem;
	padding-top: 0.9rem;
	border-top: 1px dashed var(--ewm-sky-soft);
	color: var(--ewm-ink-soft);
	font-size: var(--ewm-fs-xs);
	line-height: 1.75;
}

.ewm-wl-privacy__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 2.75rem;
	color: var(--ewm-navy);
	font-weight: 600;
	text-decoration: underline dotted;
	text-underline-offset: 0.3em;
	cursor: pointer;
	list-style: none;
}

.ewm-wl-privacy__toggle::-webkit-details-marker {
	display: none;
}

.ewm-wl-privacy__icon {
	width: 1.15rem;
	height: 1.15rem;
}

.ewm-wl-privacy__panel {
	margin-top: 0.5rem;
	padding: 1rem 1.1rem;
	border-radius: var(--ewm-radius-sm);
	background: var(--ewm-sky-light);
	color: var(--ewm-ink);
}

.ewm-wl-privacy__panel strong {
	color: var(--ewm-navy);
}

.ewm-wl-privacy__panel > * + * {
	margin-top: 0.4em;
}

/* Hero visual */

.ewm-wl-hero__visual {
	width: 100%;
	max-width: 25rem;
	margin-inline: auto;
}

.ewm-wl-visual {
	position: relative;
	width: 100%;
}

.ewm-wl-visual__stage {
	position: relative;
	aspect-ratio: 1 / 1.08;
}

.ewm-wl-visual__disc {
	position: absolute;
	inset-inline: 4%;
	bottom: 0;
	aspect-ratio: 1;
	border-radius: 50%;
	background:
		radial-gradient(70% 70% at 28% 22%, rgb(255 255 255 / 0.85) 0%, rgb(255 255 255 / 0) 45%),
		linear-gradient(155deg, var(--ewm-sky) 0%, var(--ewm-sky-soft) 58%, var(--ewm-sky-light) 100%);
	box-shadow: inset 0 -26px 50px rgb(23 43 85 / 0.12), 0 40px 80px -40px rgb(23 43 85 / 0.5);
}

.ewm-wl-visual__disc::after {
	content: "";
	position: absolute;
	inset: -3.5%;
	border: 3px solid transparent;
	border-top-color: var(--ewm-red);
	border-left-color: var(--ewm-red);
	border-radius: 50%;
	transform: rotate(-12deg);
}

.ewm-wl-visual__orbit {
	position: absolute;
	top: 6.5%;
	left: -3%;
	width: 106%;
	height: auto;
	aspect-ratio: 1;
	overflow: visible;
}

.ewm-wl-visual__orbit circle {
	fill: none;
	stroke: rgb(23 43 85 / 0.18);
	stroke-width: 1;
	stroke-dasharray: 2 6;
	stroke-linecap: round;
}

.ewm-wl-visual__clip {
	position: absolute;
	inset-inline: 4%;
	top: 0;
	bottom: 0;
	overflow: hidden;
	border-radius: 0 0 999px 999px;
}

.ewm-wl-visual__photo {
	position: absolute;
	inset-inline: 1.5%;
	bottom: 0;
	aspect-ratio: 720 / 827;
}

.ewm-wl-visual__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: 50% 100%;
}

.ewm-float {
	--r: 0deg;
	position: absolute;
	display: grid;
	place-items: center;
	width: clamp(2.6rem, 7vw, 3.4rem);
	aspect-ratio: 1;
	border-radius: 1rem;
	background: rgb(255 255 255 / 0.94);
	box-shadow: var(--ewm-shadow-sm), 0 0 0 1px var(--ewm-line);
	animation: ewm-float 6s ease-in-out infinite;
}

.ewm-float .ewm-icon {
	width: 58%;
	height: 58%;
}

.ewm-float--book { --r: -8deg; top: 22%; left: 0; animation-delay: -1s; }
.ewm-float--speak { --r: 6deg; top: 4%; right: 8%; animation-delay: -3s; }
.ewm-float--plane { --r: 10deg; top: 50%; right: -1%; animation-delay: -2s; }
.ewm-float--cap { --r: -6deg; top: 52%; left: -2%; animation-delay: -4s; }

/* Phones: trust badges sit in a row under the photo so they never cover Meryem's sign. */
.ewm-wl-visual__caption {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.6rem;
	margin-top: 1.1rem;
}

/* Benefits band */

.ewm-wl-benefits {
	padding-block: 0 clamp(2.5rem, 6vw, 4.5rem);
}

.ewm-wl-benefits__panel {
	position: relative;
	overflow: hidden;
	padding: clamp(1.75rem, 4.5vw, 3.25rem);
	border-radius: var(--ewm-radius-lg);
	background:
		radial-gradient(60% 80% at 100% 0%, rgb(169 216 245 / 0.26), rgb(169 216 245 / 0) 60%),
		linear-gradient(160deg, var(--ewm-navy) 0%, var(--ewm-navy-dark) 100%);
	box-shadow: 0 30px 70px -30px rgb(16 35 68 / 0.7);
	color: var(--ewm-white);
	container-type: inline-size;
}

.ewm-wl-benefits__panel::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgb(255 255 255 / 0.08), rgb(255 255 255 / 0) 40%);
	pointer-events: none;
}

.ewm-wl-benefits__eyebrow {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin-bottom: 0.6rem;
	color: var(--ewm-sky);
	font-size: var(--ewm-fs-sm);
	font-weight: 600;
}

.ewm-wl-benefits__eyebrow .ewm-icon {
	width: 1.15em;
	height: 1.15em;
	color: var(--ewm-white);
	--ewm-icon-accent: rgb(255 255 255 / 0.25);
}

.ewm-wl-benefits__title {
	position: relative;
	max-width: 30ch;
	color: var(--ewm-white);
	font-size: var(--ewm-fs-h2);
	font-weight: 700;
}

/*
 * The four cards: one column, two by two, or four in a row, never three and one (owner, 2026-11-11).
 * The panel's width decides (container query), so the cards keep at least about 14.5rem each.
 */
.ewm-wl-benefits__list {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(0.75rem, 2vw, 1.25rem);
	margin-top: clamp(1.25rem, 3vw, 2rem);
}

@container (min-width: 30rem) {
	.ewm-wl-benefits__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@container (min-width: 62rem) {
	.ewm-wl-benefits__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.ewm-wl-benefit {
	padding: 1.25rem;
	border-radius: var(--ewm-radius);
	background: rgb(255 255 255 / 0.06);
	box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12);
	transition: transform 0.25s var(--ewm-ease), background-color 0.25s var(--ewm-ease);
}

@media (hover: hover) {
	.ewm-wl-benefit:hover {
		transform: translateY(-3px);
		background: rgb(255 255 255 / 0.1);
	}
}

.ewm-wl-benefit__icon {
	display: grid;
	place-items: center;
	width: 3.25rem;
	aspect-ratio: 1;
	border-radius: 1rem;
	background: var(--ewm-white);
	box-shadow: 0 10px 24px -12px rgb(0 0 0 / 0.5);
}

.ewm-wl-benefit__icon .ewm-icon {
	width: 1.75rem;
	height: 1.75rem;
}

.ewm-wl-benefit__title {
	margin-top: 0.9rem;
	color: var(--ewm-white);
	font-size: var(--ewm-fs-h3);
	font-weight: 600;
	line-height: 1.45;
}

.ewm-wl-benefit__text {
	margin-top: 0.35rem;
	color: rgb(255 255 255 / 0.84);
	font-size: var(--ewm-fs-sm);
	line-height: 1.7;
}

/* Button after the benefits: leads back to the sign-up form */

.ewm-wl-benefits:has(+ .ewm-wl-endcta) {
	padding-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.ewm-wl-endcta {
	padding-block: 0 clamp(2.5rem, 6vw, 4rem);
	text-align: center;
}

.ewm-wl-endcta__btn {
	min-width: min(100%, 22rem);
}

/* Footer */

.ewm-wl-footer {
	--ewm-social-bg: var(--ewm-sky-light);
	padding-block: 0 2rem;
}

.ewm-wl-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--ewm-line);
}

.ewm-wl-footer__copy {
	color: var(--ewm-ink-soft);
	font-size: var(--ewm-fs-xs);
}

/* Larger screens */

@media (min-width: 40rem) {
	.ewm-wl-visual__caption {
		position: absolute;
		inset: 0;
		display: block;
		margin: 0;
		pointer-events: none;
	}

	.ewm-wl-badge {
		position: absolute;
		max-width: 20rem;
	}

	.ewm-wl-badge--name {
		bottom: 1%;
		left: -5%;
	}
}

/*
 * Desktop: a compact first screen. The photo is aligned to the top and sized to the window
 * height, so Meryem is fully visible and the sign-up button sits above the fold on common
 * laptop screens (1280 x 720 and up).
 */
@media (min-width: 62rem) {
	.ewm-wl-header {
		padding-block: 1rem 0.5rem;
	}

	.ewm-wl-hero {
		padding-top: 0.5rem;
	}

	.ewm-wl-hero__grid {
		grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
		align-items: start;
	}

	.ewm-wl-title {
		font-size: clamp(2.5rem, 1.2rem + 2.2vw, 3.5rem);
		line-height: 1.25;
	}

	.ewm-wl-offer {
		margin-top: 1rem;
		padding-block: 0.6rem;
		font-size: clamp(1.2rem, 0.8rem + 0.7vw, 1.5rem);
	}

	.ewm-wl-lead {
		margin-top: 0.75rem;
	}

	.ewm-wl-card {
		margin-top: 1.75rem;
	}

	.ewm-wl-hero__visual {
		max-width: min(31rem, calc((100vh - 7rem) / 1.08));
		margin-top: 0.25rem;
	}

	@supports (height: 100svh) {
		.ewm-wl-hero__visual {
			max-width: min(31rem, calc((100svh - 7rem) / 1.08));
		}
	}
}

/* Motion */

@keyframes ewm-rise {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: none; }
}

@keyframes ewm-float {
	0%, 100% { transform: translateY(0) rotate(var(--r)); }
	50% { transform: translateY(-8px) rotate(var(--r)); }
}

@keyframes ewm-pulse {
	0% { transform: scale(1); opacity: 0.55; }
	100% { transform: scale(2.8); opacity: 0; }
}

@keyframes ewm-spin {
	to { transform: rotate(360deg); }
}

/* ------------------------------------------------------------------
   Confirmed page: preferred live-session times (template-parts/waitlist/times.php,
   assets/js/waitlist-times.js)
------------------------------------------------------------------- */

.ewm-times[hidden],
.ewm-times [hidden] {
	display: none !important;
}

.ewm-times {
	display: grid;
	gap: 1rem;
	margin-top: 1.5rem;
	text-align: start;
}

.ewm-times__intro {
	display: grid;
	gap: 0.4rem;
}

.ewm-times__kicker {
	color: var(--ewm-red);
	font-size: var(--ewm-fs-xs);
	font-weight: 700;
}

.ewm-times__title {
	color: var(--ewm-navy);
	font-size: 1.3125rem;
	font-weight: 800;
	line-height: 1.5;
}

.ewm-times__lead {
	color: var(--ewm-ink-soft);
	font-size: var(--ewm-fs-sm);
	line-height: 1.8;
}

.ewm-times__tz {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--ewm-navy);
	font-size: var(--ewm-fs-xs);
	line-height: 1.6;
}

.ewm-times__tz-icon {
	flex: none;
	width: 1.05rem;
	height: 1.05rem;
	color: var(--ewm-sky-muted);
}

.ewm-times__clock {
	font-weight: 700;
}

.ewm-times__progress {
	display: grid;
	gap: 0.4rem;
}

.ewm-times__count {
	color: var(--ewm-ink-soft);
	font-size: var(--ewm-fs-xs);
	font-weight: 600;
}

.ewm-times__bars {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.4rem;
}

.ewm-times__bars span {
	height: 0.3125rem;
	border-radius: var(--ewm-radius-pill);
	background: #e3f1fb;
	transition: background-color 0.25s var(--ewm-ease);
}

.ewm-times__bars span.is-on {
	background: var(--ewm-red);
}

.ewm-times__step {
	display: grid;
	gap: 0.65rem;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.ewm-times__legend {
	float: inline-start;
	width: 100%;
	padding: 0;
	color: var(--ewm-navy);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.6;
}

.ewm-times__legend:focus {
	outline: none;
}

.ewm-times__help {
	color: var(--ewm-ink-soft);
	font-size: var(--ewm-fs-xs);
	line-height: 1.7;
}

.ewm-times__days,
.ewm-times__hours {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.5rem;
}

.ewm-times__chip {
	min-width: 0;
	min-height: 2.875rem;
	padding: 0.35rem 0.25rem;
	border: 1px solid rgb(23 43 85 / 0.18);
	border-radius: 0.875rem;
	background: var(--ewm-white);
	color: var(--ewm-navy);
	font-family: var(--ewm-font);
	font-size: var(--ewm-fs-xs);
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	transition: background-color 0.15s var(--ewm-ease), color 0.15s var(--ewm-ease), border-color 0.15s var(--ewm-ease);
}

.ewm-times__chip:hover {
	border-color: var(--ewm-blue);
}

.ewm-times__chip.is-on {
	border-color: var(--ewm-blue);
	background: var(--ewm-blue);
	color: var(--ewm-white);
}

.ewm-times__chip:focus-visible,
.ewm-times__edit:focus-visible {
	outline: 3px solid var(--ewm-sky-muted);
	outline-offset: 2px;
}

.ewm-times__hours .ewm-times__chip {
	font-size: var(--ewm-fs-sm);
	direction: ltr;
}

.ewm-times__rows {
	display: grid;
	gap: 0.45rem;
}

.ewm-times__grid {
	display: grid;
	grid-template-columns: 4.75rem repeat(3, minmax(0, 1fr));
	gap: 0.4rem;
	align-items: center;
}

.ewm-times__grid--head {
	color: var(--ewm-ink-soft);
	font-size: 0.6875rem;
	line-height: 1.5;
	text-align: center;
}

.ewm-times__day {
	color: var(--ewm-navy);
	font-size: var(--ewm-fs-sm);
	font-weight: 700;
}

.ewm-times__groups {
	display: grid;
	gap: 0.75rem;
}

.ewm-times__group {
	display: grid;
	gap: 0.55rem;
	padding: 0.8rem;
	border: 1px solid #e3f1fb;
	border-radius: 1rem;
	background: #f7fbfe;
}

.ewm-times__group-title {
	color: var(--ewm-navy);
	font-size: var(--ewm-fs-sm);
	font-weight: 700;
	line-height: 1.6;
}

.ewm-times__hint {
	display: grid;
	gap: 0.4rem;
}

.ewm-times__hint p {
	padding: 0.6rem 0.8rem;
	border-radius: var(--ewm-radius-sm);
	background: #fdecee;
	color: #a51f2b;
	font-size: var(--ewm-fs-xs);
	font-weight: 600;
	line-height: 1.7;
}

.ewm-times__hint:empty,
.ewm-times__hint:not(:has(p:not([hidden]))) {
	display: none;
}

.ewm-times__nav {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.ewm-times__next {
	flex: 1;
}

.ewm-times__next.is-blocked {
	opacity: 0.5;
	box-shadow: none;
	cursor: not-allowed;
}

.ewm-times__done {
	display: grid;
	gap: 0.6rem;
	padding: 1.1rem 1rem;
	border: 1px solid #e3f1fb;
	border-radius: var(--ewm-radius);
	background: #f7fbfe;
}

.ewm-times__done-title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--ewm-navy);
	font-size: 1.125rem;
	font-weight: 800;
	line-height: 1.5;
}

.ewm-times__done-title:focus {
	outline: none;
}

.ewm-times__done-icon {
	flex: none;
	width: 2rem;
	height: 2rem;
}

.ewm-times__done-text {
	font-size: var(--ewm-fs-sm);
	line-height: 1.8;
}

.ewm-times__done-label {
	color: var(--ewm-ink-soft);
	font-size: var(--ewm-fs-xs);
	font-weight: 700;
}

.ewm-times__summary {
	display: grid;
	gap: 0.35rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ewm-times__summary li {
	display: flex;
	gap: 0.6rem;
	font-size: var(--ewm-fs-sm);
	line-height: 1.7;
}

.ewm-times__summary-day {
	flex: none;
	min-width: 4.75rem;
	color: var(--ewm-navy);
	font-weight: 700;
}

.ewm-times__edit {
	justify-self: start;
	min-height: 2.75rem;
	padding: 0.4rem 0;
	border: 0;
	background: none;
	color: var(--ewm-navy);
	font-family: var(--ewm-font);
	font-size: var(--ewm-fs-sm);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.3em;
	cursor: pointer;
}

.ewm-times.is-done .ewm-times__intro,
.ewm-times.is-done .ewm-times__progress {
	display: none;
}

.ewm-wl-success--with-times {
	scroll-margin-top: 0.75rem;
}

/* Phones: the confirmation, the first question and its button fit on one screen. */
@media (max-width: 39.99rem) {
	.ewm-wl-success--with-times {
		grid-template-columns: auto minmax(0, 1fr);
		justify-items: start;
		align-items: center;
		column-gap: 0.6rem;
		row-gap: 0.4rem;
		margin-top: 0.75rem;
		padding: 1rem;
		text-align: start;
	}

	.ewm-wl-success--with-times .ewm-wl-success__icon {
		width: 2.25rem;
		height: 2.25rem;
	}

	.ewm-wl-success--with-times .ewm-wl-success__title {
		font-size: 1.0625rem;
	}

	.ewm-wl-success--with-times .ewm-wl-success__text {
		grid-column: 1 / -1;
		font-size: var(--ewm-fs-xs);
		line-height: 1.7;
	}

	.ewm-times {
		gap: 0.75rem;
		margin-top: 1rem;
	}

	.ewm-times__intro {
		gap: 0.3rem;
	}

	.ewm-times__title {
		font-size: 1.125rem;
	}

	.ewm-times__lead {
		font-size: var(--ewm-fs-xs);
		line-height: 1.7;
	}

	.ewm-times__progress {
		grid-template-columns: auto minmax(0, 1fr);
		align-items: center;
		column-gap: 0.75rem;
	}

	.ewm-times__step {
		gap: 0.5rem;
	}

	.ewm-times__legend {
		font-size: 1rem;
	}
}
