/* =====================================================================
   DAYLIGHT — klantkant (WelcomeLayout, CustomerLayout, root class .dl)
   Nachtblauw als inkt, hemel als ondergrond, wit als raamkader,
   zongeel enkel voor de hoofdactie. Beheer valt hier buiten.
   ===================================================================== */
.dl {
	--dl-night: #14283C;
	--dl-night-2: #1E3A55;
	--dl-ink-2: #4A5F73;
	--dl-sky: #CFE3F3;
	--dl-sky-2: #EAF3FA;
	--dl-ground: #F3F7FA;
	--dl-line: #D7E3EC;
	--dl-line-2: #B9CCDA;
	--dl-sun: #F2C14E;
	--dl-sun-2: #F6D27A;
	--dl-ease: cubic-bezier(.16, 1, .3, 1);
	--dl-shadow-sm: 0 1px 2px rgba(20, 40, 60, .06);
	--dl-shadow-lg: 0 18px 36px -18px rgba(20, 40, 60, .38);
	font-family: Figtree, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--dl-night);
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
}

.dl ::selection { background: var(--dl-sun-2); color: var(--dl-night); }
.dl .mud-typography { font-family: inherit; }
.dl a { text-underline-offset: 3px; }

/* ---- Kopbalk ---- */
.dl .dl-bar.mud-appbar { box-shadow: none; }

.dl .dl-bar .mud-toolbar {
	gap: 4px;
	padding: 0 clamp(12px, 3vw, 40px);
	min-height: var(--mud-appbar-height);
}

.dl .dl-bar__brand {
	display: flex;
	align-items: center;
	padding: 6px 0;
	border-radius: 6px;
}

.dl .dl-bar__brand:focus-visible { outline: 2px solid var(--dl-sun); outline-offset: 4px; }

.dl .appbar-logo { height: 28px; }

.dl .cart-pill.mud-button-root {
	background: var(--dl-sun) !important;
	color: var(--dl-night) !important;
	box-shadow: none !important;
	padding: 4px 12px 4px 8px !important;
	font-size: .85rem;
}

@media (max-width: 600px) {
	.dl .appbar-logo { height: 20px; }
}

/* ---- Pagina ---- */
.dl .mud-main-content {
	background: var(--dl-ground);
	min-height: 100vh;
}

.dl .dl-page {
	max-width: 1440px;
	margin: 0 auto;
	padding: clamp(16px, 3vw, 40px) clamp(16px, 3vw, 40px) 0;
}

.dl .dl-page > .mud-grid { margin: 0; width: 100%; }

/* ---- Taal + WhatsApp ---- */
.dl .lang-fab .mud-button-filled {
	border-radius: 999px;
	box-shadow: var(--dl-shadow-lg);
}

@media (max-width: 600px) {
	.dl .lang-fab {
		background: var(--dl-night);
		padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
	}

	.dl .lang-fab .mud-button-filled {
		background: rgba(255, 255, 255, .12);
		box-shadow: none;
	}
}

/* ---- Typografie in de stappen ---- */
.dl .mud-typography-h4 { font-size: clamp(1.7rem, 2.6vw, 2.25rem); line-height: 1.15; }
.dl .mud-typography-h5 { font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.2; }

.dl .dl-step > .d-flex.flex-row:first-child {
	margin-bottom: 20px !important;
	gap: 12px;
}

.dl .dl-step > .d-flex.flex-row:first-child > .mud-icon-root {
	box-sizing: border-box;
	width: 40px;
	height: 40px;
	padding: 9px;
	border-radius: 10px;
	background: var(--dl-sky);
	color: var(--dl-night);
	flex: none;
}

/* ---- Voortgang ---- */
.dl .dl-progress {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 28px;
}

.dl .dl-progress__track {
	display: flex;
	flex: 1;
	gap: 6px;
	max-width: 520px;
}

.dl .dl-progress__seg {
	flex: 1;
	height: 6px;
	border-radius: 3px;
	background: var(--dl-line);
	transition: background-color .4s var(--dl-ease);
}

.dl .dl-progress__seg.is-done { background: var(--dl-night); }
.dl .dl-progress__seg.is-current { background: var(--dl-sun); }

