/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/

/* ----------------------------------------------------------------
	1. Brand tokens
	Extends the palette already defined in css/saas-2.css. The colour
	values below are pulled from the existing GLEAM Accelerator artwork (the
	quarter-arc motif and the dark illustration fills) so the new
	sections stay inside the identity that was already in place.
-----------------------------------------------------------------*/

:root {
	--onyx-lavender: #dcd7f9;
	--onyx-lavender-50: #f4f1fe;
	--onyx-lavender-100: #ede9fb;
	--onyx-ink: #3a2a86;
	--onyx-yellow: #ffd301;
	--onyx-red: #ee2253;
	--onyx-shot-shadow: 0 30px 70px -30px rgba(33, 43, 80, .35);

	/* GLEAM badge colours — one per principle. Grade-Level owns both
	   the G and the L, so those two badges share a colour. */
	--onyx-gleam-gl: #fcbf49;
	--onyx-gleam-e: #e8732b;
	--onyx-gleam-a: #a781ff;
	--onyx-gleam-m: #4c9a9a;

	/* The stock Canvas theme points this at a rainbow blob image that
	   never resolved (wrong relative path) and is off-brand for the GLEAM Accelerator.
	   Disabled explicitly so no phantom request is made. */
	--cnvs-body-image: none;
}


/* ----------------------------------------------------------------
	2. Header
	Four nav items sit comfortably at the stock menu spacing from
	css/saas-2.css, so only the two header buttons need a nudge.
-----------------------------------------------------------------*/

.header-misc .button {
	white-space: nowrap;
}

/* Mobile header. The stock rule sizes the logo to the full header
   height (#header-wrap #logo img { height: var(--cnvs-header-height) }
   = 100px), and at the artwork's 1105x486 that renders 227px wide —
   most of a phone's width before the hamburger is even placed. The
   logo is cut back here, and the Log in button moves out of
   .header-misc and into the open menu (see the d-lg-none item in the
   markup) so the row only has to carry the logo and the trigger.
   991.98px is the menu breakpoint the theme's JS uses. */
@media (max-width: 991.98px) {

	#header-wrap #logo img {
		height: 64px;
	}

	/* Sits full width under the nav links, inset to line up with the
	   text of the links above it. */
	.onyx-menu-login {
		display: flex;
		justify-content: center;
		margin: 1rem var(--cnvs-primary-menu-padding-x, 20px) .5rem;
	}
}


/* ----------------------------------------------------------------
	3. Hero layer stack
	The six stacked hero images are absolutely positioned, so the
	wrapper has to reserve the space itself. The original markup did
	that with a hard-coded 700x500px inline style, which overflowed
	the viewport on phones; an aspect ratio keeps the same proportions
	without breaking out of the grid column.
-----------------------------------------------------------------*/

.onyx-hero-stack {
	position: relative;
	width: 100%;
	max-width: 700px;
	margin-inline: auto;
	aspect-ratio: 7 / 5;
}

.onyx-hero-stack img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: auto;
}


/* ----------------------------------------------------------------
	4. Section surfaces
	Three tints plus one dark surface give the page a rhythm without
	introducing colours that are not already in the brand.
-----------------------------------------------------------------*/

.onyx-tint {
	background-color: var(--onyx-lavender-50);
}

.onyx-band {
	background-color: var(--onyx-lavender);
}

.onyx-ink {
	background-color: var(--onyx-ink);
}


/* ----------------------------------------------------------------
	5. Eyebrow label
-----------------------------------------------------------------*/

.onyx-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	margin-bottom: 1rem;
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--cnvs-themecolor);
}

.onyx-eyebrow::before {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background-image: var(--cnvs-gradient-color);
}

.dark .onyx-eyebrow,
.onyx-ink .onyx-eyebrow {
	color: var(--onyx-yellow);
}

.dark .onyx-eyebrow::before,
.onyx-ink .onyx-eyebrow::before {
	background-image: none;
	background-color: var(--onyx-yellow);
}


/* ----------------------------------------------------------------
	6. Product visuals
	Shared treatment for real screenshots and for the placeholders
	that stand in until the new screens are captured.
-----------------------------------------------------------------*/

.onyx-shot {
	border-radius: var(--cnvs-card-rounded);
	box-shadow: var(--onyx-shot-shadow);
	overflow: hidden;
}

.onyx-shot img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: inherit;
}

/* Placeholders carry no shadow so they never read as a finished screen. */
.onyx-shot-placeholder {
	box-shadow: none;
}


/* ----------------------------------------------------------------
	7. Workflow cards
	The two entry points into the platform: Lesson Generation and
	Lesson Evaluator. Same shell, so they read as siblings.
-----------------------------------------------------------------*/

.onyx-workflow {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 2.5rem;
	border-radius: var(--cnvs-card-rounded);
	background-color: var(--cnvs-contrast-0);
	border: 1px solid var(--cnvs-contrast-200);
	overflow: hidden;
	transition: transform .35s cubic-bezier(.4, 0, .2, 1), box-shadow .35s cubic-bezier(.4, 0, .2, 1);
}

@media (min-width: 992px) {
	.onyx-workflow {
		padding: 3rem;
	}
}

.onyx-workflow:hover {
	transform: translateY(-6px);
	box-shadow: 0 26px 60px -28px rgba(33, 43, 80, .4);
}

.onyx-workflow-tag {
	display: inline-block;
	align-self: flex-start;
	margin-bottom: 1.25rem;
	padding: .35rem 1rem;
	border-radius: var(--bs-border-radius-pill);
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	background-color: var(--onyx-lavender);
	color: #3a2a86;
}

.onyx-workflow-tag.is-accent {
	background-color: var(--onyx-yellow);
	color: var(--onyx-ink);
}

