/* ==========================================================================
   Front Page — v2 design tokens
   Navy blue gradient brand + light card layout + liquid glass accents.
   ========================================================================== */

.em-front {
	--navy-900: #0a1a35;
	--navy-800: #0f2547;
	--navy-600: #1e3f73;
	--navy-400: #3a63a8;
	--navy-300: #5c82c4;
	--ink: #0a1a35;
	--paper: #f4f7fc;
	--paper-2: #ffffff;
	--border: #e3e8f2;
	--amber: #f2994a;
	--amber-deep: #d97b28;
	--slate: #52607a;
	--cream: #eef2fa;
	--green: #2f9e6e;
	--navy-gradient: linear-gradient(135deg, #0a1a35 0%, #1e3f73 55%, #3a63a8 100%);
	--serif: "Source Serif 4", Georgia, serif;
	--sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;

	font-family: var(--serif);
	color: var(--slate);
	background: var(--paper-2);
}

.em-front h1,
.em-front h2,
.em-front h3,
.em-front .em-btn {
	font-family: var(--sans);
}

.em-front section {
	padding: 5rem 0;
	position: relative;
	overflow: hidden;
}

.em-front .em-wrap {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 1.5rem;
	position: relative;
	z-index: 2;
}

.em-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: var(--paper);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 0.4rem 1rem;
	font-family: var(--sans);
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--navy-600);
	margin-bottom: 1.25rem;
}
.em-eyebrow .em-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--green);
	display: inline-block;
}

/* ---------------- Liquid glass decorative shapes ---------------- */
.em-glass-shape {
	position: absolute;
	border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
	background: linear-gradient(135deg, rgba(58,99,168,0.35), rgba(10,26,53,0.15));
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border: 1px solid rgba(255,255,255,0.35);
	z-index: 0;
	pointer-events: none;
}
.em-glass-shape.em-gs-1 { width: 340px; height: 340px; top: -120px; right: -100px; }
.em-glass-shape.em-gs-2 { width: 220px; height: 220px; bottom: -80px; left: -60px;
	background: linear-gradient(135deg, rgba(242,153,74,0.25), rgba(58,99,168,0.2)); }
.em-glass-shape.em-gs-3 { width: 160px; height: 160px; top: 30%; right: 8%;
	border-radius: 30% 70% 55% 45% / 55% 30% 70% 45%; }

.em-glass-shape.em-gs-light {
	background: linear-gradient(135deg, rgba(58,99,168,0.10), rgba(58,99,168,0.02));
	border: 1px solid rgba(58,99,168,0.15);
}

/* ---------------- Buttons ---------------- */
.em-btn {
	display: inline-block;
	padding: 0.85rem 1.7rem;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
	font-size: 0.98rem;
	border: none;
	cursor: pointer;
}
.em-btn-primary {
	background: var(--navy-gradient);
	color: #fff;
	box-shadow: 0 10px 24px rgba(10,26,53,0.25);
}
.em-btn-primary:hover {
	box-shadow: 0 14px 30px rgba(10,26,53,0.32);
	transform: translateY(-1px);
}
.em-btn-outline {
	border: 1.5px solid var(--border);
	color: var(--navy-900);
	background: #fff;
}
.em-btn-outline:hover {
	border-color: var(--navy-400);
}
.em-btn-amber {
	background: var(--amber);
	color: #fff;
}
.em-btn-amber:hover {
	background: var(--amber-deep);
}
.em-btn-white {
	background: #fff;
	color: var(--navy-900);
}

