/* =========================================================
   NJ BEAUTY — "INSIDE THE ACADEMY" DEVICE SHOWCASE
   Full-width band on the single-course sales page. Laptop hero
   + a scrolling gallery of phone mockups. Scoped to .njshow.
   ========================================================= */

.njshow {
	--njs-bezel: linear-gradient(155deg, #34303b 0%, #1b1720 55%, #100d15 100%);
	--njs-ink: var(--nj-espresso, #2a1b14);
	--njs-gold: var(--nj-gold, #c6a769);
	--njs-gold-dark: var(--nj-gold-dark, #a98543);
	--njs-muted: var(--nj-muted, #6f6259);
	--njs-border: var(--nj-border, #e8ded3);

	position: relative;
	/* Break out of the theme's constrained content column → full-bleed band. */
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding: clamp(52px, 7vw, 104px) 0;
	overflow: hidden;
	isolation: isolate;
	background: linear-gradient(180deg, var(--nj-ivory, #f8f3ec) 0%, var(--nj-canvas, #f1e8da) 100%);
	color: var(--njs-ink);
	font-family: var(--nj-font-body, "Montserrat", system-ui, sans-serif);
}

.njshow * {
	box-sizing: border-box;
}

/* Warm gold glow behind the devices */
.njshow__glow {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(58% 42% at 50% 30%, rgba(198, 167, 105, 0.30), transparent 70%),
		radial-gradient(46% 40% at 84% 82%, rgba(233, 216, 197, 0.55), transparent 70%),
		radial-gradient(40% 40% at 12% 80%, rgba(231, 213, 178, 0.42), transparent 72%);
}

.njshow__inner {
	position: relative;
	z-index: 1;
	max-width: 1180px;
	margin-inline: auto;
	padding-inline: 20px;
}

/* ---- Heading ------------------------------------------------------ */
.njshow__head {
	text-align: center;
	max-width: 680px;
	margin: 0 auto clamp(34px, 5vw, 56px);
}

.njshow__eyebrow {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--njs-gold-dark);
}

.njshow__title {
	margin: 0;
	font-family: "Playfair Display", Georgia, serif;
	font-weight: 600;
	font-size: clamp(28px, 4.2vw, 46px);
	line-height: 1.12;
	color: var(--njs-ink);
}

.njshow__sub {
	margin: 16px auto 0;
	max-width: 56ch;
	font-size: clamp(14px, 1.5vw, 16.5px);
	line-height: 1.65;
	color: var(--njs-muted);
}

.njshow__cap {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--njs-muted);
	text-align: center;
}

.njshow__cap--phones {
	margin-top: 6px;
}

/* ---- Laptop hero -------------------------------------------------- */
.njshow__laptopwrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	max-width: 720px;
	margin: 0 auto;
}

.njdev-laptop {
	position: relative;
	width: 100%;
	filter: drop-shadow(0 34px 60px rgba(42, 27, 20, 0.28));
}

.njdev-laptop__screen {
	position: relative;
	padding: 13px 13px 14px;
	border-radius: 17px 17px 3px 3px;
	background: var(--njs-bezel);
}

.njdev-laptop__img {
	display: block;
	width: 100%;
	aspect-ratio: 1094 / 688;
	object-fit: cover;
	border-radius: 5px;
	background: #fff;
}

.njdev-laptop__base {
	position: relative;
	width: 122%;
	height: 17px;
	margin: 0 0 0 -11%;
	border-radius: 0 0 16px 16px;
	background: linear-gradient(180deg, #ece7df 0%, #d3cabb 46%, #b7ab98 100%);
	box-shadow: 0 12px 22px -12px rgba(42, 27, 20, 0.4);
}

.njdev-laptop__base span {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 96px;
	height: 6px;
	border-radius: 0 0 9px 9px;
	background: rgba(42, 27, 20, 0.16);
}

/* ---- Phone gallery (marquee on desktop, swipe on mobile) ---------- */
.njshow__phonestrip {
	position: relative;
	z-index: 1;
	width: 100%;
	margin: clamp(40px, 5vw, 64px) 0 18px;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.njshow__track {
	display: flex;
	align-items: flex-end;
	width: max-content;
	padding: 18px 0;
}

/* Auto-scroll only where there's a real pointer (desktop); pause on hover. */
@media (hover: hover) and (pointer: fine) {
	.njshow__track {
		animation: njshow-marquee 52s linear infinite;
	}
	.njshow__phonestrip:hover .njshow__track {
		animation-play-state: paused;
	}
}

@keyframes njshow-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

.njdev-phone {
	position: relative;
	flex: 0 0 auto;
	width: 190px;
	/* Spacing via margin (not gap) so the duplicated set loops seamlessly. */
	margin-right: 26px;
	padding: 9px;
	border-radius: 30px;
	background: var(--njs-bezel);
	box-shadow:
		0 26px 50px -22px rgba(42, 27, 20, 0.5),
		0 10px 22px -10px rgba(42, 27, 20, 0.32);
}

.njdev-phone__notch {
	position: absolute;
	top: 3px;
	left: 50%;
	transform: translateX(-50%);
	width: 42px;
	height: 5px;
	border-radius: 99px;
	background: #0b0910;
	z-index: 3;
}

.njdev-phone__screen {
	display: block;
	position: relative;
	overflow: hidden;
	border-radius: 22px;
	aspect-ratio: 1080 / 2260;
	background: #fff;
}

.njdev-phone__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

/* ---- Feature chips ------------------------------------------------ */
.njshow__chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 12px;
	margin: clamp(28px, 4vw, 44px) auto 0;
	padding: 0;
	list-style: none;
}

.njshow__chips li {
	padding: 9px 18px;
	border: 1px solid var(--nj-gold-light, #e7d5b2);
	border-radius: 999px;
	background: var(--nj-cream, #fffdf9);
	font-size: 13.5px;
	font-weight: 600;
	color: var(--njs-ink);
	box-shadow: 0 4px 12px rgba(42, 27, 20, 0.05);
}

.njshow__chips li::before {
	content: "\2713";
	margin-right: 7px;
	font-weight: 700;
	color: var(--njs-gold-dark);
}

/* ---- Touch / reduced-motion: manual swipe carousel ---------------- */
@media (hover: none), (prefers-reduced-motion: reduce) {
	.njshow__dup {
		display: none;
	}
	.njshow__phonestrip {
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		-webkit-mask-image: none;
		mask-image: none;
	}
	.njshow__phonestrip::-webkit-scrollbar {
		display: none;
	}
	.njshow__track {
		animation: none;
		padding: 18px 16px;
	}
	.njdev-phone {
		scroll-snap-align: center;
	}
}

/* ---- Responsive sizing -------------------------------------------- */
@media (max-width: 640px) {
	.njdev-phone {
		width: 62vw;
		max-width: 240px;
		margin-right: 16px;
	}
	.njdev-phone__screen {
		border-radius: 20px;
	}
}