.dl .dl-progress__label {
	font-size: .85rem;
	font-weight: 600;
	color: var(--dl-ink-2);
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

/* ---- Stapovergang: één beweging, vanuit zichtbaar ---- */
.dl .dl-step { animation: dl-rise .5s var(--dl-ease) both; }

@keyframes dl-rise {
	from { opacity: .35; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}

.dl .dl-stepnav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid var(--dl-line);
}

/* ---- Knoppen en velden ---- */
.dl .mud-button-root.mud-button { border-radius: 10px; }
.dl .mud-button-filled.mud-button-filled-primary { box-shadow: none; }
.dl .mud-button-filled.mud-button-filled-primary:hover { background-color: var(--dl-night-2); }
.dl .mud-button-outlined.mud-button-outlined-primary { border-color: var(--dl-line-2); }
.dl .mud-button-outlined.mud-button-outlined-primary:hover { border-color: var(--dl-night); background: var(--dl-sky-2); }
.dl .mud-input-outlined-border { border-radius: 10px; }
.dl .mud-alert { border-radius: 12px; }
.dl .mud-chip { font-weight: 600; }

/* ---- Kaarten (opties in elke stap) ---- */
.dl .mud-card { border-radius: 14px; }

.dl .mud-paper.mud-elevation-1,
.dl .mud-paper.mud-elevation-2,
.dl .mud-paper.mud-elevation-4 {
	box-shadow: var(--dl-shadow-sm);
	border: 1px solid var(--dl-line);
}

.dl .border-velux-blue { border-color: var(--dl-line) !important; }
.dl .velux-beige { background-color: #FFFFFF !important; }
.dl .velux-blue { background-color: var(--dl-sky-2); }

/* Opties als raster met vaste kolombreedte: 2 of 3 opties blijven even groot als 5 */
.dl .configurator-grid.mud-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 300px));
	gap: 16px;
	margin: 0;
	width: 100%;
}

.dl .configurator-grid > .mud-grid-item,
.dl .configurator-grid > .mud-grid-item[class*="mud-grid-item-"] {
	flex: none;
	max-width: none;
	width: auto;
	padding: 0;
}

@media (max-width: 600px) {
	.dl .configurator-grid.mud-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.dl .configurator-grid .mud-card-content { padding: 12px 12px 14px; }
	.dl .configurator-grid .mud-card-content > .mud-typography { font-size: .92rem; }
	.dl .configurator-card-desc { font-size: .78rem; -webkit-line-clamp: 3; }
	.dl .configurator-card-img:has(.object-contain) { padding: 10px; }
}

.dl .configurator-grid > .mud-grid-item > .mud-card {
	border-radius: 16px;
	border: 1px solid var(--dl-line);
	background: #FFFFFF;
	box-shadow: var(--dl-shadow-sm);
	transition: transform .3s var(--dl-ease), box-shadow .3s var(--dl-ease), border-color .3s ease;
}

@media (hover: hover) {
	.dl .configurator-grid > .mud-grid-item > .mud-card:hover {
		transform: translateY(-4px);
		border-color: #A9C6DD;
		box-shadow: var(--dl-shadow-lg);
	}
}

.dl .configurator-grid > .mud-grid-item > .mud-card:active { transform: scale(.985); }

/* Gekozen: nachtblauw kader met een zonnerand */
.dl .mud-card.mud-border-primary {
	border: 1px solid var(--dl-night) !important;
	box-shadow: 0 0 0 3px var(--dl-sun), var(--dl-shadow-lg) !important;
}