/* ---------------- Hero ---------------- */
.em-hero {
	background: var(--paper);
	padding: 5rem 0 4rem;
}
.em-hero .em-wrap {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 3rem;
	align-items: center;
}
.em-hero h1 {
	font-size: clamp(2.2rem, 4.2vw, 3.2rem);
	line-height: 1.12;
	font-weight: 700;
	margin: 0 0 1.25rem;
	color: var(--navy-900);
	letter-spacing: -0.01em;
}
.em-hero p.em-lede {
	font-family: var(--serif);
	font-size: 1.15rem;
	line-height: 1.65;
	color: var(--slate);
	max-width: 46ch;
	margin-bottom: 2rem;
}
.em-hero-ctas {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 1.5rem;
}
.em-hero-note {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.9rem;
	color: var(--slate);
}
.em-hero-note .em-gift {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 50%;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ---------------- Phone frame (glass) ---------------- */
.em-phone-wrap {
	position: relative;
	display: flex;
	justify-content: center;
	padding: 1rem 2.5rem;
}
.em-phone-frame {
	width: 270px;
	background: rgba(10, 26, 53, 0.9);
	border: 1px solid rgba(255,255,255,0.15);
	border-radius: 38px;
	padding: 14px 10px;
	box-shadow: 0 40px 70px rgba(10,26,53,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
	backdrop-filter: blur(2px);
	animation: em-float 5s ease-in-out infinite;
}
.em-phone-notch {
	width: 70px;
	height: 8px;
	background: rgba(255,255,255,0.15);
	border-radius: 6px;
	margin: 0 auto 10px;
}
.em-phone-screen {
	background: #fff;
	border-radius: 24px;
	padding: 1.2rem 1rem;
	min-height: 400px;
	color: var(--navy-900);
}
.em-phone-topbar {
	background: var(--navy-gradient);
	border-radius: 14px;
	padding: 1rem;
	color: #fff;
	margin-bottom: 1rem;
}
.em-phone-topbar b {
	display: block;
	font-family: var(--sans);
	font-size: 0.95rem;
	margin-bottom: 0.3rem;
}
.em-phone-topbar span {
	font-size: 0.75rem;
	opacity: 0.85;
}
.em-phone-play {
	display: inline-block;
	margin-top: 0.6rem;
	background: rgba(255,255,255,0.18);
	border: 1px solid rgba(255,255,255,0.3);
	border-radius: 999px;
	padding: 0.3rem 0.9rem;
	font-size: 0.75rem;
	font-family: var(--sans);
}
.em-phone-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.6rem;
}
.em-phone-tile {
	background: var(--paper);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 0.9rem 0.7rem;
	text-align: center;
}
.em-phone-tile .em-tile-icon {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 0.5rem;
	font-size: 1.1rem;
}
.em-phone-tile span {
	font-family: var(--sans);
	font-size: 0.72rem;
	font-weight: 600;
}

/* Floating glass icon chips around the phone */
.em-float-icon {
	position: absolute;
	width: 54px;
	height: 54px;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.4rem;
	background: rgba(255,255,255,0.55);
	border: 1px solid rgba(255,255,255,0.6);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	box-shadow: 0 12px 28px rgba(10,26,53,0.18);
	animation: em-bob 4s ease-in-out infinite;
	z-index: 3;
}
.em-float-icon.em-fi-1 { top: 2%;  left: -4%;  animation-delay: 0s; }
.em-float-icon.em-fi-2 { top: 60%; left: -8%;  animation-delay: 0.8s; }
.em-float-icon.em-fi-3 { top: 10%; right: -6%; animation-delay: 1.4s; }
.em-float-icon.em-fi-4 { top: 68%; right: -4%; animation-delay: 2.1s; }

@keyframes em-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-14px); }
}
@keyframes em-bob {
	0%, 100% { transform: translateY(0) rotate(-3deg); }
	50% { transform: translateY(-14px) rotate(3deg); }
}

/* ---------------- Benefit / icon cards ---------------- */
.em-benefits-head {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2rem;
	align-items: center;
	margin-bottom: 2.5rem;
}
.em-benefits-head h2 {
	font-size: clamp(1.6rem, 3vw, 2.1rem);
	color: var(--navy-900);
	margin: 0 0 0.75rem;
	max-width: 20ch;
}
.em-benefits-head p {
	color: var(--slate);
	max-width: 60ch;
	border-left: 3px solid var(--amber);
	padding-left: 1rem;
}
.em-mascot-badge {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	background: var(--navy-gradient);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.2rem;
	box-shadow: 0 16px 30px rgba(10,26,53,0.25);
	justify-self: end;
}
.em-card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}
.em-icon-card {
	background: var(--paper);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 1.75rem;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.em-icon-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 30px rgba(10,26,53,0.1);
	border-color: var(--navy-300);
}
.em-icon-card .em-icon-tile {
	width: 46px;
	height: 46px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.3rem;
	margin-bottom: 1.1rem;
}
.em-icon-card h3 {
	font-size: 1.05rem;
	color: var(--navy-900);
	margin: 0 0 0.5rem;
}
.em-icon-card p {
	font-size: 0.92rem;
	margin: 0;
	color: var(--slate);
}