.onyx-workflow-shot {
	margin-top: auto;
	padding-top: 2rem;
}

.onyx-workflow-shot img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 16px;
}


/* ----------------------------------------------------------------
	8. Numbered steps
	Reuses the monospace counter styling already established by the
	swiper tab links in css/saas-2.css.
-----------------------------------------------------------------*/

.onyx-steps {
	counter-reset: onyx-step;
	list-style: none;
	padding: 0;
	margin: 0;
}

.onyx-step {
	counter-increment: onyx-step;
	position: relative;
	padding: 1.75rem 0;
	border-top: 1px solid var(--cnvs-contrast-300);
}

.onyx-step:last-child {
	border-bottom: 1px solid var(--cnvs-contrast-300);
}

.onyx-step-num {
	display: block;
	margin-bottom: .5rem;
	font-family: monospace;
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--cnvs-themecolor);
	line-height: 1;
}

.onyx-step-num::before {
	content: "0" counter(onyx-step);
}

.onyx-step h4 {
	margin-bottom: .5rem;
}

.onyx-step p {
	margin-bottom: 0;
	opacity: .8;
}

@media (min-width: 992px) {
	.onyx-sticky {
		position: sticky;
		top: 130px;
	}
}


/* ----------------------------------------------------------------
	9. GLEAM principles
-----------------------------------------------------------------*/

.onyx-gleam {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 2rem;
	border-radius: var(--cnvs-card-rounded);
	background-color: var(--cnvs-contrast-0);
	transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}

.onyx-gleam:hover {
	transform: translateY(-5px);
}

/* Grade-Level contributes both the G and the L of GLEAM, so that card
   carries two badges; the other three carry one each. */
.onyx-gleam-letters {
	display: flex;
	gap: .5rem;
	margin-bottom: 1.25rem;
}

.onyx-gleam-letter {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background-color: var(--onyx-gleam-badge, var(--cnvs-themecolor));
	/* Dark type on all four: every badge colour is a mid tone, so white
	   would drop below the 3:1 large-text minimum on A and sit on the
	   edge of it on E. */
	color: #ffffff;
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1;
}

/* One colour per GLEAM principle. Scoped to the grid columns, not to
   .onyx-gleam itself, because each card is the only child of its own
   column. G and L share a colour — they are one principle. */
.onyx-gleam-grid > *:nth-child(1) {
	--onyx-gleam-badge: var(--onyx-gleam-gl);
}

.onyx-gleam-grid > *:nth-child(2) {
	--onyx-gleam-badge: var(--onyx-gleam-e);
}

.onyx-gleam-grid > *:nth-child(3) {
	--onyx-gleam-badge: var(--onyx-gleam-a);
}

.onyx-gleam-grid > *:nth-child(4) {
	--onyx-gleam-badge: var(--onyx-gleam-m);
}


/* ----------------------------------------------------------------
	10. Differentiator cards + capability pillars
-----------------------------------------------------------------*/

.onyx-feature {
	height: 100%;
	padding: 2rem;
	border-radius: var(--cnvs-card-rounded);
	background-color: var(--cnvs-contrast-0);
	border: 1px solid var(--cnvs-contrast-200);
	transition: border-color .3s ease, transform .3s cubic-bezier(.4, 0, .2, 1);
}

.onyx-feature:hover {
	transform: translateY(-4px);
	border-color: var(--cnvs-themecolor);
}

.onyx-feature h4 {
	margin-bottom: .625rem;
}

.onyx-feature p {
	margin-bottom: 0;
	opacity: .8;
}

.onyx-feature-icon {
	display: block;
	margin-bottom: 1.125rem;
	font-size: 1.5rem;
	color: var(--cnvs-themecolor);
}

.onyx-pillar {
	padding: 1.5rem 0;
	border-top: 1px solid rgba(255, 255, 255, .18);
}

.onyx-pillar:first-child {
	border-top: 0;
	padding-top: 0;
}

.onyx-pillar h4 {
	margin-bottom: .375rem;
}

.onyx-pillar p {
	margin-bottom: 0;
	opacity: .75;
}


/* ----------------------------------------------------------------
	11. Source chips (bring your own context)
-----------------------------------------------------------------*/

.onyx-chips {
	display: flex;
	flex-wrap: wrap;
	gap: .625rem;
	padding: 0;
	margin: 0 0 2rem;
	list-style: none;
}

.onyx-chip {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .55rem 1.125rem;
	border-radius: var(--bs-border-radius-pill);
	background-color: var(--cnvs-contrast-0);
	border: 1px solid var(--cnvs-contrast-300);
	font-size: .9375rem;
	font-weight: 500;
	line-height: 1.2;
}

.onyx-chip i {
	color: var(--cnvs-themecolor);
}


/* ----------------------------------------------------------------
	12. Statement type
-----------------------------------------------------------------*/

.onyx-statement {
	font-size: calc(1.4rem + 1.1vw);
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -.02em;
	margin-bottom: 0;
}

.onyx-kicker {
	font-size: 1.125rem;
	font-weight: 700;
}


/* ----------------------------------------------------------------
	13. Motion
	The hero layers keep the existing float animation; honour a user's
	reduced-motion preference across the whole page.
-----------------------------------------------------------------*/

@media (prefers-reduced-motion: reduce) {

	.float-anim,
	.active .swiper-pagination-progress .swiper-pagination-bar-active {
		animation: none !important;
	}

	.onyx-workflow,
	.onyx-gleam,
	.onyx-feature {
		transition: none;
	}

	.onyx-workflow:hover,
	.onyx-gleam:hover,
	.onyx-feature:hover {
		transform: none;
	}
}
