/*
 * Site skin (task F5): near-black surfaces, an amber glow and tight sans-serif
 * headings, on every page. It loads last
 * (inc/assets.php), so plain class selectors override the theme's navy and gold
 * styles. It changes the look and never the content: every text still comes from
 * the Customizer and NexAli Content. Remove this file and its enqueue to return to the
 * navy and gold site. Kept short because all theme CSS shares one size budget
 * (tools/build.mjs).
 */

/* Tokens: the header, footer and drawer take these on the homepage too */
body {
	--nx-bg: #08070d;
	--nx-bg-2: #08070d;
	--nx-navy: #0c0b14;
	--nx-indigo: #2a3263;
	--nx-gold: #ffcf23;
	--nx-gold-2: #ff8d3a;
	--nx-ivory: #fff;
	--nx-ivory-70: #fffb;
	--nx-line: #ffffff17;
	--nx-font-display: Inter, sans-serif;
	--nx-container: 1408px;
	--nx-radius: 16px;
	/* Headings follow the screen: phone, then tablet, then wide desktop (theme 1.3.3) */
	--nx-text-display: clamp(2rem, 1.35rem + 2.8vw, 3.75rem); /* 32-60px */
	--nx-text-h2: clamp(1.625rem, 1.2rem + 1.9vw, 2.75rem);   /* 26-44px */
	--nx-text-h3: clamp(1.1875rem, 1.1rem + .45vw, 1.5rem);   /* 19-24px */
	letter-spacing: -.025em;
}

.nx-section {
	padding-block: clamp(3.5rem, 7vw, 5rem);
}

.nx-hero,
.nx-founding,
.nx-cta-band {
	background: none;
}