/* ---------------- Skills tile grid ---------------- */
.em-skills h2 {
	color: var(--navy-900);
	max-width: 26ch;
	margin-bottom: 0.5rem;
}
.em-skills > .em-wrap > p {
	color: var(--slate);
	margin-bottom: 2rem;
}
.em-skill-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
}
.em-skill-tile {
	text-decoration: none;
	background: var(--paper);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 1.5rem 1rem;
	text-align: center;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	display: block;
}
.em-skill-tile:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 24px rgba(10,26,53,0.1);
}
.em-skill-tile .em-tile-icon {
	width: 50px;
	height: 50px;
	border-radius: 13px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.4rem;
	margin: 0 auto 0.75rem;
}
.em-skill-tile span {
	font-family: var(--sans);
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--navy-900);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

/* ---------------- How it works ---------------- */
.em-steps {
	background: var(--paper);
}
.em-steps h2 {
	color: var(--navy-900);
}
.em-steps-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.75rem;
	margin-top: 2.5rem;
}
.em-step {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 1.75rem;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.em-step:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 30px rgba(10,26,53,0.1);
}
.em-step .em-step-num {
	font-family: var(--sans);
	font-size: 1.8rem;
	font-weight: 700;
	color: transparent;
	-webkit-background-clip: text;
	background-clip: text;
	background-image: var(--navy-gradient);
	margin-bottom: 0.5rem;
}
.em-step h3 {
	margin: 0 0 0.5rem;
	font-size: 1.1rem;
	color: var(--navy-900);
}
.em-step p {
	color: var(--slate);
	font-size: 0.95rem;
	margin: 0;
}

/* ---------------- Pricing ---------------- */
.em-pricing h2 {
	color: var(--navy-900);
	text-align: center;
}
.em-pricing > .em-wrap > p.em-sub {
	text-align: center;
	color: var(--slate);
	margin-bottom: 2.5rem;
}
.em-pricing-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	max-width: 900px;
	margin: 0 auto;
}
.em-price-card {
	border: 1px solid var(--border);
	border-radius: 20px;
	padding: 2.25rem;
	background: #fff;
	position: relative;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.em-price-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 34px rgba(10,26,53,0.12);
}
.em-price-card.em-featured {
	background: var(--navy-gradient);
	color: #fff;
	border: none;
}
.em-price-badge {
	position: absolute;
	top: -14px;
	left: 2rem;
	background: var(--amber);
	color: #fff;
	font-family: var(--sans);
	font-size: 0.72rem;
	font-weight: 700;
	padding: 0.3rem 0.9rem;
	border-radius: 999px;
}
.em-price-card.em-featured h3 { color: #fff; }
.em-price {
	font-family: var(--sans);
	font-size: 2rem;
	margin: 0.5rem 0 1.25rem;
}
.em-price-card ul {
	list-style: none;
	padding: 0;
	margin: 0 0 1.75rem;
}
.em-price-card li {
	padding: 0.55rem 0;
	border-bottom: 1px solid var(--border);
	font-size: 0.92rem;
}
.em-price-card.em-featured li {
	border-bottom-color: rgba(255,255,255,0.15);
}

/* ---------------- Vision / stats dark panel ---------------- */
.em-vision {
	padding: 0 0 5rem;
}
.em-vision-panel {
	background: var(--navy-gradient);
	border-radius: 28px;
	padding: 3.5rem;
	color: #fff;
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 2.5rem;
	align-items: center;
	position: relative;
	overflow: hidden;
}
.em-vision-panel h2 {
	color: #fff;
	font-size: clamp(1.6rem, 3vw, 2.3rem);
	max-width: 16ch;
	margin: 0.75rem 0 1.25rem;
}
.em-vision-panel p {
	color: #cfd8ea;
	max-width: 50ch;
	margin-bottom: 1.75rem;
}
.em-vision-ctas {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}
.em-vision-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}
.em-vision-stat {
	background: rgba(255,255,255,0.08);
	border: 1px solid rgba(255,255,255,0.15);
	border-radius: 16px;
	padding: 1.25rem;
	backdrop-filter: blur(6px);
	transition: transform 0.18s ease, background 0.18s ease;
}
.em-vision-stat:hover {
	transform: translateY(-3px);
	background: rgba(255,255,255,0.14);
}
.em-vision-stat b {
	display: block;
	font-family: var(--sans);
	font-size: 1.6rem;
	color: var(--amber);
	margin-bottom: 0.3rem;
}
.em-vision-stat span {
	font-size: 0.8rem;
	color: #cfd8ea;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

/* ---------------- FAQ ---------------- */
.em-faq h2 {
	text-align: center;
	color: var(--navy-900);
}
.em-faq > .em-wrap > p.em-sub {
	text-align: center;
	color: var(--slate);
	margin-bottom: 2.5rem;
}
.em-faq-list {
	max-width: 760px;
	margin: 0 auto;
}
.em-faq-item {
	background: var(--paper);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 0;
	margin-bottom: 0.9rem;
	transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.em-faq-item:hover {
	box-shadow: 0 10px 22px rgba(10,26,53,0.08);
	border-color: var(--navy-300);
}
.em-faq-item summary {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 1rem;
	font-family: var(--sans);
	font-weight: 600;
	cursor: pointer;
	color: var(--navy-900);
	font-size: 1rem;
	padding: 1.1rem 1.3rem;
}
.em-faq-item summary::-webkit-details-marker { display: none; }
.em-faq-item summary .em-q-avatar {
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--navy-gradient);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--sans);
	font-size: 0.8rem;
	font-weight: 700;
}
.em-faq-item p {
	margin: 0;
	padding: 0 1.3rem 1.3rem 3.9rem;
	color: var(--slate);
	font-size: 0.95rem;
}

