/* Magna Education theme
   Tokens ▸ base ▸ layout ▸ header/footer ▸ components ▸ sections ▸ pages */

/* ---------- Tokens ---------- */
:root {
	--ink: #0e1b2c;
	--ink-soft: #3d4c60;
	--paper: #ffffff;
	--mist: #f2f7fd;
	--line: #dde9f7;
	--sky: #8abffe;
	--sky-soft: #e3efff;
	--cobalt: #1d5bc9;
	--cobalt-deep: #16489f;
	--gold: #f5b841;
	--good: #1d9e5f;

	--font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-display: "Roboto Slab", "Georgia", serif;

	--text-sm: 0.875rem;
	--text-base: 1.0625rem;
	--text-lg: 1.1875rem;

	--radius: 14px;
	--radius-lg: 22px;
	--shadow: 0 10px 30px rgba(14, 27, 44, 0.08);
	--shadow-soft: 0 4px 14px rgba(14, 27, 44, 0.06);

	--container: 74rem;
	--section-pad: clamp(4rem, 9vw, 7rem);
	--header-h: 4.5rem;
}

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
	font-family: "Roboto";
	src: url("../fonts/roboto-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Roboto Slab";
	src: url("../fonts/roboto-slab-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
}
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--text-base);
	line-height: 1.65;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}
img {
	max-width: 100%;
	height: auto;
}
h1,
h2,
h3,
h4 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.15;
	margin: 0 0 0.6em;
	text-wrap: balance;
}
h1 {
	font-size: clamp(2.35rem, 5.2vw, 3.4rem);
}
h2 {
	font-size: clamp(1.85rem, 3.6vw, 2.6rem);
}
h3 {
	font-size: clamp(1.2rem, 2vw, 1.45rem);
}
p {
	margin: 0 0 1em;
}
a {
	color: var(--cobalt);
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}
ul {
	padding-left: 1.2em;
}
address {
	font-style: normal;
	display: inline;
}
:focus-visible {
	outline: 2px solid var(--cobalt);
	outline-offset: 3px;
	border-radius: 4px;
}
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--ink);
	color: #fff;
	padding: 0.6rem 1rem;
	z-index: 100;
}
.skip-link:focus {
	left: 0.5rem;
	top: 0.5rem;
}

/* ---------- Layout ---------- */
.container {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: clamp(1.1rem, 4vw, 2rem);
}
.section {
	padding-block: var(--section-pad);
}
.section--mist {
	background: var(--mist);
}
.section--ink {
	background: var(--ink);
	color: #e8f0fb;
}
.section--ink h2,
.section--ink h3 {
	color: #fff;
}

/* Section headings */
.section-head {
	max-width: 46rem;
	margin-bottom: clamp(2.2rem, 5vw, 3.5rem);
}
.section-head--center {
	margin-inline: auto;
	text-align: center;
}
.eyebrow {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--cobalt);
	margin-bottom: 0.9em;
}
.section--ink .eyebrow {
	color: var(--sky);
}
.section-title {
	position: relative;
	display: inline-block;
	margin-bottom: 0.4em;
}
.pen-stroke {
	display: block;
	width: min(11rem, 55%);
	height: 0.55rem;
	margin-top: 0.35rem;
	color: var(--sky);
}
.section-head--center .pen-stroke {
	margin-inline: auto;
}
.section-lede {
	color: var(--ink-soft);
	font-size: var(--text-lg);
	margin-bottom: 0;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1;
	padding: 0.9rem 1.5rem;
	border-radius: 999px;
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:hover {
	text-decoration: none;
	transform: translateY(-1px);
}
.btn--solid {
	background: var(--cobalt);
	color: #fff;
}
.btn--solid:hover {
	background: var(--cobalt-deep);
	color: #fff;
}
.btn--ghost {
	border-color: var(--line);
	color: var(--ink);
	background: transparent;
}
.btn--ghost:hover {
	border-color: var(--cobalt);
	color: var(--cobalt);
}
.btn--light {
	background: #fff;
	color: var(--ink);
}
.btn--light:hover {
	background: var(--sky-soft);
	color: var(--ink);
}
.btn svg {
	flex: none;
}

/* ---------- Header (solid navy bar, matches homepage design) ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #0b0f1e;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	font-family: "Inter", var(--font-body);
}
.nav {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 0;
}
.site-logo {
	flex: none;
	display: inline-flex;
	align-items: center;
}
.site-logo img {
	height: 30px;
	width: auto;
	display: block;
}
.nav-menu {
	display: flex;
	align-items: center;
	gap: 22px;
	font-size: 15px;
	font-weight: 500;
}
.nav-link {
	color: #b9bfd6;
	cursor: pointer;
	transition: color 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav-link:hover {
	color: #fff;
}
.nav-auth {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-left: 4px;
}

/* Header buttons (self-contained so they render on every page, overriding .btn) */
.site-header .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 40px;
	padding: 0 18px;
	border-radius: 8px;
	border: 1px solid transparent;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	transition: background 150ms cubic-bezier(0.2, 0.8, 0.2, 1), color 150ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 150ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.site-header .btn-teal {
	background: #43e8d8;
	color: #002721;
}
.site-header .btn-teal:hover {
	background: #5ff0e2;
	color: #002721;
	transform: translateY(-1px);
}
.site-header .btn-outline-light {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.32);
	font-weight: 600;
}
.site-header .btn-outline-light:hover {
	border-color: rgba(255, 255, 255, 0.6);
	color: #fff;
}

