/* Sales pages: a centered hero (Hadar, 24.10.2026: "דפים שמיועדים להיות דפי מכירה חייבים הירו ממורכז").
   The words in the middle, one after the other, and under them a big framed "stage": the game's title screen
   (build a game), the rooftop scene (Hanukkah), a real photo (lectures, seniors). The music clip keeps its own look
   and is only centered. Loaded after site.css (and clip.css) on those five templates only. */

.aik-sales {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(28px, 3vw, 44px);
	padding: clamp(36px, 4vw, 60px) var(--pad) clamp(116px, 10vw, 144px);
	text-align: center;
}

.aik-sales.is-night {
	background:
		radial-gradient(55% 45% at 50% 0%, rgba(169, 145, 255, 0.38), transparent 70%),
		radial-gradient(38% 34% at 12% 72%, rgba(255, 79, 163, 0.2), transparent 70%),
		radial-gradient(38% 34% at 88% 66%, rgba(95, 227, 246, 0.18), transparent 70%),
		linear-gradient(180deg, #2a1f66 0%, var(--night) 70%);
}

/* The same pixel edge into the white page as the other heroes */
.aik-sales.is-night::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: -1px;
	height: 24px;
	background: var(--pixel-edge) repeat-x bottom / 96px 24px;
	z-index: 1;
}