/* ---------------- Final CTA ---------------- */
.em-final-cta {
	padding: 3rem 0 5rem;
}
.em-final-panel {
	background: linear-gradient(120deg, var(--paper) 0%, #eef2fb 100%);
	border: 1px solid var(--border);
	border-radius: 24px;
	padding: 3rem;
	text-align: center;
}
.em-final-panel h2 {
	color: var(--navy-900);
	margin: 0 0 0.5rem;
}
.em-final-panel p {
	color: var(--slate);
	margin-bottom: 1.75rem;
}
.em-final-ctas {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

/* ---------------- App store buttons ---------------- */
.em-app-buttons {
	display: flex;
	gap: 0.9rem;
	flex-wrap: wrap;
	margin-top: 1.5rem;
}
.em-app-btn {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	background: var(--navy-gradient);
	color: #fff;
	text-decoration: none;
	border-radius: 10px;
	padding: 0.65rem 1.2rem;
	font-family: var(--sans);
	box-shadow: 0 10px 22px rgba(10,26,53,0.22);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.em-app-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 26px rgba(10,26,53,0.3);
}
.em-app-btn-disabled {
	opacity: 0.7;
	cursor: default;
}
.em-app-btn-disabled:hover {
	transform: none;
	box-shadow: 0 10px 22px rgba(10,26,53,0.22);
}
.em-app-btn-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.em-app-btn small {
	display: block;
	font-size: 0.62rem;
	opacity: 0.85;
	font-weight: 600;
	letter-spacing: 0.03em;
	color: #fff;
}
.em-app-btn span:last-child {
	font-weight: 600;
	font-size: 0.95rem;
	color: #fff;
}

/* ---------------- Animated mascot badge ---------------- */
.em-mascot-badge {
	position: relative;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	background: var(--navy-gradient);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 16px 30px rgba(10,26,53,0.25);
	justify-self: end;
}
.em-mascot-icon {
	font-size: 2.2rem;
	position: relative;
	z-index: 2;
	display: inline-block;
	animation: em-mascot-spin 3.5s ease-in-out infinite;
}
.em-mascot-ring {
	position: absolute;
	inset: -8px;
	border-radius: 50%;
	border: 2px solid var(--amber);
	opacity: 0.6;
	animation: em-ring-pulse 2.2s ease-out infinite;
}
@keyframes em-mascot-spin {
	0%, 100% { transform: rotate(0deg) scale(1); }
	50% { transform: rotate(-8deg) scale(1.08); }
}
@keyframes em-ring-pulse {
	0% { transform: scale(0.9); opacity: 0.7; }
	100% { transform: scale(1.35); opacity: 0; }
}

/* ---------------- Book promotion (slideshow) ---------------- */
.em-book-promo {
	background: var(--paper);
}
.em-book-promo .em-eyebrow {
	margin-bottom: 1.5rem;
}
.em-book-carousel {
	position: relative;
}
.em-book-track {
	position: relative;
	min-height: 320px;
}
.em-book-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s ease;
}
.em-book-slide.em-book-slide-active {
	opacity: 1;
	visibility: visible;
	position: relative;
}
.em-book-promo-inner {
	display: grid;
	grid-template-columns: 0.5fr 1fr;
	gap: 3rem;
	align-items: center;
}
.em-book-cover img {
	width: 100%;
	max-width: 260px;
	border-radius: 12px;
	box-shadow: 0 24px 50px rgba(10,26,53,0.2);
}
.em-book-cover-placeholder {
	width: 200px;
	height: 280px;
	border-radius: 12px;
	background: var(--navy-gradient);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3rem;
	box-shadow: 0 24px 50px rgba(10,26,53,0.2);
}
.em-book-copy h2 {
	color: var(--navy-900);
	margin: 0.5rem 0 1rem;
	font-size: clamp(1.5rem, 3vw, 2rem);
}
.em-book-copy p {
	color: var(--slate);
	max-width: 55ch;
	margin-bottom: 1.5rem;
}
.em-book-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid var(--border);
	font-size: 1.4rem;
	line-height: 1;
	color: var(--navy-900);
	cursor: pointer;
	box-shadow: 0 10px 20px rgba(10,26,53,0.12);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.15s ease;
}
.em-book-nav:hover {
	transform: translateY(-50%) scale(1.08);
}
.em-book-prev { left: -1.25rem; }
.em-book-next { right: -1.25rem; }
.em-book-dots {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 1.5rem;
}
.em-book-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	border: none;
	background: var(--border);
	cursor: pointer;
	padding: 0;
}
.em-book-dot-active {
	background: var(--navy-600);
	width: 22px;
	border-radius: 999px;
}