/* Dropdowns (native <details>; click to open, closed on outside interaction by JS) */
.dropdown {
	position: relative;
}
.dropdown summary {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 7px;
}
.dropdown summary::-webkit-details-marker {
	display: none;
}
.dropdown summary::after {
	content: "";
	width: 6px;
	height: 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	margin-top: -3px;
	transition: transform 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dropdown[open] summary::after {
	transform: rotate(-135deg);
	margin-top: 2px;
}
.dropdown-panel {
	position: absolute;
	top: calc(100% + 14px);
	left: 50%;
	transform: translateX(-50%);
	background: #0d1226;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 12px;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 220px;
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
	z-index: 70;
}
.dropdown-panel a {
	display: block;
	color: #b9bfd6;
	font-size: 14px;
	font-weight: 500;
	padding: 6px 8px;
	border-radius: 6px;
	white-space: nowrap;
}
.dropdown-panel a:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.07);
	text-decoration: none;
}
.dropdown-wide {
	display: grid;
	grid-template-columns: repeat(3, max-content);
	gap: 18px 32px;
	min-width: 0;
}
.dd-group {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.dd-title {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #8a92c4;
	padding: 0 8px 4px;
}

/* Mobile nav */
.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	background: none;
	border: 0;
	padding: 10px;
	cursor: pointer;
}
.nav-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: #fff;
	border-radius: 2px;
}
.nav-backdrop {
	display: none;
}
body.nav-locked {
	overflow: hidden;
}
@media (max-width: 1120px) {
	.nav-toggle {
		display: flex;
		position: relative;
		z-index: 60; /* above .nav-backdrop (55) so the toggle stays tappable to close */
	}
	.nav-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(11, 15, 30, 0.6);
		z-index: 55;
		opacity: 0;
		pointer-events: none;
		transition: opacity 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
	}
	.nav.open .nav-backdrop {
		opacity: 1;
		pointer-events: auto;
	}
	.nav-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		z-index: 65;
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
		background: #0d1226;
		border: 1px solid rgba(255, 255, 255, 0.12);
		border-radius: 12px;
		padding: 14px;
		box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
		max-height: calc(100vh - 90px);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}
	.nav.open .nav-menu {
		display: flex;
	}
	.nav-link {
		padding: 10px 8px;
		border-radius: 8px;
	}
	.nav-link:hover {
		background: rgba(255, 255, 255, 0.06);
	}
	.dropdown summary::after {
		margin-left: auto;
	}
	.dropdown-panel,
	.dropdown-wide {
		position: static;
		transform: none;
		display: flex;
		flex-direction: column;
		gap: 2px;
		min-width: 0;
		box-shadow: none;
		border: 0;
		background: rgba(255, 255, 255, 0.03);
		padding: 6px 8px 10px;
	}
	.dropdown-panel a {
		white-space: normal;
	}
	.nav-auth {
		margin: 10px 0 0;
	}
	.nav-auth .btn {
		flex: 1;
	}
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, var(--mist) 0%, #fff 100%);
	padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.hero__grid {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}
