/**
 * Egenkontroll presentation page.
 *
 * The application itself is intentionally not styled here. This stylesheet is
 * scoped to the public presentation page and contains no application logic.
 */

.t0k-egenkontroll-page {
	--ek-bg: #f3f4f6;
	--ek-surface: #ffffff;
	--ek-surface-soft: #e9ecf0;
	--ek-text: #17191f;
	--ek-muted: #626975;
	--ek-line: rgba(20, 36, 59, 0.13);
	--ek-accent: var(--wp--preset--color--primary, #225cba);
	background: var(--ek-bg);
	color: var(--ek-text);
}

.t0k-egenkontroll-page img {
	display: block;
	max-width: 100%;
}

.t0k-ek-eyebrow {
	margin: 0 0 0.8rem;
	color: var(--ek-accent);
	font-size: 0.8rem;
	font-weight: 750;
	letter-spacing: 0.1em;
	line-height: 1.3;
	text-transform: uppercase;
}

.t0k-ek-rule {
	display: block;
	width: 2.75rem;
	height: 0.125rem;
	margin-block: 1.25rem 1.5rem;
	background: var(--ek-accent);
}

.t0k-ek-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at 6% 18%, rgba(34, 92, 186, 0.08), transparent 28%),
		linear-gradient(135deg, #eef0f3 0%, #fafbfc 54%, #e5e8ec 100%);
}

.t0k-ek-hero::before {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.26) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.26) 1px, transparent 1px);
	background-size: 4.5rem 4.5rem;
	content: "";
	mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), transparent 78%);
	pointer-events: none;
}

.t0k-ek-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(22rem, 0.75fr);
	align-items: center;
	gap: clamp(2.5rem, 5vw, 5.5rem);
	min-height: clamp(37rem, 64vw, 48rem);
	padding-block: clamp(4rem, 8vw, 7rem);
}

.t0k-ek-hero__visual {
	position: relative;
	min-width: 0;
	perspective: 90rem;
}

.t0k-ek-hero__visual::after {
	position: absolute;
	z-index: -1;
	right: 6%;
	bottom: -4%;
	width: 78%;
	height: 18%;
	border-radius: 50%;
	background: rgba(32, 38, 50, 0.2);
	content: "";
	filter: blur(2rem);
}

.t0k-ek-product-frame {
	width: 108%;
	transform: perspective(100rem) rotateY(5deg) rotateX(1deg) translateX(-3%);
	transform-origin: center;
	filter: drop-shadow(0 2.2rem 2.6rem rgba(25, 31, 42, 0.2));
}

.t0k-ek-product-frame__image {
	width: 100%;
	height: auto;
}

.t0k-ek-product-placeholder {
	display: grid;
	min-height: 27rem;
	place-items: center;
	align-content: center;
	padding: 2rem;
	border: 1px dashed rgba(20, 36, 59, 0.26);
	background: rgba(255, 255, 255, 0.66);
	box-shadow: 0 1.4rem 3.4rem rgba(20, 36, 59, 0.08);
	text-align: center;
}

.t0k-ek-product-placeholder__eyebrow,
.t0k-ek-product-placeholder strong,
.t0k-ek-product-placeholder small {
	display: block;
}

.t0k-ek-product-placeholder__eyebrow {
	margin-bottom: 1.2rem;
	color: var(--ek-accent);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.t0k-ek-product-placeholder strong {
	font-size: clamp(1.4rem, 2.6vw, 2.25rem);
	line-height: 1.15;
}

.t0k-ek-product-placeholder small {
	margin-top: 0.7rem;
	color: var(--ek-muted);
}

.t0k-ek-hero__content {
	max-width: 35rem;
}

.t0k-ek-hero__title {
	max-width: 11ch;
	margin: 0;
	font-size: clamp(2.75rem, 4.8vw, 4.7rem);
	line-height: 0.99;
	letter-spacing: -0.045em;
}

.t0k-ek-hero__summary {
	max-width: 35rem;
	margin: 0;
	color: var(--ek-muted);
	font-size: clamp(1rem, 1.35vw, 1.15rem);
	line-height: 1.7;
}

.t0k-ek-hero__summary > * {
	margin: 0;
}

.t0k-ek-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	margin-top: 1.8rem;
}

.t0k-ek-hero__features {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem 1.4rem;
	margin: 1.9rem 0 0;
	padding-inline-start: 1.15rem;
	color: var(--ek-muted);
	font-size: 0.84rem;
	line-height: 1.45;
}

.t0k-ek-hero__features li::marker {
	color: var(--ek-accent);
}

.t0k-ek-benefits {
	padding-block: clamp(4.5rem, 8vw, 7.5rem);
	background: var(--ek-surface);
}

.t0k-ek-section-heading {
	max-width: 48rem;
	margin: 0 auto clamp(2.5rem, 4.5vw, 4rem);
	text-align: center;
}

.t0k-ek-section-heading--left {
	margin-inline-start: 0;
	text-align: left;
}

