/*
 * Structured feature/solution page layout.
 */

.feature-page {
	background: var(--color-bg);
	color: var(--color-on-dark-muted);
}

.feature-page__hero {
	padding-block: clamp(4rem, 8vw, 7rem);
	background: var(--color-blue-overlay);
	color: var(--color-white);
}

.feature-page__hero-inner {
	max-width: 52rem;
	margin-inline: auto;
	text-align: center;
}

.feature-page__title {
	margin-bottom: 1.25rem;
	color: var(--color-white);
}

.feature-page__intro {
	max-width: 46rem;
	margin: 0 auto;
	color: var(--color-on-dark-muted);
	font-size: var(--font-size-lead);
	line-height: 1.7;
}

.feature-page--billetter .feature-page__hero-inner,
.feature-page--printere-navneskilte .feature-page__hero-inner {
	max-width: 62rem;
}

.feature-page--billetter .feature-page__intro,
.feature-page--printere-navneskilte .feature-page__intro {
	max-width: 56rem;
}

.feature-page__section {
	padding-block: clamp(3rem, 7vw, 6.25rem);
	background: #fff;
	color: var(--color-text);
}

.feature-page__section:nth-child(even) {
	background: var(--color-blue-overlay);
	color: var(--color-on-dark-muted);
}

.feature-page__section-inner {
	display: grid;
	gap: clamp(2rem, 6vw, 5rem);
	align-items: center;
}

.feature-page__section-content {
	max-width: 36rem;
}

.feature-page__section-title {
	margin-bottom: 1rem;
	color: var(--color-blue-dark);
	font-size: clamp(1.8rem, 3.4vw, var(--font-size-h2));
}

.feature-page__section:nth-child(even) .feature-page__section-title {
	color: var(--color-white);
}

.feature-page__section-copy {
	color: var(--color-text-muted);
	font-size: var(--font-size-lead);
	line-height: 1.75;
}

.feature-page__section:nth-child(even) .feature-page__section-copy {
	color: var(--color-on-dark-muted);
}

.feature-page__section-copy p:last-child {
	margin-bottom: 0;
}

.feature-page__media {
	overflow: hidden;
	aspect-ratio: 16 / 10;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.feature-page__section:nth-child(even) .feature-page__media {
	background: transparent;
	box-shadow: none;
}

.feature-page__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.feature-page__media--empty {
	min-height: 16rem;
}

.feature-page__media--empty::before {
	content: "";
	display: block;
	width: 100%;
	height: 100%;
	background: var(--color-surface-light) url("../images/feature-showcase-fallback.svg") center / cover no-repeat;
}

.feature-page__section:nth-child(even) .feature-page__media--empty::before {
	background: var(--color-surface-light) url("../images/feature-showcase-fallback.svg") center / cover no-repeat;
}

.feature-page__editor-content {
	max-width: var(--site-max-width);
	margin-inline: auto;
	padding-block: clamp(2.5rem, 6vw, 5rem);
	color: var(--color-on-dark-muted);
}

.feature-page__editor-content:has(> :first-child.alignfull) {
	padding-top: 0;
}

.feature-page__editor-content:has(> :last-child.alignfull) {
	padding-bottom: 0;
}

.feature-page__editor-content > :not(.alignfull) {
	max-width: var(--content-max-width);
	margin-inline: auto;
}

.feature-page-pricing-cta .cta-centered__inner {
	padding-inline: clamp(1.25rem, 4vw, 2.25rem);
}

@media (min-width: 56rem) {
	.feature-page__section-inner {
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	}

	.feature-page__section--image-left .feature-page__media {
		order: -1;
	}
}

@media (max-width: 55.9375rem) {
	.feature-page__hero-inner {
		text-align: left;
	}

	/* Billetter hero is centered in the mobile mock (matches desktop). */
	.feature-page--billetter .feature-page__hero-inner {
		text-align: center;
	}

	.feature-page__section-content,
	.feature-page__editor-content {
		max-width: none;
	}
}

@media (max-width: 47.9375rem) {
	.feature-page-pricing-cta .cta-centered__inner {
		width: min(calc(100% - 1rem), 52rem);
		padding-inline: 1.25rem;
	}
}