.hero__copy .eyebrow {
	margin-bottom: 1.1em;
}
.hero__title em {
	font-style: normal;
	color: var(--cobalt);
	position: relative;
	white-space: nowrap;
}
.hero__title .pen-stroke {
	position: absolute;
	left: 0;
	bottom: -0.28em;
	width: 100%;
	margin: 0;
}
.hero__lede {
	font-size: var(--text-lg);
	color: var(--ink-soft);
	max-width: 34rem;
	margin-block: 1.2rem 1.8rem;
}
.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	align-items: center;
}
.hero__note {
	font-size: var(--text-sm);
	color: var(--ink-soft);
	margin-top: 0.9rem;
}

/* Graded-answer card (signature) */
.feedback-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	padding: 1.6rem 1.7rem 1.4rem;
	max-width: 30rem;
	margin-inline: auto;
}
.feedback-card__meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink-soft);
	margin-bottom: 1rem;
}
.feedback-card__score {
	background: var(--sky-soft);
	color: var(--cobalt-deep);
	border-radius: 999px;
	padding: 0.35rem 0.8rem;
	letter-spacing: 0.04em;
}
.feedback-card__q {
	font-family: var(--font-display);
	font-size: 1.02rem;
	font-weight: 600;
	margin-bottom: 0.8rem;
}
.feedback-card__a {
	font-size: 0.98rem;
	color: var(--ink-soft);
	margin-bottom: 1.1rem;
}
.feedback-card__a mark {
	background: linear-gradient(transparent 62%, var(--sky) 62%);
	color: inherit;
	padding: 0 0.05em;
}
.feedback-note {
	display: flex;
	gap: 0.7rem;
	align-items: flex-start;
	background: var(--mist);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 0.85rem 1rem;
	font-size: 0.92rem;
}
.feedback-note__badge {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.7rem;
	height: 1.7rem;
	border-radius: 50%;
	background: var(--good);
	color: #fff;
}
.feedback-note strong {
	display: block;
}
.feedback-card__foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 1.1rem;
	font-size: 0.85rem;
	color: var(--ink-soft);
}
.feedback-card__foot span {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

/* Award strip */
.award-strip {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
	text-align: left;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-soft);
	padding: 1.1rem 1.6rem;
	max-width: 44rem;
	margin: clamp(2.5rem, 6vw, 4rem) auto 0;
}
.award-strip__medal {
	flex: none;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: color-mix(in srgb, var(--gold) 22%, #fff);
	color: #a06b00;
	font-size: 1.4rem;
}
.award-strip p {
	margin: 0;
	font-size: 0.95rem;
	color: var(--ink-soft);
}
.award-strip strong {
	display: block;
	color: var(--ink);
	font-size: 1.02rem;
}

/* ---------- Cards & grids ---------- */
.grid {
	display: grid;
	gap: 1.4rem;
}
.grid--3 {
	grid-template-columns: repeat(3, 1fr);
}
.grid--2 {
	grid-template-columns: repeat(2, 1fr);
}
.grid--4 {
	grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 64rem) {
	.grid--3,
	.grid--4 {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 40rem) {
	.grid--2,
	.grid--3,
	.grid--4 {
		grid-template-columns: 1fr;
	}
}
.card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.7rem 1.6rem;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover {
	box-shadow: var(--shadow);
	transform: translateY(-3px);
}
.card h3 {
	margin-bottom: 0.45em;
}
.card p {
	color: var(--ink-soft);
	margin: 0;
	font-size: 0.98rem;
}
.card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.8rem;
	height: 2.8rem;
	border-radius: 12px;
	background: var(--sky-soft);
	color: var(--cobalt);
	margin-bottom: 1.1rem;
}
.card--flat:hover {
	box-shadow: none;
	transform: none;
}

/* Split feature rows */
.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}
.split + .split {
	margin-top: clamp(3rem, 7vw, 5.5rem);
}
.split__media img {
	border-radius: var(--radius-lg);
	border: 1px solid var(--line);
	box-shadow: var(--shadow);
}
.split--rev .split__media {
	order: 2;
}
.split h3 {
	font-size: clamp(1.45rem, 2.6vw, 1.9rem);
}
.split p {
	color: var(--ink-soft);
}
.split ul {
	color: var(--ink-soft);
	padding-left: 0;
	list-style: none;
}
.split ul li {
	position: relative;
	padding-left: 1.9rem;
	margin-bottom: 0.7rem;
}
.split ul li svg {
	position: absolute;
	left: 0;
	top: 0.22em;
	color: var(--good);
}
@media (max-width: 52rem) {
	.split {
		grid-template-columns: 1fr;
	}
	.split--rev .split__media {
		order: 0;
	}
	.hero__grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Course catalog ---------- */
.course-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.4rem;
}
@media (max-width: 64rem) {
	.course-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 40rem) {
	.course-grid {
		grid-template-columns: 1fr;
	}
}
.course-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.5rem;
	transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.course-card:hover {
	box-shadow: var(--shadow);
	transform: translateY(-3px);
	border-color: var(--sky);
	text-decoration: none;
}
.course-card__cat {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--cobalt);
	margin-bottom: 0.55rem;
}
.course-card h3 {
	color: var(--ink);
	margin-bottom: 0.4em;
}
.course-card p {
	color: var(--ink-soft);
	font-size: 0.95rem;
	margin: 0 0 1.1rem;
	flex: 1;
}
.course-card__more {
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--cobalt);
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