/* Full-width image-banner mode (admin-uploaded artwork, no card chrome) */
.em-book-banner-section {
	padding: 2rem 1.5rem;
	overflow: visible;
}
.em-book-banner-section .em-eyebrow {
	max-width: 1180px;
	margin: 0 auto 1rem;
	display: inline-flex;
}
.em-book-carousel.em-book-banner-mode {
	max-width: 1180px;
	margin: 0 auto;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 20px 45px rgba(10,26,53,0.15);
}
.em-book-banner-mode .em-book-track {
	position: relative;
	min-height: 0;
	aspect-ratio: 16 / 5;
	background: var(--paper);
}
.em-book-banner-mode .em-book-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.8s ease;
}
.em-book-banner-mode .em-book-slide.em-book-slide-active {
	opacity: 1;
	visibility: visible;
	position: absolute;
}
.em-book-banner-mode .em-book-slide a,
.em-book-banner-mode .em-book-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.em-book-banner-mode .em-book-nav {
	box-shadow: 0 10px 24px rgba(10,26,53,0.25);
}
.em-book-banner-mode .em-book-prev { left: 1.25rem; }
.em-book-banner-mode .em-book-next { right: 1.25rem; }
.em-book-banner-mode .em-book-dots {
	position: absolute;
	bottom: 1.25rem;
	left: 0;
	right: 0;
	margin-top: 0;
}

/* ---------------- NRB / diaspora section ---------------- */
.em-nrb {
	background: #fff;
}
.em-nrb-copy {
	max-width: 720px;
	margin: 0 auto 2.5rem;
	text-align: center;
}
.em-nrb-copy h2 {
	color: var(--navy-900);
	margin: 0.5rem 0 1rem;
}
.em-nrb-copy p {
	color: var(--slate);
}
.em-nrb-grid {
	max-width: 1000px;
	margin: 0 auto;
}

/* ---------------- Scroll reveal ---------------- */
.em-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}
.em-reveal.em-in-view {
	opacity: 1;
	transform: translateY(0);
}

/* Streak flame pulse */
.em-flame-pulse {
	display: inline-block;
	animation: em-pulse 1.6s ease-in-out infinite;
}
@keyframes em-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.18); }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
	.em-hero .em-wrap { grid-template-columns: 1fr; }
	.em-card-grid,
	.em-steps-grid { grid-template-columns: 1fr; }
	.em-skill-grid { grid-template-columns: repeat(2, 1fr); }
	.em-pricing-grid { grid-template-columns: 1fr; }
	.em-vision-panel { grid-template-columns: 1fr; padding: 2rem; }
	.em-vision-stats { grid-template-columns: 1fr 1fr; }
	.em-benefits-head { grid-template-columns: 1fr; }
	.em-mascot-badge { justify-self: start; }
	.em-book-promo-inner { grid-template-columns: 1fr; text-align: center; }
	.em-book-cover { display: flex; justify-content: center; }
	.em-book-nav { display: none; }
	.em-book-banner-mode .em-book-track {
		aspect-ratio: 4 / 3;
	}
	.em-front section { padding: 3.25rem 0; }
}