/* Beeld: elke productfoto op dezelfde hemelplaat, op dezelfde schaal */
.dl .configurator-card-img {
	height: auto;
	aspect-ratio: 4 / 3;
	background: linear-gradient(180deg, var(--dl-sky-2) 0%, #F8FBFD 100%);
	border-bottom: 1px solid var(--dl-line);
}

.dl .configurator-card-img-square { aspect-ratio: 4 / 3; }
.dl .configurator-card-img-compact { aspect-ratio: 3 / 2; }
.dl .configurator-card-img-sm { aspect-ratio: 1 / 1; }

.dl .configurator-card-img:has(.object-contain) { padding: 18px; }
.dl .configurator-card-img:has(.object-contain) img { mix-blend-mode: multiply; }

.dl .configurator-card-img > .mud-icon-root { color: var(--dl-line-2); font-size: 3rem; }

.dl .configurator-card-img img { transition-duration: .6s; transition-timing-function: var(--dl-ease); }
.dl .configurator-card-img:hover img { transform: scale(1.04); }

.dl .configurator-grid .mud-card-content { padding: 16px 18px 18px; }

.dl .configurator-grid .mud-card-content > .mud-typography {
	text-align: left;
	font-weight: 650;
	font-size: 1.02rem;
	line-height: 1.3;
	color: var(--dl-night);
}

.dl .configurator-card-desc {
	margin-top: 6px;
	color: var(--dl-ink-2);
	font-size: .86rem;
	text-align: left;
}

/* Advies op een kaart: rand in de kleur van het label */
.dl .configurator-card--advice:not(.mud-border-primary) {
	border-color: var(--advice-color) !important;
	box-shadow: 0 0 0 1px var(--advice-color), var(--dl-shadow-sm) !important;
}

/* ---- Categoriekeuze ---- */
.dl .category-hero {
	text-align: left;
	max-width: 1400px;
	margin: 0 auto 28px !important;
	padding: 4px 0 0;
}

.dl .category-hero .mud-typography-h4 { font-weight: 700 !important; letter-spacing: -0.025em !important; }
.dl .category-hero .mud-typography-body1 { color: var(--dl-ink-2) !important; font-size: 1.05rem; }

.dl .category-cards {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 20px;
}

.dl .category-card {
	grid-column: span 2;
	width: auto;
	min-width: 0;
	background: #FFFFFF;
	border: 1px solid var(--dl-line);
	border-radius: 18px;
	box-shadow: var(--dl-shadow-sm);
	transition: transform .35s var(--dl-ease), box-shadow .35s var(--dl-ease), border-color .3s ease;
}

/* Twee laatste kaarten van vijf: samen even breed als de rij erboven */
.dl .category-card:nth-child(4):nth-last-child(2),
.dl .category-card:nth-child(5):last-child { grid-column: span 3; }

.dl .category-card:nth-child(4):nth-last-child(2) .category-card__image,
.dl .category-card:nth-child(5):last-child .category-card__image { aspect-ratio: 21 / 9; }

@media (hover: hover) {
	.dl .category-card:hover {
		transform: translateY(-4px);
		border-color: #A9C6DD;
		box-shadow: var(--dl-shadow-lg);
	}
}

.dl .category-card__image {
	aspect-ratio: 16 / 10;
	background: var(--dl-sky-2);
}

.dl .category-card__body { padding: 18px 20px 6px; }
.dl .category-card__name { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; color: var(--dl-night); }
.dl .category-card__desc { font-size: .9rem; color: var(--dl-ink-2); margin-top: 6px; line-height: 1.5; }

.dl .category-card__action {
	opacity: 1;
	transform: none;
	justify-content: flex-start;
	padding: 10px 20px 18px;
}

.dl .category-card__action .mud-icon-root {
	box-sizing: content-box;
	padding: 7px;
	border-radius: 999px;
	background: var(--dl-sky-2);
	color: var(--dl-night) !important;
	transition: background-color .3s ease, transform .35s var(--dl-ease);
}

.dl .category-card:hover .category-card__action .mud-icon-root {
	background: var(--dl-sun);
	transform: translateX(4px);
}

@media (max-width: 960px) {
	.dl .category-cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }

	.dl .category-card,
	.dl .category-card:nth-child(4):nth-last-child(2),
	.dl .category-card:nth-child(5):last-child { grid-column: span 1; }

	.dl .category-card:nth-child(4):nth-last-child(2) .category-card__image,
	.dl .category-card:nth-child(5):last-child .category-card__image { aspect-ratio: 16 / 10; }
}

@media (max-width: 600px) {
	.dl .category-cards { grid-template-columns: 1fr; gap: 10px; }
	.dl .category-card { flex-direction: row; border-radius: 14px; }

	.dl .category-card .category-card__image,
	.dl .category-card:nth-child(4):nth-last-child(2) .category-card__image,
	.dl .category-card:nth-child(5):last-child .category-card__image { width: 112px; aspect-ratio: auto; min-height: 104px; }

	.dl .category-card__body { padding: 12px 8px 12px 14px; }
	.dl .category-card__name { font-size: 1rem; }
	.dl .category-card__desc { font-size: .82rem; -webkit-line-clamp: 2; }
	.dl .category-card__action { padding: 0 12px 0 0; align-self: center; }
}

/* ---- Welkom ---- */
.dl .dl-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, var(--dl-sky) 0%, var(--dl-sky-2) 62%, var(--dl-ground) 100%);
}

.dl .dl-hero__inner {
	position: relative;
	max-width: 1320px;
	margin: 0 auto;
	padding: clamp(40px, 8vw, 104px) clamp(16px, 4vw, 48px) clamp(56px, 9vw, 120px);
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	align-items: center;
	gap: clamp(32px, 6vw, 88px);
}

.dl .dl-hero__text { position: relative; z-index: 2; }

.dl .dl-hero__title {
	margin: 0;
	font-size: clamp(2.2rem, 4.6vw, 3.9rem);
	line-height: 1.04;
	font-weight: 750;
	letter-spacing: -0.035em;
	text-wrap: balance;
	color: var(--dl-night);
}

.dl .dl-hero__greeting {
	margin: 22px 0 0;
	font-size: 1.15rem;
	font-weight: 650;
	color: var(--dl-night);
}

.dl .dl-hero__desc {
	margin: 14px 0 0;
	max-width: 46ch;
	font-size: clamp(1rem, 1.3vw, 1.15rem);
	line-height: 1.6;
	color: #3B5166;
	text-wrap: pretty;
}