/* Score pills (course hero stats) */
.stat-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	margin: 1.4rem 0;
}
.stat-pill {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 0.5rem 1.1rem;
	font-size: 0.95rem;
	font-weight: 600;
	box-shadow: var(--shadow-soft);
}
.stat-pill strong {
	color: var(--cobalt);
	margin-right: 0.3rem;
}

/* Curriculum accordion */
.accordion {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	overflow: hidden;
}
.accordion__item + .accordion__item {
	border-top: 1px solid var(--line);
}
.accordion__toggle {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	background: none;
	border: 0;
	font: inherit;
	font-weight: 600;
	font-size: 1.05rem;
	text-align: left;
	color: var(--ink);
	padding: 1.15rem 1.4rem;
	cursor: pointer;
}
.accordion__toggle:hover {
	background: var(--mist);
}
.accordion__toggle svg {
	flex: none;
	color: var(--cobalt);
	transition: transform 0.2s ease;
}
.accordion__toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}
.accordion__meta {
	display: block;
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--ink-soft);
	margin-top: 0.15rem;
}
.accordion__panel {
	display: none;
	padding: 0 1.4rem 1.3rem;
}
.accordion__panel.is-open {
	display: block;
}
.accordion__panel ul {
	columns: 2;
	column-gap: 2.5rem;
	list-style: none;
	padding: 0;
	margin: 0;
	color: var(--ink-soft);
	font-size: 0.95rem;
}
.accordion__panel li {
	break-inside: avoid;
	padding: 0.28rem 0;
}
.accordion__panel p {
	color: var(--ink-soft);
	font-size: 0.98rem;
}
@media (max-width: 40rem) {
	.accordion__panel ul {
		columns: 1;
	}
}

/* ---------- Testimonials ---------- */
.quote-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.4rem;
}
@media (max-width: 52rem) {
	.quote-grid {
		grid-template-columns: 1fr;
	}
}
.quote-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.7rem;
	display: flex;
	flex-direction: column;
}
.quote-card blockquote {
	margin: 0 0 1.2rem;
	flex: 1;
	color: var(--ink-soft);
	font-size: 1rem;
}
.quote-card blockquote::before {
	content: "“";
	display: block;
	font-family: var(--font-display);
	font-size: 2.6rem;
	line-height: 0.6;
	color: var(--sky);
	margin-bottom: 0.55rem;
}
.quote-card figcaption strong {
	display: block;
}
.quote-card figcaption span {
	font-size: 0.88rem;
	color: var(--ink-soft);
}
.quote-card__stars {
	color: var(--gold);
	letter-spacing: 0.15em;
	margin-bottom: 0.6rem;
	font-size: 0.95rem;
}

/* ---------- CTA band ---------- */
.cta-band {
	background: var(--ink);
	color: #dce8f8;
	border-radius: var(--radius-lg);
	padding: clamp(2.5rem, 6vw, 4rem);
	text-align: center;
	position: relative;
	overflow: hidden;
}
.cta-band::after {
	content: "";
	position: absolute;
	inset: auto -12% -55% -12%;
	height: 75%;
	background: radial-gradient(closest-side, rgba(138, 191, 254, 0.28), transparent);
	pointer-events: none;
}
.cta-band h2 {
	color: #fff;
}
.cta-band p {
	max-width: 42rem;
	margin-inline: auto;
	color: #b9cbe4;
}
.cta-band .btn {
	margin-top: 1.4rem;
}

