/**
 * Home landing (front page) — page-specific layer on top of schools.css.
 *
 * schools.css supplies the shared landing primitives (sl-*) and course.css the
 * cl-* pieces reused by the kit/curriculum/pricing sections; this file adds
 * only the hl-* bits the homepage introduces: the outcomes cards, the reviews
 * section and the centered final CTA.
 */

/* ---- Text links -------------------------------------------------------------- */

/* Every inline link in landing copy is underlined (buttons excluded). */
.schools-landing p a:not(.sl-btn),
.schools-landing li a:not(.sl-btn) {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.schools-landing p a:not(.sl-btn):hover,
.schools-landing li a:not(.sl-btn):hover {
	color: var(--sl-black);
}

/* ---- Video ------------------------------------------------------------------ */

.hl-video {
	position: relative;
	max-width: 880px;
	margin: 0 auto;
	aspect-ratio: 16 / 9;
	cursor: pointer;
	overflow: hidden;
}

.hl-video__poster,
.hl-video__frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 0;
}

.hl-video__play {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	border: 0;
	background: var(--sl-black);
	cursor: pointer;
	transition: transform 0.15s ease;
}

.hl-video:hover .hl-video__play {
	transform: scale(1.08);
}

.hl-video__play-icon {
	display: block;
	margin: 0 auto;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 14px 0 14px 24px;
	border-color: transparent transparent transparent var(--sl-white);
	transform: translateX(3px);
}

.hl-video__link {
	text-align: center;
}

/* ---- Curriculum collapse ------------------------------------------------------ */

/* The landing shows the first eight module cards; the rest sit behind the
   toggle (same checkbox pattern as the reviews grid). */
.hl-modules__more-input:not(:checked) ~ .cl-modules .cl-module:nth-child(n + 9) {
	display: none;
}

.hl-modules__more-btn {
	margin-top: 24px;
	cursor: pointer;
}

.hl-modules__more-hide,
.hl-modules__more-input:checked ~ .hl-modules__more-btn .hl-modules__more-show {
	display: none;
}

.hl-modules__more-input:checked ~ .hl-modules__more-btn .hl-modules__more-hide {
	display: inline;
}

/* ---- Reviews ---------------------------------------------------------------- */

.hl-reviews__summary {
	display: flex;
	align-items: baseline;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}

.hl-reviews__avg {
	font-family: "Space Grotesk", sans-serif;
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 700;
	color: var(--sl-ink);
	line-height: 1;
}

.hl-reviews__avg-max {
	font-size: 0.5em;
	color: var(--sl-muted);
	font-weight: 600;
}

.hl-stars {
	position: relative;
	display: inline-block;
	font-size: 22px;
	line-height: 1;
	color: var(--sl-line);
	letter-spacing: 2px;
}

.hl-stars__fill {
	position: absolute;
	inset: 0 auto 0 0;
	overflow: hidden;
	white-space: nowrap;
	color: var(--sl-ink);
}

.hl-reviews__count {
	color: var(--sl-muted);
}

.hl-reviews__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.hl-review {
	background: var(--sl-white);
	border: 1px solid var(--sl-line);
	border-radius: var(--sl-radius);
	padding: 24px;
}

.hl-review__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
}

.hl-review__name {
	margin: 0;
	font-size: 17px;
	color: var(--sl-ink);
}

.hl-review__stars {
	font-size: 14px;
	letter-spacing: 1px;
	color: var(--sl-line);
	white-space: nowrap;
}

.hl-review__stars-on {
	color: var(--sl-ink);
}

.hl-review__stars-n {
	margin-left: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--sl-muted);
	letter-spacing: 0;
}

.hl-review__meta {
	margin: 4px 0 0;
	font-size: 13px;
	color: var(--sl-muted);
}