@media (max-width: 640px) {
	.em-hero {
		padding: 2rem 0 1.5rem;
	}
	.em-front section {
		padding: 2.5rem 0;
	}
	.em-hero .em-wrap {
		grid-template-columns: 1.15fr 0.85fr;
		gap: 1rem;
		align-items: center;
	}
	.em-hero h1 {
		font-size: 1.5rem;
		line-height: 1.15;
	}
	.em-hero p.em-lede {
		font-size: 0.85rem;
		line-height: 1.45;
		margin-bottom: 1.2rem;
	}
	.em-eyebrow {
		font-size: 0.65rem;
		padding: 0.3rem 0.7rem;
	}
	.em-hero-ctas {
		gap: 0.5rem;
	}
	.em-hero-ctas .em-btn {
		padding: 0.55rem 0.9rem;
		font-size: 0.78rem;
	}
	.em-hero-note {
		font-size: 0.72rem;
	}
	.em-hero-note .em-gift {
		width: 26px;
		height: 26px;
		font-size: 0.8rem;
	}
	.em-app-buttons {
		margin-top: 0.9rem;
	}
	.em-app-btn {
		padding: 0.4rem 0.6rem;
		gap: 0.4rem;
	}
	.em-app-btn-icon svg {
		width: 15px;
		height: 15px;
	}
	.em-app-btn small {
		font-size: 0.5rem;
	}
	.em-app-btn span:last-child {
		font-size: 0.72rem;
	}
	.em-phone-wrap {
		padding: 0;
	}
	.em-phone-frame {
		width: 100%;
		max-width: 150px;
		padding: 8px 6px;
		border-radius: 22px;
	}
	.em-phone-notch {
		width: 40px;
		height: 5px;
		margin-bottom: 6px;
	}
	.em-phone-screen {
		border-radius: 14px;
		padding: 0.6rem 0.5rem;
		min-height: 190px;
	}
	.em-phone-topbar {
		padding: 0.5rem;
		border-radius: 8px;
		margin-bottom: 0.5rem;
	}
	.em-phone-topbar b {
		font-size: 0.6rem;
	}
	.em-phone-topbar span {
		font-size: 0.5rem;
	}
	.em-phone-play {
		font-size: 0.5rem;
		padding: 0.15rem 0.5rem;
		margin-top: 0.3rem;
	}
	.em-phone-grid {
		gap: 0.35rem;
	}
	.em-phone-tile {
		padding: 0.4rem 0.3rem;
		border-radius: 8px;
	}
	.em-phone-tile .em-tile-icon {
		width: 20px;
		height: 20px;
		font-size: 0.65rem;
		margin-bottom: 0.25rem;
	}
	.em-phone-tile span {
		font-size: 0.48rem;
	}
	.em-float-icon {
		width: 32px;
		height: 32px;
		font-size: 0.85rem;
		border-radius: 10px;
	}

	/* Vision panel — tighten so it doesn't stretch too tall on mobile */
	.em-vision {
		padding: 0 0 3rem;
	}
	.em-vision-panel {
		padding: 1.75rem 1.5rem;
		gap: 1.5rem;
	}
	.em-vision-panel .em-eyebrow {
		font-size: 0.65rem;
		padding: 0.3rem 0.7rem;
	}
	.em-vision-panel h2 {
		font-size: 1.35rem;
		margin: 0.6rem 0 0.7rem;
		max-width: none;
	}
	.em-vision-panel p {
		font-size: 0.85rem;
		line-height: 1.5;
		margin-bottom: 1.2rem;
	}
	.em-vision-ctas {
		gap: 0.6rem;
		margin-bottom: 1.5rem;
	}
	.em-vision-ctas .em-btn {
		padding: 0.55rem 1rem;
		font-size: 0.78rem;
	}
	.em-vision-stats {
		gap: 0.6rem;
	}
	.em-vision-stat {
		padding: 0.9rem;
	}
	.em-vision-stat b {
		font-size: 1.25rem;
	}
	.em-vision-stat span {
		font-size: 0.68rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.em-front * {
		animation: none !important;
		transition: none !important;
	}
}

/* ---------------- Course archive page ---------------- */
.em-archive-hero {
	background: var(--paper);
	padding: 3.5rem 0 2.5rem;
}
.em-archive-hero h1 {
	color: var(--navy-900);
	font-size: clamp(1.8rem, 3.5vw, 2.4rem);
	margin: 0.75rem 0 0.75rem;
}
.em-archive-hero .em-lede {
	font-family: var(--serif);
	color: var(--slate);
	max-width: 60ch;
	margin-bottom: 1.75rem;
}

/* Filter pills */
.em-filter-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}
.em-filter-pill {
	font-family: var(--sans);
	font-size: 0.85rem;
	font-weight: 600;
	background: #fff;
	border: 1px solid var(--border);
	color: var(--slate);
	padding: 0.5rem 1.1rem;
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}
.em-filter-pill:hover {
	border-color: var(--navy-400);
}
.em-filter-pill.em-filter-active {
	background: var(--navy-gradient);
	color: #fff;
	border-color: transparent;
}