/* ---------- Pricing ---------- */
.billing-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 0.3rem;
	margin-bottom: 0.9rem;
}
.billing-toggle button {
	font: inherit;
	font-weight: 600;
	font-size: 0.95rem;
	border: 0;
	background: none;
	color: var(--ink-soft);
	border-radius: 999px;
	padding: 0.55rem 1.3rem;
	cursor: pointer;
}
.billing-toggle button[aria-pressed="true"] {
	background: var(--cobalt);
	color: #fff;
}
.billing-note {
	font-size: var(--text-sm);
	color: var(--good);
	font-weight: 600;
	margin-bottom: 2rem;
}
.price-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 24rem));
	justify-content: center;
	gap: 1.6rem;
	align-items: stretch;
}
@media (max-width: 52rem) {
	.price-grid {
		grid-template-columns: 1fr;
	}
}
.price-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 2rem 1.9rem;
	display: flex;
	flex-direction: column;
	text-align: left;
}
.price-card--featured {
	border-color: var(--cobalt);
	border-width: 2px;
	box-shadow: var(--shadow);
	position: relative;
}
.price-card__flag {
	position: absolute;
	top: -0.85rem;
	right: 1.4rem;
	background: var(--cobalt);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	border-radius: 999px;
	padding: 0.3rem 0.85rem;
}
.price-card h3 {
	font-size: 1.5rem;
	margin-bottom: 0.3em;
}
.price-card__desc {
	color: var(--ink-soft);
	font-size: 0.95rem;
	min-height: 4.4em;
}
.price-card__price {
	font-family: var(--font-display);
	font-size: 2.6rem;
	font-weight: 700;
	line-height: 1;
	margin: 1rem 0 0.2rem;
}
.price-card__price small {
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 500;
	color: var(--ink-soft);
}
.price-card__cycle {
	font-size: 0.88rem;
	color: var(--ink-soft);
	min-height: 1.4em;
	margin-bottom: 1.3rem;
}
.price-card ul {
	list-style: none;
	padding: 0;
	margin: 0 0 1.8rem;
	flex: 1;
}
.price-card li {
	position: relative;
	padding: 0.42rem 0 0.42rem 1.9rem;
	font-size: 0.97rem;
	color: var(--ink-soft);
}
.price-card li svg {
	position: absolute;
	left: 0;
	top: 0.55em;
	color: var(--good);
}
.price-card li.is-na {
	color: #9db0c6;
}
.price-card li.is-na svg {
	color: #c3d2e4;
}
.price-card .btn {
	justify-content: center;
}
.price-footnote {
	max-width: 52rem;
	margin: 2.2rem auto 0;
	font-size: 0.85rem;
	color: var(--ink-soft);
	text-align: center;
}

/* ---------- Blog ---------- */
.post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.6rem;
}
@media (max-width: 64rem) {
	.post-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 40rem) {
	.post-grid {
		grid-template-columns: 1fr;
	}
}
.post-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.post-card:hover {
	box-shadow: var(--shadow);
	transform: translateY(-3px);
}
.post-card__thumb {
	aspect-ratio: 16 / 9;
	background: var(--sky-soft);
	display: block;
}
.post-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.post-card__body {
	padding: 1.4rem 1.5rem 1.6rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.post-card__date {
	font-size: 0.82rem;
	color: var(--ink-soft);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 0.5rem;
}
.post-card h2,
.post-card h3 {
	font-size: 1.25rem;
	margin-bottom: 0.5em;
}
.post-card h2 a,
.post-card h3 a {
	color: var(--ink);
}
.post-card p {
	color: var(--ink-soft);
	font-size: 0.95rem;
	flex: 1;
}

/* Single post */
.post-hero {
	background: var(--mist);
	padding-block: clamp(3rem, 7vw, 5rem);
	text-align: center;
}
.post-hero__meta {
	color: var(--ink-soft);
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}
.prose {
	max-width: 44rem;
	margin-inline: auto;
}
.prose img {
	border-radius: var(--radius);
}
.prose h2 {
	font-size: 1.65rem;
	margin-top: 1.8em;
}
.prose h3 {
	margin-top: 1.5em;
}
.prose li {
	margin-bottom: 0.4em;
}
.prose blockquote {
	border-left: 3px solid var(--sky);
	margin-inline: 0;
	padding-left: 1.2rem;
	color: var(--ink-soft);
}
.pagination {
	display: flex;
	justify-content: center;
	gap: 0.4rem;
	margin-top: 3rem;
}
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.4rem;
	height: 2.4rem;
	padding-inline: 0.6rem;
	border: 1px solid var(--line);
	border-radius: 10px;
	color: var(--ink);
	font-weight: 600;
	font-size: 0.95rem;
}
.pagination .page-numbers.current {
	background: var(--cobalt);
	border-color: var(--cobalt);
	color: #fff;
}
.pagination a.page-numbers:hover {
	border-color: var(--cobalt);
	text-decoration: none;
}

