/* ==========================================================================
   Prices page
   Values measured from the Lovable preview (/prices) rather than guessed:
   badge 10px/700 ls 1.6px, chip 11px/700 ls 1.76px, card radius 16px on a
   140px / 1fr / auto grid, headline price 24px. Brand green is the theme's
   existing token, which matches the preview's oklch(32% .05 165).
   ========================================================================== */

.naa-prices-hero {
	padding: 72px 0 0;
	background: var(--naa-brand);
	color: var(--naa-brand-fg);
}

.naa-prices-hero .naa-lean-label {
	color: var(--naa-brand-fg);
	opacity: 0.7;
}

/*
 * naa-chrome-heading-override: lean-chrome.css sets `.naa-lean-chrome h1`
 * (0,1,1) to brand green, which beat a single class and painted the hero
 * heading green on green. Two classes take it back without !important.
 */
.naa-lean-chrome .naa-prices-hero__title,
.naa-prices-hero .naa-prices-hero__title {
	margin: 16px 0 0;
	max-width: 16ch;
	color: var(--naa-brand-fg);
	font-size: clamp(36px, 5vw, 56px);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.naa-prices-hero__lead {
	margin: 18px 0 0;
	max-width: 56ch;
	color: var(--naa-brand-fg);
	font-size: 15px;
	line-height: 1.65;
	opacity: 0.78;
}

/* --------------------------------------------------------------------------
   Chip row
   Sits on the dark band and overlaps the white section below it, the way the
   preview does. The negative margin is paid back by the list's top padding.
   -------------------------------------------------------------------------- */
.naa-prices-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 44px 0 -26px;
	padding: 0 0 4px;
}

.naa-prices-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border: 1px solid var(--naa-border);
	border-radius: 999px;
	background: #fff;
	color: var(--naa-brand);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.76px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.naa-prices-chip:hover {
	border-color: var(--naa-brand);
}

.naa-prices-chip.is-active {
	border-color: var(--naa-brand);
	background: var(--naa-brand);
	color: var(--naa-brand-fg);
}

.naa-prices-chip:focus-visible {
	outline: 2px solid var(--naa-brand-fg);
	outline-offset: 3px;
}

.naa-prices-chip__count {
	font-size: 10px;
	opacity: 0.62;
}

/* --------------------------------------------------------------------------
   Card list
   -------------------------------------------------------------------------- */
.naa-prices-list {
	padding: 56px 0 var(--naa-section-pad);
	background: #fff;
}

.naa-prices-group {
	display: grid;
	gap: 16px;
}

/* [hidden] alone loses to `display: grid`, so it needs to win explicitly. */
.naa-prices-group[hidden] {
	display: none !important;
}

.naa-prices-card {
	display: grid;
	gap: 24px;
	padding: 20px;
	border: 1px solid var(--naa-border);
	border-radius: 16px;
	background: #fff;
	transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.naa-prices-card:hover {
	transform: translateY(-2px);
	border-color: color-mix(in srgb, var(--naa-brand) 40%, transparent);
	box-shadow: 0 10px 30px rgba(9, 20, 15, 0.09);
}

@media (min-width: 860px) {
	.naa-prices-card {
		grid-template-columns: 140px minmax(0, 1fr) auto;
		align-items: center;
	}
}

.naa-prices-card__media {
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: 12px;
	background: var(--naa-brand-soft);
}

@media (min-width: 860px) {
	.naa-prices-card__media {
		aspect-ratio: 1 / 1;
	}
}

.naa-prices-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s;
}

.naa-prices-card:hover .naa-prices-card__media img {
	transform: scale(1.04);
}

.naa-prices-card__body {
	min-width: 0;
}

.naa-prices-card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.naa-prices-badge {
	padding: 4px 10px;
	border: 1px solid color-mix(in srgb, var(--naa-brand) 25%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--naa-brand) 10%, transparent);
	color: var(--naa-brand);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	line-height: 1.4;
}