.dl .dl-hero__greeting + .dl-hero__desc { margin-top: 6px; }

.dl .dl-cta {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: 34px;
	padding: 18px 26px 18px 30px;
	border: 0;
	border-radius: 12px;
	background: var(--dl-sun);
	color: var(--dl-night);
	font: 700 1.08rem/1 Figtree, system-ui, sans-serif;
	cursor: pointer;
	box-shadow: 0 14px 28px -14px rgba(160, 110, 0, .7);
	transition: transform .3s var(--dl-ease), box-shadow .3s var(--dl-ease), background-color .2s ease;
}

.dl .dl-cta .mud-icon-root { transition: transform .35s var(--dl-ease); }
.dl .dl-cta:hover { background: #F5C95C; transform: translateY(-2px); box-shadow: 0 18px 32px -14px rgba(160, 110, 0, .75); }
.dl .dl-cta:hover .mud-icon-root { transform: translateX(4px); }
.dl .dl-cta:active { transform: translateY(0) scale(.98); }
.dl .dl-cta:focus-visible { outline: 3px solid var(--dl-night); outline-offset: 3px; }

/* Het raam: wit kader, diepe dagkant, en het licht dat erdoor naar binnen valt */
.dl .dl-hero__visual { position: relative; }

.dl .dl-window {
	position: relative;
	z-index: 1;
	padding: 12px;
	background: #FFFFFF;
	border-radius: 8px;
	box-shadow: 0 40px 80px -36px rgba(20, 40, 60, .55), 0 2px 6px rgba(20, 40, 60, .08);
	transform: perspective(1400px) rotateY(-5deg) rotateX(2deg);
	transform-origin: left center;
}

.dl .dl-window::after {
	content: "";
	position: absolute;
	inset: 12px;
	border-radius: 3px;
	box-shadow: inset 0 0 0 1px rgba(20, 40, 60, .12), inset 0 10px 18px -10px rgba(20, 40, 60, .35);
	pointer-events: none;
}

.dl .dl-window img {
	display: block;
	width: 100%;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	border-radius: 3px;
}

.dl .dl-lightfall {
	position: absolute;
	z-index: 0;
	left: -46%;
	right: 18%;
	top: 46%;
	height: 120%;
	background: linear-gradient(200deg, rgba(255, 228, 150, .9) 0%, rgba(255, 228, 150, .42) 45%, rgba(255, 233, 168, 0) 85%);
	clip-path: polygon(52% 0, 100% 0, 62% 100%, 0 100%);
	filter: blur(6px);
	pointer-events: none;
	animation: dl-light 1.6s var(--dl-ease) .15s both;
}

@keyframes dl-light {
	from { opacity: 0; clip-path: polygon(52% 0, 100% 0, 100% 0, 52% 0); }
	to { opacity: 1; clip-path: polygon(52% 0, 100% 0, 62% 100%, 0 100%); }
}

.dl .dl-steps {
	position: relative;
	background: #FFFFFF;
	border-top: 1px solid var(--dl-line);
}

.dl .dl-steps__list {
	list-style: none;
	margin: 0 auto;
	max-width: 1320px;
	padding: clamp(36px, 5vw, 64px) clamp(16px, 4vw, 48px);
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(24px, 4vw, 56px);
}

.dl .dl-steps__list li {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.dl .dl-steps__list h2 {
	margin: 4px 0 6px;
	font-size: 1.12rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--dl-night);
}

.dl .dl-steps__list p {
	margin: 0;
	font-size: .95rem;
	line-height: 1.55;
	color: var(--dl-ink-2);
	max-width: 34ch;
}

.dl .dl-steps__num {
	flex: none;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--dl-sky);
	color: var(--dl-night);
	font-weight: 750;
	font-variant-numeric: tabular-nums;
}

.dl .dl-steps__list li:first-child .dl-steps__num { background: var(--dl-sun); }

@media (max-width: 900px) {
	.dl .dl-hero__inner { grid-template-columns: 1fr; }
	.dl .dl-window { transform: none; }
	.dl .dl-lightfall { left: -20%; right: 10%; top: 55%; }
	.dl .dl-steps__list { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	.dl .dl-cta { width: 100%; justify-content: center; padding: 18px 20px; }
	.dl .dl-window { padding: 8px; }
	.dl .dl-window::after { inset: 8px; }
}

@media (prefers-reduced-motion: reduce) {
	.dl .dl-step,
	.dl .dl-lightfall { animation: none; }
	.dl .dl-window { transform: none; }
}

/* Smalle kaarten: prijschipje onder het adviesbadge i.p.v. ernaast */
@media (max-width: 600px) {
	.dl .configurator-card--advice .price-hint:not(.price-hint--compact) { top: 38px; }
}