/* ---------- FAQ / toggle list ---------- */
.faq-list {
	max-width: 50rem;
	margin-inline: auto;
}

/* ---------- Contact ---------- */
.contact-grid {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
}
@media (max-width: 52rem) {
	.contact-grid {
		grid-template-columns: 1fr;
	}
}
.contact-card ul {
	list-style: none;
	padding: 0;
	margin: 1.5rem 0 0;
}
.contact-card li {
	display: flex;
	gap: 0.8rem;
	align-items: flex-start;
	padding: 0.7rem 0;
	color: var(--ink-soft);
}
.contact-card li svg {
	flex: none;
	color: var(--cobalt);
	margin-top: 0.2rem;
}
.form-shell {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-soft);
	padding: clamp(1.5rem, 4vw, 2.5rem);
}
.form-shell .wpforms-field input,
.form-shell .wpforms-field textarea,
.form-shell .wpforms-field select {
	border: 1px solid var(--line) !important;
	border-radius: 10px !important;
	padding: 0.8rem 1rem !important;
	font-family: var(--font-body) !important;
}
.form-shell .wpforms-submit,
.form-shell button[type="submit"],
.form-shell input[type="submit"] {
	background: var(--cobalt) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 999px !important;
	font-weight: 600 !important;
	padding: 0.9rem 1.8rem !important;
	cursor: pointer;
}

/* ---------- Legal / generic page ---------- */
.page-plain .prose {
	max-width: 48rem;
}
.page-plain .prose h2 {
	font-size: 1.4rem;
}

/* ---------- Footer ---------- */
.site-footer {
	background: var(--ink);
	color: #b9cbe4;
	padding: clamp(3rem, 7vw, 4.5rem) 0 2rem;
	font-size: 0.95rem;
}
.site-footer a {
	color: #dce8f8;
}
.site-footer a:hover {
	color: var(--sky);
	text-decoration: none;
}
.site-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 52rem) {
	.site-footer__grid {
		grid-template-columns: 1fr;
	}
}
.logo--invert {
	opacity: 0.95;
}
.site-footer__contact {
	list-style: none;
	padding: 0;
	margin: 1.4rem 0;
}
.site-footer__contact li {
	display: flex;
	gap: 0.7rem;
	align-items: flex-start;
	padding: 0.3rem 0;
}
.site-footer__contact svg {
	flex: none;
	margin-top: 0.25rem;
	color: var(--sky);
}
.site-footer__social {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	gap: 0.7rem;
}
.site-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.4rem;
	height: 2.4rem;
	border: 1px solid rgba(220, 232, 248, 0.25);
	border-radius: 50%;
}
.site-footer__social a:hover {
	border-color: var(--sky);
}
.site-footer__heading {
	font-family: var(--font-display);
	font-weight: 600;
	color: #fff;
	margin-bottom: 1rem;
}
.site-footer__col ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.site-footer__col li {
	padding: 0.28rem 0;
}
.site-footer__legal {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	border-top: 1px solid rgba(220, 232, 248, 0.15);
	margin-top: clamp(2rem, 5vw, 3rem);
	padding-top: 1.6rem;
	font-size: 0.88rem;
}
.site-footer__legal p {
	margin: 0;
}
.site-footer__legal ul {
	list-style: none;
	display: flex;
	gap: 1.4rem;
	padding: 0;
	margin: 0;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
	.reveal {
		opacity: 1;
		transform: none;
	}
}

/* ---------- 404 ---------- */
.error-hero {
	text-align: center;
	padding-block: clamp(5rem, 12vw, 9rem);
}
.error-hero .feedback-note {
	max-width: 26rem;
	margin: 1.6rem auto 2rem;
	text-align: left;
}