.aik-sales.is-light {
	background:
		radial-gradient(42% 50% at 14% 28%, rgba(95, 227, 246, 0.28), transparent 70%),
		radial-gradient(40% 50% at 88% 62%, rgba(255, 79, 163, 0.15), transparent 70%),
		linear-gradient(160deg, #f6f2ff 0%, #ece4ff 55%, #f9f7ff 100%);
}

.aik-sales > .aik-lofi-motes {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

/* The words */
.aik-sales-text {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	max-width: 900px;
}

.aik-sales-logo {
	width: clamp(220px, 20vw, 290px);
	height: auto;
	margin-bottom: 4px;
	filter: drop-shadow(0 10px 22px rgba(10, 6, 40, 0.5));
}

.aik-sales-title {
	font-size: clamp(40px, 5vw, 72px);
	line-height: 1.06;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.aik-sales-title span {
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.aik-sales-lead {
	font-size: clamp(18px, 1.8vw, 22px);
	line-height: 1.5;
	text-wrap: pretty;
}

.aik-sales-meta {
	font-size: 16px;
}

.aik-sales-meta span {
	margin-inline: 8px;
	opacity: 0.6;
}

.aik-sales-text .aik-button-big {
	margin-top: 6px;
}

.is-night .aik-sales-title {
	color: #fff;
	text-shadow: 0 4px 24px rgba(15, 8, 45, 0.55);
}

.is-night .aik-sales-title span {
	background-image: linear-gradient(90deg, #7fe9f8, #c9b8ff 55%, #ffa6d6);
	text-shadow: none;
	filter: drop-shadow(0 4px 0 rgba(15, 8, 45, 0.45));
}

.is-night .aik-sales-lead {
	color: #f1edff;
}

.is-night .aik-sales-meta {
	color: #cfc6f5;
}

.is-light .aik-sales-title {
	color: var(--ink);
}

.is-light .aik-sales-title span {
	background-image: linear-gradient(90deg, var(--purple), #ff4fa3);
}

.is-light .aik-sales-lead {
	color: #3d3470;
}

.is-light .aik-sales-meta {
	color: #5b5290;
}

.is-light .aik-eyebrow {
	border-color: rgba(123, 92, 255, 0.25);
	background: rgba(255, 255, 255, 0.7);
	color: var(--purple-dark);
	font-weight: 600;
}

.is-light :focus-visible {
	outline-color: var(--purple-dark);
}

body.aik-seniors .aik-sales-lead {
	font-size: clamp(20px, 2.1vw, 25px);
}

/* The stage: one big frame under the words */
.aik-sales-stage {
	position: relative;
	display: block;
	width: min(980px, 100%);
	aspect-ratio: 16 / 9;
	border: 6px solid rgba(255, 255, 255, 0.92);
	border-radius: 34px;
	overflow: hidden;
	background: var(--night);
	box-shadow: 0 34px 80px rgba(10, 6, 40, 0.55), 0 0 110px rgba(169, 145, 255, 0.32);
	color: inherit;
	text-decoration: none;
	transition: transform 0.6s var(--ease, ease), box-shadow 0.6s var(--ease, ease);
}

/* Build a game: the title screen of the course's game */
.aik-sales-stage.is-screen:hover {
	transform: translateY(-6px);
	box-shadow: 0 44px 90px rgba(10, 6, 40, 0.6), 0 0 130px rgba(169, 145, 255, 0.45);
}

.aik-sales-stage.is-screen:focus-visible {
	outline: 4px solid #ffd66b;
	outline-offset: 6px;
}

.aik-sales-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.aik-sales-stage .aik-hud {
	top: clamp(12px, 2vw, 22px);
	justify-content: space-between;
	padding-inline: clamp(14px, 2.4vw, 28px);
}

.aik-sales-player {
	position: absolute;
	bottom: 9%;
	left: 38%;
	z-index: 2;
	width: 24%;
	height: auto;
	filter: drop-shadow(0 18px 24px rgba(10, 6, 40, 0.55));
	animation: aik-hover 3.6s ease-in-out infinite;
}

/* The coins in one jump arc over Benya and the robot */
.aik-sales-stage .aik-coins i:nth-child(1) { inset: 44% auto auto 31%; }
.aik-sales-stage .aik-coins i:nth-child(2) { inset: 33% auto auto 37.5%; }
.aik-sales-stage .aik-coins i:nth-child(3) { inset: 27% auto auto 45%; }
.aik-sales-stage .aik-coins i:nth-child(4) { inset: 27% auto auto 52.5%; }
.aik-sales-stage .aik-coins i:nth-child(5) { inset: 33% auto auto 60%; }
.aik-sales-stage .aik-coins i:nth-child(6) { inset: 44% auto auto 66.5%; }

.aik-sales-start {
	position: absolute;
	top: 16%;
	left: 50%;
	z-index: 3;
	translate: -50% 0;
	padding: 8px 22px;
	border: 2px solid #ffd66b;
	border-radius: 999px;
	background: rgba(27, 20, 66, 0.72);
	color: #ffd66b;
	font-family: var(--font-title);
	font-size: clamp(15px, 1.5vw, 19px);
	font-weight: 700;
	white-space: nowrap;
	animation: aik-blink 1.4s steps(2, jump-none) infinite;
}

.aik-sales-stage.is-screen:hover .aik-sales-start {
	animation: none;
	background: #ffd66b;
	color: var(--night);
}

/* Hanukkah: the rooftop scene (still + soft loop) fills the frame, Benya and the robot in its middle */
.aik-sales-stage .aik-hero-art,
.aik-sales-stage .aik-lofi {
	position: absolute;
	inset: 0;
	z-index: 0;
	height: auto;
	max-height: none;
}

.aik-sales-stage .aik-hero-art::after,
.aik-sales-stage .aik-lofi-shade {
	display: none;
}

.aik-sales-stage .aik-lofi-camera img,
.aik-sales-stage .aik-lofi-video {
	object-position: 40% center;
}

/* Lectures, seniors: the real photo, wide, with Hadar's sticker in its corner */
.aik-sales-stage.is-photo {
	aspect-ratio: auto;
	width: min(860px, 100%);
	border: 0;
	border-radius: 0;
	overflow: visible;
	background: none;
	box-shadow: none;
}

.aik-sales-stage .aik-photo {
	max-width: none;
}

.aik-sales-stage .aik-photo > img:first-child {
	aspect-ratio: 16 / 9;
	object-position: center 40%;
	transform: rotate(-1deg);
}

.aik-sales-stage .aik-photo .aik-photo-sticker {
	bottom: -10%;
	left: -3%;
	width: 18%;
	max-width: 180px;
}

/* The music clip keeps its own hero, centered: the words, then the duet on its stage */
.clip-hero-inner {
	grid-template-columns: 1fr;
	justify-items: center;
	gap: 18px;
	text-align: center;
}

.clip-hero-text {
	align-items: center;
	max-width: 860px;
}

.clip-name {
	align-items: center;
}

.clip-meta {
	justify-content: center;
}

.clip-hero-bg::after {
	background:
		radial-gradient(62% 58% at 50% 30%, rgba(17, 10, 58, 0.88), rgba(17, 10, 58, 0.6) 65%, rgba(17, 10, 58, 0.4)),
		linear-gradient(0deg, var(--c-night) 0%, rgba(17, 10, 58, 0) 30%);
}

.clip-hero-art {
	order: 0;
	width: min(100%, 460px);
	margin: 0 auto;
}

@media (max-width: 800px) {
	.aik-sales {
		gap: 28px;
		padding: 34px var(--pad) 104px;
	}

	.aik-sales-text {
		gap: 14px;
	}

	.aik-sales-title {
		font-size: 40px;
	}

	.aik-sales-lead {
		font-size: 18px;
	}

	.aik-sales-meta {
		font-size: 14px;
	}

	.aik-sales-meta span {
		margin-inline: 5px;
	}

	.aik-sales-stage {
		border-width: 4px;
		border-radius: 24px;
	}

	/* A phone gets a square game screen: the sky, the HUD, the coins and the two of them */
	.aik-sales-stage.is-screen {
		aspect-ratio: 1 / 1;
	}

	.aik-sales-player {
		left: 23%;
		width: 54%;
	}

	.aik-sales-start {
		top: 17%;
	}

	.aik-sales-stage .aik-coins i:nth-child(1) { inset: 50% auto auto 12%; }
	.aik-sales-stage .aik-coins i:nth-child(2) { inset: 40% auto auto 22%; }
	.aik-sales-stage .aik-coins i:nth-child(3) { inset: 33% auto auto 36%; }
	.aik-sales-stage .aik-coins i:nth-child(4) { inset: 33% auto auto 56%; }
	.aik-sales-stage .aik-coins i:nth-child(5) { inset: 40% auto auto 70%; }
	.aik-sales-stage .aik-coins i:nth-child(6) { inset: 50% auto auto 80%; }

	.aik-sales-stage.is-scene {
		aspect-ratio: 4 / 3;
	}

	.aik-sales-stage .aik-lofi-camera img,
	.aik-sales-stage .aik-lofi-video {
		object-position: 34% center;
	}

	.aik-sales-stage .aik-photo > img:first-child {
		aspect-ratio: 4 / 3;
	}

	.aik-sales-stage .aik-photo .aik-photo-sticker {
		width: 28%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.aik-sales-player,
	.aik-sales-start {
		animation: none;
	}

	.aik-sales-stage {
		transition: none;
	}
}

/* A hero with words only (the contact page): no stage under it */
.aik-sales.is-short {
	padding-bottom: clamp(56px, 6vw, 88px);
}

.aik-sales-meta a {
	color: inherit;
	font-weight: 600;
}

/* Hanukkah: the rooftop scene is the hero's background, the words centered on it (Hadar, 24.10.2026: "זאת הייתה
   אמורה להיות תמונת רקע"). A soft dark pool behind the words keeps them readable over the sky and the lights. On a
   phone (<=600px) aik_scene_art() swaps in the tall picture (.has-tall): sky on top for the words, the two below. */
.aik-sales.is-backdrop {
	justify-content: center;
	min-height: clamp(600px, calc(100svh - 76px), 860px);
	padding-block: clamp(56px, 6vw, 96px) clamp(128px, 11vw, 160px);
}

.aik-sales.is-backdrop > .aik-hero-art {
	position: absolute;
	inset: 0;
	z-index: -1;
	height: auto;
	max-height: none;
}

.aik-sales.is-backdrop > .aik-hero-art::after {
	display: none;
}

/* On a computer the scene is pulled a little in toward its top right corner, so Benya, the robot and the menorah
   sit on the left beside the words, not under them */
@media (min-width: 801px) {
	.aik-sales.is-backdrop .aik-lofi-camera img,
	.aik-sales.is-backdrop .aik-lofi-video {
		object-position: left center;
		transform: scale(1.1);
		transform-origin: 100% 0;
	}
}

.aik-sales.is-backdrop .aik-lofi-shade {
	display: block;
	background:
		radial-gradient(46% 52% at 50% 44%, rgba(27, 20, 66, 0.8), rgba(27, 20, 66, 0.45) 62%, rgba(27, 20, 66, 0.12) 100%),
		linear-gradient(0deg, rgba(27, 20, 66, 0.7), rgba(27, 20, 66, 0) 28%);
}

@media (max-width: 800px) {
	.aik-sales.is-backdrop {
		justify-content: flex-start;
		min-height: min(178vw, 760px);
		padding-top: 40px;
	}

	.aik-sales.is-backdrop .aik-lofi-shade {
		background:
			linear-gradient(180deg, rgba(27, 20, 66, 0.82) 0%, rgba(27, 20, 66, 0.55) 42%, rgba(27, 20, 66, 0) 62%),
			linear-gradient(0deg, rgba(27, 20, 66, 0.6), rgba(27, 20, 66, 0) 22%);
	}
}

@media (max-width: 600px) {
	.aik-sales.is-backdrop .has-tall .aik-lofi-still,
	.aik-sales.is-backdrop .has-tall .aik-lofi-camera img {
		object-position: center bottom;
	}
}

/* Three "who" lines stand in one row of three, not two and one alone (Hadar, 24.10.2026: "לא יכול לרדת שורה רק עם כרטיס אחד");
   the icon goes above the words so the titles keep to one line */
@media (min-width: 1000px) {
	.aik-who:has(> li:nth-child(3):last-child) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.aik-who:has(> li:nth-child(3):last-child) li {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 18px;
	}

	.aik-who:has(> li:nth-child(3):last-child) .aik-icon {
		grid-row: auto;
	}
}

@media (max-width: 999px) {
	.aik-who:has(> li:nth-child(3):last-child) {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ===== The workshop in their city (Hadar's copy, 24.10.2026) ===== */

/* The opening words under a sales hero */
.aik-intro {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	max-width: 860px;
	margin-inline: auto;
	text-align: center;
}

.aik-intro-title {
	margin: 0 0 8px;
	color: var(--ink);
	font-family: var(--font-heading);
	font-size: clamp(28px, 3.6vw, 46px);
	line-height: 1.15;
	text-wrap: balance;
}

.aik-intro-title span {
	background: var(--grad-ink);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.aik-intro p {
	color: var(--text);
	font-size: clamp(18px, 1.6vw, 21px);
	font-weight: 300;
}

.aik-intro strong {
	color: var(--ink);
	font-weight: 700;
}

.aik-intro .aik-intro-punch {
	padding: 10px 24px;
	border-radius: 999px;
	background: var(--lilac);
	color: var(--purple-dark);
	font-weight: 700;
}

/* Who it's for: three, with the line that sums each one up */
.cw-who .cw-who-punch {
	margin-top: 10px;
	color: var(--purple-dark);
	font-weight: 700;
}

/* The two workshops: two tall cards, each with its art on top and its own button */
.cw-workshops {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.cw-workshop {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: clamp(24px, 3vw, 36px);
	border: 2px solid var(--cream-line);
	border-radius: 30px;
	background: var(--cream);
}

.cw-workshop.is-clip {
	border-color: var(--sky-line);
	background: var(--sky);
}

.cw-workshop-art {
	align-self: center;
	width: min(100%, 260px);
	height: auto;
}

.cw-workshop h3 {
	color: var(--ink);
	font-size: clamp(26px, 2.6vw, 34px);
	line-height: 1.15;
	text-align: center;
}

.cw-workshop-lead {
	color: var(--purple-dark);
	font-family: var(--font-title);
	font-size: clamp(19px, 1.7vw, 22px);
	font-weight: 600;
	text-align: center;
}

.cw-workshop p {
	font-size: 17px;
}

.cw-workshop-label {
	margin-top: 6px;
	color: var(--ink);
	font-family: var(--font-title);
	font-weight: 600;
}

.cw-workshop ul {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cw-workshop ul li {
	position: relative;
	padding-inline-start: 30px;
	font-size: 17px;
}

.cw-workshop ul li::before {
	content: "✓";
	position: absolute;
	inset-inline-start: 0;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 7px;
	background: var(--purple);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
}

.cw-workshop > .aik-button {
	align-self: center;
	margin-top: auto;
}

@media (max-width: 860px) {
	.cw-workshops {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* The real photo melts into the page instead of sitting on it like a card (Hadar, 25.10.2026, on /ai-workshop/: "התמונה
   היא כאילו כרטיס והיא לא איכשהו מסתדרת יפה ברקע"). Wider, no white frame, no tilt, no shadow; its edges fade into the
   page color, so the class is part of the hero's background and the words sit above it. */
.aik-sales-stage.is-photo {
	width: min(1240px, calc(100% + 2 * var(--pad, 20px)));
	margin-top: clamp(-40px, -2vw, -12px);
}

.aik-sales-stage.is-photo .aik-photo > img:first-child {
	aspect-ratio: 21 / 9;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	transform: none;
	/* a soft rectangle, not a bubble: the sides and the top fade a little, the bottom a lot, into the next section */
	-webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent),
		linear-gradient(to bottom, transparent, #000 16%, #000 62%, transparent);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent),
		linear-gradient(to bottom, transparent, #000 16%, #000 62%, transparent);
	mask-composite: intersect;
}

.aik-sales-stage.is-photo .aik-photo .aik-photo-sticker {
	bottom: 14%;
	left: 9%;
	width: 11%;
	max-width: 140px;
}

@media (max-width: 760px) {
	.aik-sales-stage.is-photo {
		width: calc(100% + 2 * var(--pad, 16px));
		margin-top: 0;
		margin-bottom: -40px;
	}

	.aik-sales-stage.is-photo .aik-photo > img:first-child {
		aspect-ratio: 5 / 4;
		object-position: 30% 40%;
	}

	.aik-sales-stage.is-photo .aik-photo .aik-photo-sticker {
		left: 4%;
		width: 20%;
	}
}