.hl-review__program {
	display: inline-block;
	margin: 10px 0 0;
	padding: 3px 8px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--sl-muted);
	background: var(--sl-bg-soft);
	border: 1px solid var(--sl-line);
	border-radius: 999px;
}

.hl-review__text {
	margin: 12px 0 0;
	color: var(--sl-ink);
	line-height: 1.55;
}

/* Collapse: only the first six cards until the toggle is checked. */
.hl-reviews__more-input:not(:checked) ~ .hl-reviews__grid .hl-review:nth-child(n + 7) {
	display: none;
}

.hl-reviews__actions {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 24px;
}

.hl-reviews__more-btn,
.hl-review-form__toggle-btn {
	cursor: pointer;
}

.hl-reviews__more-hide,
.hl-reviews__more-input:checked ~ .hl-reviews__actions .hl-reviews__more-show {
	display: none;
}

.hl-reviews__more-input:checked ~ .hl-reviews__actions .hl-reviews__more-hide {
	display: inline;
}

/* The form opens from the "Leave a review" button. */
.hl-review-form__toggle-input:not(:checked) ~ .hl-review-form {
	display: none;
}

/* Submission form */
.hl-review-form {
	margin-top: 40px;
	padding: 28px;
	background: var(--sl-bg-soft);
	border: 1px solid var(--sl-line);
	border-radius: var(--sl-radius);
	max-width: 640px;
}

.hl-review-form__title {
	margin: 0 0 16px;
	font-size: 20px;
	color: var(--sl-ink);
}

.hl-review-form__notice {
	margin: 0 0 16px;
	padding: 10px 14px;
	border-radius: 8px;
	border: 1px solid var(--sl-line);
	background: var(--sl-white);
	color: var(--sl-ink);
}

.hl-review-form__notice--err {
	border-color: #b91c1c;
	color: #b91c1c;
}

.hl-review-form__hp {
	position: absolute;
	left: -9999px;
	top: auto;
}

.hl-review-form__row {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

.hl-review-form__field {
	display: block;
	margin-bottom: 14px;
	flex: 1 1 220px;
}

.hl-review-form__field > span {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--sl-ink);
}

.hl-review-form__field input[type="text"],
.hl-review-form__field input[type="email"],
.hl-review-form__field input[type="number"],
.hl-review-form__field textarea,
.hl-review-form__field select {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid var(--sl-line);
	border-radius: 8px;
	background: var(--sl-white);
	color: var(--sl-ink);
	font: inherit;
}

/* Star radios: reversed DOM order (5→1) so checked+precedents highlight. */
.hl-review-form__stars {
	display: inline-flex;
	flex-direction: row-reverse;
	gap: 2px;
	font-size: 24px;
	line-height: 1;
}

.hl-review-form__stars input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.hl-review-form__stars label {
	cursor: pointer;
	color: var(--sl-line);
}

.hl-review-form__stars input:checked ~ label,
.hl-review-form__stars label:hover,
.hl-review-form__stars label:hover ~ label {
	color: var(--sl-ink);
}

@media (max-width: 1024px) {
	.hl-reviews__grid {
		grid-template-columns: 1fr;
	}
}

/* ---- Outcomes cards -------------------------------------------------------- */

.hl-outcomes {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.hl-outcome {
	background: var(--sl-white);
	border: 1px solid var(--sl-line);
	border-radius: var(--sl-radius);
	padding: 28px;
}

.hl-outcome__title {
	margin: 0 0 10px;
	font-size: 20px;
	line-height: 1.3;
	color: var(--sl-ink);
}

.hl-outcome__desc {
	margin: 0;
	color: var(--sl-muted);
	line-height: 1.55;
}

@media (max-width: 1024px) {
	.hl-outcomes {
		grid-template-columns: 1fr;
	}
}

/* ---- Final CTA (no form — centered copy + buttons) -------------------------- */

.hl-cta__copy {
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
}

.hl-cta__actions {
	justify-content: center;
	margin-top: 28px;
}