/* ---------- Homepage hero: learning loop (2c) ---------- */
.hero-loop {
	position: relative;
	overflow: hidden;
	background: #0b0f1e;
	font-family: "Figtree", var(--font-body);
}
.hero-loop__glow {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}
.hero-loop__glow--a {
	width: 760px;
	height: 760px;
	right: -140px;
	top: -140px;
	background: radial-gradient(circle, rgba(53, 67, 208, 0.32) 0%, rgba(53, 67, 208, 0) 65%);
}
.hero-loop__glow--b {
	width: 460px;
	height: 460px;
	left: 180px;
	bottom: -240px;
	background: radial-gradient(circle, rgba(67, 232, 216, 0.12) 0%, rgba(67, 232, 216, 0) 65%);
}
.hero-loop__body {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 32px clamp(24px, 3vw, 48px);
	padding-block: clamp(48px, 7vw, 104px);
	min-height: min(72vh, 640px);
}
.hero-loop__copy {
	flex: 1 1 380px;
	max-width: 540px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.hero-loop__eyebrow {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #43e8d8;
}
.hero-loop__title {
	margin: 0;
	font-size: clamp(28px, 5.2vw, 58px);
	line-height: 1.06;
	letter-spacing: -0.02em;
	font-weight: 800;
	color: #fff;
	overflow-wrap: break-word;
}
.hero-loop__title em {
	font-family: "Caveat", cursive;
	font-style: normal;
	font-weight: 700;
	font-size: 1.14em;
	color: #43e8d8;
}
.hero-loop__lede {
	margin: 0;
	font-size: clamp(15px, 1.9vw, 18px);
	line-height: 1.5;
	color: #b9bfd6;
	max-width: 510px;
	text-wrap: pretty;
}
.hero-loop__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 8px;
}
.hero-loop__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	padding: 13px 26px;
	border-radius: 8px;
	text-decoration: none;
	transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.hero-loop__btn:hover {
	text-decoration: none;
	transform: translateY(-1px);
}
.hero-loop__btn--primary {
	background: #43e8d8;
	color: #002721;
	font-weight: 700;
}
.hero-loop__btn--primary:hover {
	background: #5cf0e2;
}
.hero-loop__btn--ghost {
	border: 1px solid rgba(255, 255, 255, 0.28);
	color: #fff;
	font-weight: 600;
}
.hero-loop__btn--ghost:hover {
	border-color: rgba(255, 255, 255, 0.55);
	background: rgba(255, 255, 255, 0.06);
}
.hero-loop__stage {
	flex: 1 1 320px;
	min-width: 0;
	display: flex;
	justify-content: center;
}
.hero-loop__canvas {
	width: min(600px, 100%);
	aspect-ratio: 600 / 520;
	position: relative;
}
.hero-loop__canvas-inner {
	position: absolute;
	left: 0;
	top: 0;
	width: 600px;
	height: 520px;
	transform-origin: top left;
}
.hero-loop__readout {
	position: absolute;
	left: 235px;
	top: 178px;
	width: 130px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
}
.hero-loop__nums {
	position: relative;
	height: 52px;
	width: 130px;
}
.hero-loop__num {
	position: absolute;
	inset: 0;
	font-size: 44px;
	font-weight: 800;
	text-align: center;
	color: #fff;
}
.hero-loop__num--q1 {
	animation: numQ1 12s cubic-bezier(0.2, 0.8, 0.2, 1) infinite both;
}
.hero-loop__num--q2 {
	animation: numQ2 12s cubic-bezier(0.2, 0.8, 0.2, 1) infinite both;
}
.hero-loop__num--q3 {
	color: #43e8d8;
	animation: numQ3 12s cubic-bezier(0.2, 0.8, 0.2, 1) infinite both;
}
.hero-loop__num--q4 {
	color: #89d992;
	animation: numQ4 12s cubic-bezier(0.2, 0.8, 0.2, 1) infinite both;
}
.hero-loop__readout-label {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #8a92c4;
}
.hero-loop__station {
	position: absolute;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 16px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.16);
}
.hero-loop__station-title {
	font-size: 15px;
	font-weight: 700;
	color: #fff;
}
.hero-loop__station-sub {
	font-size: 12px;
	color: #b9bfd6;
}
.hero-loop__station--assess {
	left: 232px;
	top: 22px;
	width: 136px;
	align-items: center;
	animation: stationPop 12s cubic-bezier(0.2, 0.8, 0.2, 1) 11.6s infinite both;
}
.hero-loop__station--feedback {
	left: 420px;
	top: 330px;
	width: 158px;
	align-items: flex-start;
	animation: stationPop 12s cubic-bezier(0.2, 0.8, 0.2, 1) 3.6s infinite both;
}
.hero-loop__station--feedback .hero-loop__station-title {
	color: #43e8d8;
}
.hero-loop__station--learn {
	left: 30px;
	top: 330px;
	width: 150px;
	align-items: flex-start;
	animation: stationPop 12s cubic-bezier(0.2, 0.8, 0.2, 1) 7.6s infinite both;
}
.hero-loop__station--learn .hero-loop__station-title {
	color: #89d992;
}