/* Inner pages: amber glow and near-black panels in place of the navy ones */
.nx-page-hero {
	background: radial-gradient(60% 70% at 50% 0, #ff8d3a26, #0000 70%);
}

.nx-card,
.nx-course-start,
.nx-learn__col,
.nx-curriculum__section,
.nx-login,
.nx-toc {
	background: #0c0b14;
}

.nx-curriculum__section[open] {
	background: #151622;
}

.nx-course-hero__media::before {
	background: radial-gradient(closest-side, #ffa02833, #0000);
}

/* Headings: pale at the top, white at the foot */
.nx-main h1,
.nx-section-header h2,
.nx-cta-band__title,
.nx-certificate__title {
	font-weight: 600;
	letter-spacing: -.054em;
	line-height: 1.02;
	background: linear-gradient(#9c9c9c99, #ffffff9e 30%, #fff);
	-webkit-background-clip: text;
	color: transparent;
}

.nx-main h3 {
	font-weight: 600;
	letter-spacing: -.03em;
}

/* Section eyebrows become pills */
.nx-section-header .nx-eyebrow {
	display: inline-block;
	padding: .875rem 2.375rem;
	border: 1px solid #ffffff1a;
	border-radius: 99px;
	background: #ffffff0d;
	color: #fff;
	font-size: 1.125rem;
	font-weight: 600;
	letter-spacing: -.02em;
	text-transform: none;
}

.nx-paths__col .nx-eyebrow {
	color: #fff;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

/* Buttons */
.nx-btn--primary,
.nx-plan--highlighted .nx-plan__cta {
	border: 0;
	color: #0a0a0a;
	font-weight: 600;
	background: radial-gradient(circle at 20% 10%, #ffffff47, #0000 45%), linear-gradient(94deg, #ffcf23 20%, #ff8d3a 104%);
	box-shadow: inset 0 0 0 3px #fff6, 0 0 44px #ffa02857;
}

.nx-btn--secondary,
.nx-plan__cta,
.nx-main .nx-plan:not(.nx-plan--highlighted) .nx-plan__cta {
	border: 0;
	color: #fffc;
	font-weight: 600;
	background: #151622;
	box-shadow: inset 0 0 0 3px #fff2;
}

/* The Log In / My Account button (header and footer): an amber-edged pill that fills on hover */
/* Buttons one step smaller everywhere; the header's account button smaller still */
.nx-btn,
.nx-plan__cta {
	min-height: 44px;
	padding: .625rem 1.375rem;
	font-size: .9375rem;
}

.nx-header__account .nx-btn,
.nx-footer .nx-btn--inline {
	min-height: 38px;
	padding: .4375rem clamp(.75rem, .5rem + 1.5vw, 1.125rem);
	font-size: .875rem;
}

/* The wordmark: 20px tall on phones up to 24px on wide screens */
.nx-logo {
	height: clamp(1.25rem, 1.05rem + .7vw, 1.5rem);
}

.nx-course-hero__title {
	font-size: clamp(1.875rem, 1.3rem + 2.6vw, 3.25rem);
}

.nx-btn.nx-btn--account {
	border: 1.5px solid #0000;
	color: #ffcf6e;
	background: linear-gradient(#12121c, #12121c) padding-box, linear-gradient(94deg, #ffcf23, #ff8d3a) border-box;
	box-shadow: 0 0 28px -10px #ffa02899;
	transition: color .2s, background .2s, box-shadow .2s;
}

.nx-btn.nx-btn--account:hover {
	color: #0a0a0a;
	background: linear-gradient(94deg, #ffcf23, #ff8d3a) border-box;
	box-shadow: 0 0 36px -8px #ffa028b3;
}

/* Hero: text, media, button, trust line, then the pills as a strip */
.nx-hero {
	position: relative;
	overflow: hidden;
	padding-block: 2.5rem 0;
}

.nx-hero::before,
.nx-hero::after {
	content: "";
	position: absolute;
	/* 90px of padding keeps the blur inside the box, so the fade-out mask never cuts it */
	inset: -50px auto auto calc(-14% - 90px);
	box-sizing: border-box;
	width: calc(48% + 180px);
	height: 1000px;
	padding: 90px;
	background: conic-gradient(from 62deg at 0 50%, #0000 6deg, #ffb51f 22deg, #ff9426 40deg, #0000 62deg) content-box;
	mask: linear-gradient(#0000, #000 30%, #000 70%, #0000);
	filter: blur(38px);
}

.nx-hero::after {
	inset: -50px calc(-14% - 90px) auto auto;
	transform: scaleX(-1);
}

.nx-hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

/* The media moves up under the text; the rest keeps its order */
.nx-hero .nx-eyebrow,
.nx-hero__title,
.nx-hero__lead,
.nx-hero__media {
	order: -1;
}

.nx-hero .nx-eyebrow {
	color: #fffb;
	font-weight: 500;
	letter-spacing: .3em;
}

.nx-hero .nx-eyebrow::before,
.nx-hero .nx-eyebrow::after,
.nx-hero__media::before {
	display: none;
}

.nx-hero__title {
	max-width: 12em;
	font-size: clamp(2.125rem, 1.4rem + 3.4vw, 4rem);
}

.nx-hero__lead {
	max-width: 520px;
	color: #fffc;
	font-size: 1.125rem;
	font-weight: 500;
}

.nx-hero__media {
	width: 100%;
	max-width: 988px;
	margin-block: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem) 0;
}

.nx-hero__media .nx-video {
	border: 1px solid #ffffff1f;
	border-radius: 1.5rem;
	box-shadow: 0 0 0 8px #ffffff08, 0 48px 90px -36px #000, 0 0 90px -30px #ffa0284d;
}

/* The looping mp4 sits over its still image, which shows until the first frame */
.nx-video--loop video {
	background: none;
	object-fit: cover;
}

.nx-hero__actions {
	margin-top: 1.5rem;
}

.nx-hero__trust {
	margin-top: 1rem;
}

.nx-hero__pills {
	justify-content: center;
	max-width: 860px;
	margin: 2.5rem 0 0;
	padding: 1rem 2.25rem;
	border-radius: 44px 44px 0 0;
	background: #0d0e18;
}

.nx-hero__pills .nx-pill {
	border: 0;
	background: none;
	font-weight: 600;
}

/* Cards share one dark surface */
.nx-review,
.nx-step,
.nx-resource,
.nx-benefit,
.nx-compare__col,
.nx-win,
.nx-certificate,
.nx-plan {
	border: 1px solid var(--nx-line);
	background: #0c0b14;
	box-shadow: none;
}

.nx-benefit {
	border: 7px solid #ffffff12;
	border-radius: 25px;
	background: #d9d9d908;
	transition: border-color .5s, background .5s;
}

.nx-benefit:hover {
	border-color: #ffffff4d;
	background: #d9d9d90f;
}

.nx-hero__pills .nx-icon,
.nx-stars,
.nx-plan-chip__price {
	color: var(--nx-gold);
}

.nx-resource__icon,
.nx-benefit__icon,
.nx-paths__price,
.nx-win__result,
.nx-course-card__cat,
.nx-course-card__link,
.nx-founder::before,
.nx-plan__price {
	color: var(--nx-gold-2);
}

/* Reviews: one sideways strip of wide cards */
.nx-reviews {
	display: flex;
	gap: 2rem;
	overflow-x: auto;
	padding-bottom: 1rem;
	scrollbar-width: none;
}

.nx-reviews > * {
	flex: 0 0 min(772px, 86vw);
}

.nx-review {
	height: 100%;
	border-radius: 14px;
}

/* What: centred text */
.nx-what .nx-split {
	grid-template-columns: 1fr;
	justify-items: center;
	max-width: 760px;
	margin-inline: auto;
	text-align: center;
}

.nx-what .nx-split__body {
	align-items: center;
}

.nx-what .nx-eyebrow,
.nx-what .nx-btn {
	margin-inline: auto;
}

/* Plans teaser */
.nx-plan-chip {
	position: relative;
	border: 0;
	border-radius: 99px;
	background: #3a7fff0d;
	box-shadow: none;
}

.nx-plan-chips__item--highlighted .nx-plan-chip {
	background: #ffcf231a;
	box-shadow: none;
}

.nx-plan-chips__item--highlighted .nx-plan-chip::after {
	content: "";
	position: absolute;
	inset: auto 24px -3px;
	height: 4px;
	border-radius: 9px;
	background: linear-gradient(94deg, #ffcf23, #ff8d3a);
}

.nx-resource__icon,
.nx-benefit__icon {
	background: #ff9a351a;
}

/* Who: a lit grid of tiles */
.nx-who__visual {
	padding-top: 2rem;
}

.nx-who__visual::before {
	content: "";
	position: absolute;
	inset: -60px 0 auto;
	height: 200px;
	background: radial-gradient(#ff962857, #0000 68%);
}

.nx-icon-grid__tile {
	border: 1px solid #ffa032b3;
	border-radius: 0;
	color: #fff;
	background: #ff962814;
}

.nx-icon-grid > :nth-child(5) .nx-icon-grid__tile {
	color: #0a0a0a;
	background: linear-gradient(94deg, #ffcf23, #ff8d3a);
}

/* Compare and two paths */
.nx-compare__col {
	padding: clamp(1.75rem, 3.5vw, 3rem);
	border-radius: 35px;
}

.nx-compare__col--highlight {
	background: linear-gradient(#1a2146, #0c1024 24%);
}

.nx-compare__title {
	padding-bottom: 1.75rem;
	border-bottom: 1px solid var(--nx-line);
	font-size: var(--nx-text-h2);
	font-weight: 500;
	text-align: center;
}

.nx-compare__vs,
.nx-paths__vs {
	width: 80px;
	height: 80px;
	border: 1px solid #ffbe468c;
	border-radius: 18px;
	background: #0b0b10;
	box-shadow: 0 8px 24px #ff961e38;
}

/* Wins and certificate */
.nx-win {
	border-radius: 22px;
}

.nx-win__result {
	padding: 0;
	border: 0;
	background: none;
}

.home .nx-carousel__btn {
	border-color: #ffbb38;
	color: #fff;
	background: var(--nx-bg);
}

.nx-certificate {
	border-radius: 35px;
}

.nx-certificate__band {
	background: #02040ea6;
}

.nx-certificate__pills .nx-pill {
	padding: 1rem 2rem;
	border: 0;
	color: #fff;
	font-weight: 600;
	background: #ffffff1a;
}

/* Why now: no card frame. Courses: a dark panel that lightens on hover. */
.nx-why,
.nx-founder {
	background: none;
	box-shadow: none;
}

.nx-course-card,
.nx-post-card {
	border: 0;
	border-radius: 2px;
	background: #0c0b14;
	box-shadow: none;
	transition: background .3s;
}

.nx-course-card:hover,
.nx-post-card:hover {
	background: #171d27;
}

.nx-course-card__title {
	color: #fffb;
}

.nx-founder {
	border: 0;
	color: #fff;
}

/* Benefit checklists: the tick sits inside its pill */
.nx-benefit .nx-checklist {
	gap: .25rem;
}

.nx-benefit .nx-checklist > li {
	width: fit-content;
	margin-block: .25rem;
	padding: .75rem 1.875rem .75rem 3.25rem;
	border-radius: 99px;
	background: #1b1c28;
}

.nx-benefit .nx-checklist > li::before {
	top: .8rem;
	left: 1.25rem;
}

/* Plans: dark cards, the highlighted one lit */
.nx-plan {
	border-radius: 8px;
	color: #fffb;
}

.nx-plan__features {
	border-color: var(--nx-line);
}

.nx-plan__features > li::before {
	background: var(--nx-gold);
}

.nx-plan__name,
.nx-plan__desc,
.nx-plan__features li {
	color: #fffb;
}

.nx-plan__price span,
.nx-plan__period {
	color: #fff8;
}

.nx-plan--highlighted {
	border-color: #ffbe468c;
	background: #14151f;
}

/* FAQ and footer */
.nx-faq {
	max-width: 856px;
}

.nx-faq__item {
	border: 0;
	background: #181a28;
}

/* The bundled navy artwork goes neutral. Uploaded pictures keep their colour, except in steps and why-now (below). */
.nx-main img[src*="/assets/img/"] {
	filter: grayscale(.85) brightness(.72);
}

/* Step and why-now pictures stay grey until hover */
.nx-main .nx-step img,
.nx-main .nx-why img {
	filter: grayscale(1);
	transition: filter .3s;
}

.nx-main .nx-step:hover img,
.nx-main .nx-why:hover img {
	filter: none;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.nx-step {
		transition: scale .3s;
	}

	.nx-step:hover {
		scale: 1.05;
	}
}

@media (min-width: 760px) {
	/* Main buttons a little larger than the rest on wide screens, not oversized */
	.nx-main .nx-btn--primary {
		min-width: 220px;
		min-height: 52px;
		padding-inline: 2rem;
		font-size: 1.0625rem;
	}

	.nx-main .nx-btn--secondary {
		min-height: 52px;
		padding-inline: 1.75rem;
		font-size: 1.0625rem;
	}
}

@media (min-width: 960px) {
	/* Why now: rows that alternate sides. Benefits: wide rows. */
	.nx-grid-3:has(> .nx-why),
	.nx-grid-3:has(.nx-benefit) {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.nx-grid-3:has(.nx-benefit) {
		max-width: 1170px;
		margin-inline: auto;
		gap: 1.125rem;
	}

	.nx-why {
		display: grid;
		grid-template-columns: minmax(0, 542px) minmax(0, 1fr);
		gap: 5rem;
		align-items: stretch;
		border: 0;
	}

	.nx-why__media {
		order: 2;
		border: 1px solid var(--nx-line);
		border-radius: 35px;
		overflow: hidden;
	}

	.nx-why__body {
		justify-content: center;
		padding: 2.5rem 4.25rem;
		border-left: 1px solid #ffcf23;
		background: linear-gradient(90deg, #fe9b350d, #0000);
	}

	.home .nx-why__title {
		font-size: clamp(2.25rem, 3.2vw, 2.875rem);
		line-height: 1.02;
	}

	.nx-why:nth-child(even) {
		grid-template-columns: minmax(0, 1fr) minmax(0, 542px);
	}

	.nx-why:nth-child(even) .nx-why__media {
		order: 0;
	}

	.nx-courses {
		gap: 2px;
		max-width: 1280px;
		margin-inline: auto;
	}

	/* Four courses fill one row, so no card sits alone */
	.nx-courses:has(> li:nth-child(4):last-child) {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.nx-benefit {
		display: grid;
		grid-template-columns: auto 1fr;
		column-gap: 2rem;
		padding: 2.5rem 3rem;
	}

	.nx-benefit .nx-checklist {
		grid-column: 2;
	}
}