.t0k-ek-section-heading h2 {
	margin: 0;
	font-size: clamp(2rem, 3.7vw, 3.6rem);
	line-height: 1.08;
	letter-spacing: -0.038em;
}

.t0k-ek-section-heading > p:last-child {
	max-width: 42rem;
	margin: 1rem auto 0;
	color: var(--ek-muted);
	font-size: clamp(1rem, 1.25vw, 1.1rem);
	line-height: 1.7;
}

.t0k-ek-benefits__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(0.9rem, 1.8vw, 1.35rem);
}

.t0k-ek-benefit-card {
	min-height: 20rem;
	padding: clamp(1.5rem, 2.5vw, 2rem);
	border: 1px solid var(--ek-line);
	border-radius: 0.9rem;
	background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
	box-shadow: 0 1rem 2.2rem rgba(20, 36, 59, 0.07);
}

.t0k-ek-benefit-card__icon {
	display: grid;
	width: 3.25rem;
	height: 3.25rem;
	margin-bottom: 3rem;
	place-items: center;
	border: 1px solid rgba(20, 36, 59, 0.18);
	border-radius: 0.55rem;
	background: linear-gradient(180deg, #ffffff 0%, #ebedf0 100%);
	box-shadow: 0 0.22rem 0 rgba(20, 36, 59, 0.16), 0 0.7rem 1.1rem rgba(20, 36, 59, 0.08);
	color: var(--ek-accent);
	font-size: 0.78rem;
	font-weight: 800;
}

.t0k-ek-benefit-card h3 {
	margin: 0;
	font-size: clamp(1.15rem, 1.7vw, 1.4rem);
	line-height: 1.25;
}

.t0k-ek-benefit-card p {
	margin: 0.85rem 0 0;
	color: var(--ek-muted);
	font-size: 0.95rem;
	line-height: 1.65;
}

.t0k-ek-workflow {
	padding-block: clamp(4.5rem, 8vw, 7.5rem);
	background: linear-gradient(180deg, #e9ecf0 0%, #f5f6f7 100%);
}

.t0k-ek-workflow__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border-block: 1px solid rgba(20, 36, 59, 0.18);
}

.t0k-ek-workflow-step {
	min-height: 18rem;
	padding: clamp(1.75rem, 2.6vw, 2.3rem);
}

.t0k-ek-workflow-step:not(:last-child) {
	border-inline-end: 1px solid rgba(20, 36, 59, 0.18);
}

.t0k-ek-workflow-step__number {
	display: block;
	margin-bottom: 4.25rem;
	color: var(--ek-accent);
	font-size: 0.8rem;
	font-weight: 850;
	letter-spacing: 0.12em;
}

.t0k-ek-workflow-step h3 {
	margin: 0;
	font-size: clamp(1.15rem, 1.6vw, 1.4rem);
	line-height: 1.25;
}

.t0k-ek-workflow-step p {
	margin: 0.75rem 0 0;
	color: var(--ek-muted);
	font-size: 0.9rem;
	line-height: 1.65;
}

.t0k-ek-demo {
	padding-block: clamp(4.75rem, 9vw, 8rem);
	background: #15171c;
	color: #ffffff;
}

.t0k-ek-demo__grid {
	display: grid;
	grid-template-columns: minmax(17rem, 0.72fr) minmax(0, 1.28fr);
	align-items: center;
	gap: clamp(2.5rem, 6vw, 5.5rem);
}

.t0k-ek-demo .t0k-ek-eyebrow {
	color: #9ab1ff;
}

.t0k-ek-demo__content h2 {
	margin: 0;
	color: #ffffff;
	font-size: clamp(2rem, 3.7vw, 3.6rem);
	line-height: 1.08;
	letter-spacing: -0.038em;
}

.t0k-ek-demo__content > p:not(.t0k-ek-eyebrow) {
	margin: 1.1rem 0 0;
	color: #b8bdc7;
	font-size: clamp(1rem, 1.3vw, 1.08rem);
	line-height: 1.7;
}

.t0k-ek-check-list {
	display: grid;
	gap: 0.8rem;
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
}

.t0k-ek-check-list li {
	position: relative;
	padding-inline-start: 1.9rem;
	color: #e1e4e9;
	line-height: 1.55;
}

.t0k-ek-check-list li::before {
	position: absolute;
	inset-block-start: 0.16em;
	inset-inline-start: 0;
	display: grid;
	width: 1.2rem;
	height: 1.2rem;
	place-items: center;
	border: 1px solid #666e7d;
	border-radius: 50%;
	color: #9ab1ff;
	content: "✓";
	font-size: 0.72rem;
}

.t0k-ek-demo__screen {
	position: relative;
	overflow: hidden;
	min-height: 25rem;
	border: 0.45rem solid #70747d;
	background: #dfe2e6;
	box-shadow: 0 0 0 1px #24272e, 0 2rem 4.5rem rgba(0, 0, 0, 0.36);
}

.t0k-ek-demo__image {
	width: 100%;
	height: 100%;
	aspect-ratio: 16 / 8.5;
	object-fit: cover;
}

.t0k-ek-demo__placeholder {
	display: grid;
	min-height: 25rem;
	place-items: center;
	align-content: center;
	padding: 2rem;
	background: linear-gradient(135deg, #f2f3f5 0%, #dadde2 100%);
	color: #333842;
	text-align: center;
}

.t0k-ek-demo__placeholder strong,
.t0k-ek-demo__placeholder span {
	display: block;
}

.t0k-ek-demo__placeholder strong {
	font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.t0k-ek-demo__placeholder span {
	margin-top: 0.7rem;
	color: #656c78;
}

.t0k-ek-final-cta {
	padding-block: clamp(4.5rem, 7vw, 6.5rem);
	background:
		radial-gradient(circle at 86% 0%, rgba(255, 255, 255, 0.11), transparent 30%),
		linear-gradient(135deg, #343740 0%, #1e2026 100%);
	color: #ffffff;
}

.t0k-ek-final-cta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(2rem, 5vw, 5rem);
}

.t0k-ek-final-cta .t0k-ek-eyebrow {
	color: #a9baff;
}

.t0k-ek-final-cta h2 {
	max-width: 48rem;
	color: #ffffff;
	margin: 0;
	font-size: clamp(2rem, 3.7vw, 3.6rem);
	line-height: 1.08;
	letter-spacing: -0.038em;
}

.t0k-ek-final-cta p:not(.t0k-ek-eyebrow) {
	max-width: 42rem;
	margin: 1rem 0 0;
	color: #c9cdd4;
	line-height: 1.65;
}

.t0k-ek-final-cta__actions {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: wrap;
	gap: 0.85rem;
}

@media (max-width: 68rem) {
	.t0k-ek-hero__inner {
		grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.82fr);
		gap: 2.5rem;
	}

	.t0k-ek-benefits__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.t0k-ek-demo__grid {
		gap: 3rem;
	}
}

@media (max-width: 56rem) {
	.t0k-ek-hero__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.t0k-ek-hero__content {
		grid-row: 1;
		max-width: 42rem;
	}

	.t0k-ek-hero__visual {
		grid-row: 2;
	}

	.t0k-ek-product-frame {
		width: 102%;
		transform: perspective(90rem) rotateY(3deg) rotateX(1deg) translateX(-1%);
	}

	.t0k-ek-workflow__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.t0k-ek-workflow-step:nth-child(2) {
		border-inline-end: 0;
	}

	.t0k-ek-workflow-step:nth-child(-n + 2) {
		border-block-end: 1px solid rgba(20, 36, 59, 0.18);
	}

	.t0k-ek-demo__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.t0k-ek-final-cta__inner {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 47.9375rem) {
	.t0k-ek-hero__inner {
		min-height: 0;
		padding-block: 3.75rem 4.5rem;
	}

	.t0k-ek-hero__title {
		font-size: clamp(2.65rem, 12vw, 4rem);
	}

	.t0k-ek-hero__actions,
	.t0k-ek-final-cta__actions {
		display: grid;
		width: 100%;
	}

	.t0k-ek-hero__actions .t0-button,
	.t0k-ek-final-cta__actions .t0-button {
		width: 100%;
	}

	.t0k-ek-product-frame {
		width: 112%;
		transform: perspective(70rem) rotateY(2deg) translateX(-5%);
	}

	.t0k-ek-product-placeholder {
		min-height: 19rem;
	}

	.t0k-ek-benefits__grid,
	.t0k-ek-workflow__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.t0k-ek-benefit-card {
		min-height: 0;
	}

	.t0k-ek-benefit-card__icon {
		margin-bottom: 2rem;
	}

	.t0k-ek-workflow-step {
		min-height: 14rem;
	}

	.t0k-ek-workflow-step:not(:last-child) {
		border-inline-end: 0;
		border-block-end: 1px solid rgba(20, 36, 59, 0.18);
	}

	.t0k-ek-workflow-step__number {
		margin-bottom: 2.75rem;
	}

	.t0k-ek-demo__screen,
	.t0k-ek-demo__placeholder {
		min-height: 16rem;
	}

	.t0k-ek-section-heading,
	.t0k-ek-section-heading--left {
		text-align: left;
	}

	.t0k-ek-section-heading > p:last-child {
		margin-inline-start: 0;
	}
}


/* Same-page Egenkontroll actions should feel like navigation, not a hard jump. */
html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto !important;
	}

	.t0k-egenkontroll-page *,
	.t0k-egenkontroll-page *::before,
	.t0k-egenkontroll-page *::after {
		scroll-behavior: auto !important;
	}
}

@media (forced-colors: active) {
	.t0k-ek-benefit-card,
	.t0k-ek-product-placeholder,
	.t0k-ek-demo__screen {
		border: 1px solid CanvasText;
	}
}

#egenkontroll-app,
#egenkontroll-demo {
	scroll-margin-top: 7rem;
}

.t0k-ek-app {
	width: 100%;
}