/* SVG animation parts (styles live here, not inline in the template) */
.hero-loop__comet {
	transform-origin: 300px 260px;
	animation: orbitSpin 12s linear infinite;
}
.hero-loop__seg--q1 { animation: segQ1 12s cubic-bezier(0.2, 0.8, 0.2, 1) infinite; }
.hero-loop__seg--q2 { animation: segQ2 12s cubic-bezier(0.2, 0.8, 0.2, 1) infinite; }
.hero-loop__seg--q3 { animation: segQ3 12s cubic-bezier(0.2, 0.8, 0.2, 1) infinite; }
.hero-loop__dot {
	transform-box: fill-box;
	transform-origin: center;
}
.hero-loop__dot--p1 { animation: dotP1 12s cubic-bezier(0.2, 0.8, 0.2, 1) infinite; }
.hero-loop__dot--p2 { animation: dotP2 12s cubic-bezier(0.2, 0.8, 0.2, 1) infinite; }
.hero-loop__dot--p3 { animation: dotP3 12s cubic-bezier(0.2, 0.8, 0.2, 1) infinite; }
.hero-loop__star {
	transform-origin: 542px 78px;
	animation: starSpin 26s linear infinite;
}

/* keyframes — 12s learning-loop cycle (ported from 2c concept) */
@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes starSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes stationPop { 0% { transform: scale(.96); opacity: .5; } 4% { transform: scale(1.06); opacity: 1; } 18% { transform: scale(1.03); opacity: 1; } 30% { transform: scale(.96); opacity: .5; } 100% { transform: scale(.96); opacity: .5; } }
@keyframes segQ1 { 0%, 21% { stroke-dashoffset: 201; } 26%, 100% { stroke-dashoffset: 0; } }
@keyframes segQ2 { 0%, 54% { stroke-dashoffset: 201; } 59%, 100% { stroke-dashoffset: 0; } }
@keyframes segQ3 { 0%, 87% { stroke-dashoffset: 201; } 92%, 100% { stroke-dashoffset: 0; } }
@keyframes dotP1 { 0%, 25.9% { transform: scale(0); opacity: 0; } 26% { transform: scale(1.25); opacity: 1; } 29% { transform: scale(1); } 97% { transform: scale(1); opacity: 1; } 100% { opacity: 0; } }
@keyframes dotP2 { 0%, 58.9% { transform: scale(0); opacity: 0; } 59% { transform: scale(1.25); opacity: 1; } 62% { transform: scale(1); } 97% { transform: scale(1); opacity: 1; } 100% { opacity: 0; } }
@keyframes dotP3 { 0%, 91.9% { transform: scale(0); opacity: 0; } 92% { transform: scale(1.25); opacity: 1; } 95% { transform: scale(1); } 99.5% { transform: scale(1); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
@keyframes numQ1 { 0% { opacity: 1; transform: translateY(0); } 23% { opacity: 1; transform: translateY(0); } 26%, 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes numQ2 { 0%, 25% { opacity: 0; transform: translateY(8px); } 26% { opacity: 1; transform: translateY(0); } 56% { opacity: 1; transform: translateY(0); } 59%, 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes numQ3 { 0%, 58% { opacity: 0; transform: translateY(8px); } 59% { opacity: 1; transform: translateY(0); } 89% { opacity: 1; transform: translateY(0); } 92%, 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes numQ4 { 0%, 91% { opacity: 0; transform: translateY(8px); } 92% { opacity: 1; transform: translateY(0); } 100% { opacity: 1; transform: translateY(0); } }

/* Narrow screens: copy + animation stack, canvas centers */
@media (max-width: 760px) {
	.hero-loop__body { align-items: flex-start; min-height: 0; }
	.hero-loop__copy { flex-basis: 100%; max-width: 100%; }
	.hero-loop__stage { flex-basis: 100%; }
}

/* Respect reduced-motion: freeze on the final mastery state */
@media (prefers-reduced-motion: reduce) {
	.hero-loop__canvas-inner *,
	.hero-loop__num,
	.hero-loop__station { animation: none !important; }
	.hero-loop__num--q1,
	.hero-loop__num--q2,
	.hero-loop__num--q3 { opacity: 0; }
	.hero-loop__num--q4 { opacity: 1; }
}