.naa-prices-badge--solid {
	border-color: var(--naa-brand);
	background: var(--naa-brand);
	color: var(--naa-brand-fg);
}

.naa-lean-chrome .naa-prices-card__title,
.naa-prices-card .naa-prices-card__title {
	margin: 12px 0 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.naa-prices-card__link {
	color: inherit;
	text-decoration: none;
	text-underline-offset: 3px;
}

.naa-prices-card:hover .naa-prices-card__link,
.naa-prices-card__link:focus-visible {
	text-decoration: underline;
}

/* Whole card clickable, same stretched-link pattern as the programme rails. */
.naa-prices-card:has( .naa-prices-card__link ) {
	position: relative;
}

.naa-prices-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* The CTA is a second link over the overlay, so it needs to sit above it. */
.naa-prices-card__cta {
	position: relative;
	z-index: 2;
}

.naa-prices-card__excerpt {
	margin: 6px 0 0;
	color: color-mix(in srgb, var(--naa-fg, #002820) 60%, transparent);
	font-size: 14px;
	line-height: 1.6;
}

.naa-prices-card__lecturer {
	margin: 8px 0 0;
	color: color-mix(in srgb, var(--naa-fg, #002820) 50%, transparent);
	font-size: 12px;
	font-weight: 500;
}

.naa-prices-card__saving {
	margin: 12px 0 0;
	color: color-mix(in srgb, var(--naa-fg, #002820) 60%, transparent);
	font-size: 12px;
	line-height: 1.6;
}

.naa-prices-card__struck {
	text-decoration: line-through;
}

.naa-prices-card__package {
	font-weight: 600;
	color: var(--naa-fg, #002820);
}

.naa-prices-card__save {
	font-weight: 700;
	color: var(--naa-brand);
}

.naa-prices-card__pricing {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

@media (min-width: 860px) {
	.naa-prices-card__pricing {
		align-items: flex-end;
		text-align: right;
	}
}

.naa-prices-card__price {
	color: var(--naa-brand);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.1;
	white-space: nowrap;
}

.naa-prices-card__price--request {
	font-size: 18px;
}

.naa-prices-card__sub {
	color: color-mix(in srgb, var(--naa-fg, #002820) 60%, transparent);
	font-size: 12px;
}

.naa-prices-card__sub--faint {
	color: color-mix(in srgb, var(--naa-fg, #002820) 50%, transparent);
	font-size: 11px;
}

.naa-prices-card__cta {
	margin-top: 4px;
	color: var(--naa-brand);
	font-size: 13px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.naa-prices-empty {
	padding: 40px 0;
	color: color-mix(in srgb, var(--naa-fg, #002820) 60%, transparent);
}

@media (max-width: 640px) {
	.naa-prices-hero {
		padding-top: 48px;
	}

	.naa-prices-chips {
		margin-bottom: -20px;
	}

	.naa-prices-chip {
		padding: 8px 14px;
		letter-spacing: 1.2px;
	}

	.naa-prices-list {
		padding-top: 44px;
	}
}


/* The legacy page body is not rendered, but if it is ever switched back on
   nothing inside it may widen the document. */
.naa-prices-extra {
	overflow-x: hidden;
}

.naa-prices-extra img,
.naa-prices-extra video {
	max-width: 100%;
	height: auto;
}

/* ==========================================================================
   Design pass against the Lovable source (src/routes/prices.tsx)
   Values below are the Tailwind classes from that file resolved to CSS, not
   measured from a screenshot: py-16/md:py-20, tracking-[0.22em], max-w-3xl,
   text-4xl/md:text-5xl, and the chip bar as its own sticky bordered section.
   ========================================================================== */

.naa-prices-hero {
	padding: 64px 0;
}

@media (min-width: 768px) {
	.naa-prices-hero {
		padding: 80px 0;
	}
}

/* The eyebrow is a rule + label, not a bare label. */
.naa-prices-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: color-mix(in srgb, var(--naa-brand-fg) 70%, transparent);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.naa-prices-eyebrow__rule {
	display: block;
	width: 32px;
	height: 1px;
	background: color-mix(in srgb, var(--naa-brand-fg) 30%, transparent);
}

.naa-lean-chrome .naa-prices-hero__title,
.naa-prices-hero .naa-prices-hero__title {
	margin: 24px 0 0;
	max-width: 768px;
	color: var(--naa-brand-fg);
	font-size: 36px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.025em;
}

@media (min-width: 768px) {
	.naa-lean-chrome .naa-prices-hero__title,
	.naa-prices-hero .naa-prices-hero__title {
		font-size: 48px;
	}
}

.naa-prices-hero__lead {
	margin: 20px 0 0;
	max-width: 672px;
	color: color-mix(in srgb, var(--naa-brand-fg) 75%, transparent);
	font-size: 16px;
	line-height: 1.625;
	opacity: 1;
}

/* --------------------------------------------------------------------------
   Chip bar: its own band under the hero, not floating on the green one.
   Sticky with a hairline underneath, exactly as the source has it.
   -------------------------------------------------------------------------- */
.naa-prices-bar {
	position: sticky;
	top: 0;
	z-index: 30;
	padding: 20px 0;
	border-bottom: 1px solid var(--naa-border);
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(8px);
}

.naa-prices-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0;
	padding: 0;
}

.naa-prices-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border: 1px solid var(--naa-border);
	border-radius: 999px;
	background: #fff;
	color: color-mix(in srgb, var(--naa-fg) 55%, transparent);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	cursor: pointer;
	transition: transform 0.3s, background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.naa-prices-chip:hover {
	transform: translateY(-2px);
	border-color: color-mix(in srgb, var(--naa-brand) 40%, transparent);
	color: var(--naa-fg);
	box-shadow: 0 4px 12px rgba(9, 20, 15, 0.08);
}

.naa-prices-chip.is-active {
	border-color: color-mix(in srgb, var(--naa-brand) 40%, transparent);
	background: var(--naa-brand);
	color: var(--naa-brand-fg);
	box-shadow: 0 10px 24px color-mix(in srgb, var(--naa-brand) 25%, transparent);
}

.naa-prices-chip.is-active:hover {
	transform: none;
}

.naa-prices-chip:focus-visible {
	outline: 2px solid var(--naa-brand);
	outline-offset: 3px;
}

.naa-prices-chip__count {
	padding: 2px 6px;
	border-radius: 999px;
	background: var(--naa-brand-soft);
	color: color-mix(in srgb, var(--naa-fg) 45%, transparent);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: normal;
	opacity: 1;
	transition: background 0.3s, color 0.3s;
}

.naa-prices-chip.is-active .naa-prices-chip__count {
	background: color-mix(in srgb, var(--naa-brand-fg) 15%, transparent);
	color: var(--naa-brand-fg);
}

/* --------------------------------------------------------------------------
   List and card corrections
   -------------------------------------------------------------------------- */
.naa-prices-list {
	padding: 48px 0;
}

@media (min-width: 768px) {
	.naa-prices-list {
		padding: 64px 0;
	}
}

/* The source renders "On request" in foreground, not brand: it is the absence
   of a price, so it must not read as loudly as a real one. */
.naa-prices-card__price--request {
	color: var(--naa-fg);
	font-size: 18px;
}

.naa-prices-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
	font-size: 14px;
	text-decoration: none;
}

.naa-prices-card__cta:hover {
	text-decoration: underline;
}

.naa-prices-card__arrow {
	transition: transform 0.2s;
}

.naa-prices-card:hover .naa-prices-card__arrow {
	transform: translate(2px, -2px);
}

@media (max-width: 640px) {
	.naa-prices-hero {
		padding: 48px 0;
	}

	.naa-prices-bar {
		padding: 14px 0;
	}

	.naa-prices-chip {
		padding: 8px 14px;
		letter-spacing: 0.12em;
	}

	.naa-prices-list {
		padding: 36px 0;
	}
}