.em-archive-grid-section {
	padding: 3rem 0 5rem;
}
.em-course-card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}
.em-course-card-wrap.em-filter-hidden {
	display: none;
}
.em-course-card-link {
	text-decoration: none;
	color: inherit;
}
.em-course-card-v2 {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 16px;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	height: 100%;
}
.em-course-card-v2:hover {
	transform: translateY(-6px);
	box-shadow: 0 22px 40px rgba(10,26,53,0.15);
}
.em-course-card-thumb {
	position: relative;
	height: 170px;
	background: var(--paper);
	overflow: hidden;
}
.em-course-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}
.em-course-card-v2:hover .em-course-card-thumb img {
	transform: scale(1.08);
}
.em-course-card-thumb-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.5rem;
	background: var(--navy-gradient);
}
.em-course-card-fade {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(10,26,53,0.55) 0%, rgba(10,26,53,0) 45%);
	opacity: 0;
	transition: opacity 0.25s ease;
}
.em-course-card-v2:hover .em-course-card-fade {
	opacity: 1;
}
.em-course-badge {
	position: absolute;
	top: 0.8rem;
	right: 0.8rem;
	font-family: var(--sans);
	font-size: 0.72rem;
	font-weight: 700;
	padding: 0.3rem 0.7rem;
	border-radius: 999px;
	box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}
.em-course-badge del {
	opacity: 0.7;
	font-weight: 400;
	margin-right: 0.2rem;
}
.em-badge-free {
	background: #2f9e6e;
	color: #fff;
}
.em-badge-premium {
	background: var(--amber);
	color: #fff;
}
.em-course-level-badge {
	position: absolute;
	top: 0.8rem;
	left: 0.8rem;
	font-family: var(--sans);
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	background: rgba(255,255,255,0.9);
	color: var(--navy-900);
	padding: 0.25rem 0.6rem;
	border-radius: 999px;
}
.em-course-hover-cta {
	position: absolute;
	bottom: 0.9rem;
	left: 1rem;
	color: #fff;
	font-family: var(--sans);
	font-weight: 600;
	font-size: 0.85rem;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}
.em-course-card-v2:hover .em-course-hover-cta {
	opacity: 1;
	transform: translateY(0);
}
.em-course-card-body {
	padding: 1.25rem;
}
.em-course-card-body h3 {
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
	color: var(--navy-900);
}
.em-course-card-body p {
	font-size: 0.9rem;
	color: var(--slate);
	margin: 0 0 0.9rem;
}
.em-course-card-meta {
	font-size: 0.8rem;
	color: var(--navy-400);
	font-family: var(--sans);
}
.em-archive-pagination {
	margin-top: 3rem;
	text-align: center;
}

@media (max-width: 900px) {
	.em-course-card-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 600px) {
	.em-course-card-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------------- Contact page ---------------- */
.em-contact-hero {
	background: var(--paper);
	padding: 3.5rem 0 2.5rem;
}
.em-contact-hero h1 {
	color: var(--navy-900);
	font-size: clamp(1.8rem, 3.5vw, 2.4rem);
	margin: 0.75rem 0 0.75rem;
}
.em-contact-hero .em-lede {
	font-family: var(--serif);
	color: var(--slate);
	max-width: 60ch;
}
.em-contact-section {
	padding: 3rem 0 5rem;
}
.em-contact-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 2.5rem;
	align-items: start;
}
.em-contact-form-card,
.em-contact-info-card {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 18px;
	padding: 2rem;
}
.em-form-row {
	margin-bottom: 1.25rem;
}
.em-form-row label {
	display: block;
	font-family: var(--sans);
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--navy-900);
	margin-bottom: 0.4rem;
}
.em-form-row input,
.em-form-row textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 0.65rem 0.8rem;
	font-family: var(--serif);
	font-size: 0.95rem;
}
.em-form-row input:focus,
.em-form-row textarea:focus {
	outline: none;
	border-color: var(--navy-400);
	box-shadow: 0 0 0 3px rgba(58,99,168,0.15);
}
.em-contact-alert {
	padding: 0.9rem 1.1rem;
	border-radius: 10px;
	margin-bottom: 1.25rem;
	font-size: 0.92rem;
}
.em-contact-alert-success {
	background: #e7f7ef;
	color: #1e6b45;
}
.em-contact-alert-error {
	background: #fdeee0;
	color: #a35a17;
}
.em-contact-info-card h3 {
	color: var(--navy-900);
	margin-top: 0;
}
.em-contact-info-list {
	list-style: none;
	padding: 0;
	margin: 0 0 1.5rem;
}
.em-contact-info-list li {
	display: flex;
	align-items: flex-start;
	gap: 0.7rem;
	padding: 0.7rem 0;
	border-bottom: 1px solid var(--border);
	font-size: 0.92rem;
	color: var(--slate);
}
.em-contact-info-list a {
	color: var(--slate);
	text-decoration: none;
}
.em-contact-info-list a:hover {
	color: var(--navy-600);
}
.em-contact-icon {
	flex-shrink: 0;
}
.em-contact-social {
	display: flex;
	gap: 0.8rem;
	font-size: 1.3rem;
}
.em-contact-social a {
	text-decoration: none;
}

@media (max-width: 860px) {
	.em-contact-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------------- Guided enrollment steps (single course page) ---------------- */
.em-enroll-steps {
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	margin: 1rem 0;
	max-width: 420px;
}
.em-enroll-step {
	display: flex;
	align-items: center;
	gap: 1rem;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 1rem 1.1rem;
}
.em-enroll-step-active {
	border-color: var(--navy-400);
	box-shadow: 0 8px 20px rgba(10,26,53,0.08);
}
.em-enroll-step-locked {
	opacity: 0.55;
}
.em-enroll-step-num {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--navy-gradient);
	color: #fff;
	font-family: var(--sans);
	font-weight: 700;
	font-size: 0.85rem;
	display: flex;
	align-items: center;
	justify-content: center;
}
.em-enroll-step-locked .em-enroll-step-num {
	background: var(--border);
	color: var(--slate);
}
.em-enroll-step strong {
	display: block;
	font-family: var(--sans);
	font-size: 0.95rem;
	color: var(--navy-900);
	margin-bottom: 0.4rem;
}
.em-enroll-note {
	font-size: 0.8rem;
	color: var(--slate);
}
.em-enroll-login-note {
	font-size: 0.85rem;
	color: var(--slate);
}
.em-enroll-login-note a {
	color: var(--navy-600);
	font-weight: 600;
}

/* ---------------- Sequential lesson stages ---------------- */
.em-lesson-stage {
	border: 1px solid var(--border, #e5e7eb);
	border-radius: 14px;
	padding: 1.5rem;
	margin: 1.5rem 0;
}
.em-lesson-stage-locked {
	opacity: 0.5;
	pointer-events: none;
	filter: grayscale(0.4);
}
.em-lesson-stage-header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
}
.em-lesson-stage-num {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--navy-gradient, #0a1a35);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.9rem;
	flex-shrink: 0;
}
.em-lesson-stage-locked .em-lesson-stage-num {
	background: #cbd5e1;
}
.em-vocab-list, .em-grammar-box {
	background: #f9fafb;
	border-radius: 10px;
	padding: 1rem 1.25rem;
	margin-bottom: 1rem;
}
.em-vocab-item {
	padding: 0.6rem 0;
	border-bottom: 1px solid #eee;
}
.em-vocab-item:last-child {
	border-bottom: none;
}
.em-vocab-item strong {
	display: block;
	margin-bottom: 0.2rem;
}

/* ---------------- Exam mode ---------------- */
.em-exam-intro {
	background: #fff7ed;
	border: 1px solid #fed7aa;
	border-radius: 14px;
	padding: 1.75rem;
}
.em-exam-rules {
	margin: 1rem 0 1.5rem;
	padding-left: 1.25rem;
}
.em-exam-rules li {
	margin-bottom: 0.5rem;
}
.em-exam {
	user-select: none;
}
.em-exam-bar {
	position: sticky;
	top: 0;
	background: #fff;
	border-bottom: 2px solid var(--border, #e5e7eb);
	padding: 0.75rem 0;
	margin-bottom: 1.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	z-index: 10;
}
.em-exam-timer {
	font-family: monospace;
	font-size: 1.4rem;
	font-weight: 700;
	background: #f1f5f9;
	padding: 0.3rem 0.9rem;
	border-radius: 8px;
}
.em-exam-timer-danger {
	background: #fee2e2;
	color: #b91c1c;
}
.em-exam-alert {
	padding: 1rem 1.25rem;
	border-radius: 10px;
	margin-bottom: 1rem;
	font-size: 0.95rem;
}
.em-exam-alert-pass {
	background: #ecfdf5;
	color: #065f46;
}
.em-exam-alert-fail {
	background: #fef2f2;
	color: #991b1b;
}
