/* Lux Yard Decor: wizard and catalogue.
   Palette from the logo (jade, black) and the sage-and-oak nursery photo. */

:root {
	--lyd-ink: #000;
	--lyd-text: #262a27;
	--lyd-muted: #5f665f;
	--lyd-jade: #5a967b;
	--lyd-jade-deep: #3e7a5f;
	--lyd-sage: #a9b39a;
	--lyd-sage-soft: #e7ebe0;
	--lyd-linen: #f3efe7;
	--lyd-oak: #c9a577;
	--lyd-oak-deep: #a9834f;
	--lyd-rust: #a4532f;
	--lyd-line: #e2dfd6;
	--lyd-font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
	--lyd-serif: "Lux Yard Serif", "Lora", Georgia, "Times New Roman", serif;
	--lyd-scallop: 14px;
}

/* ---------- base ---------- */

.lyd-app,
.lyd-cat,
.lyd-notice,
.lyd-looks {
	font-family: var(--lyd-font);
	color: var(--lyd-text);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.lyd-app *,
.lyd-cat * {
	box-sizing: border-box;
}

.lyd-app {
	max-width: 780px;
	margin: 0 auto;
	padding: 8px 0 120px;
}

.lyd-app [hidden],
.lyd-cat [hidden] {
	display: none !important;
}

.lyd-app .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.lyd-h {
	font-family: var(--lyd-font);
	font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
	line-height: 1.15;
	font-weight: 500;
	letter-spacing: -0.02em;
	color: var(--lyd-ink);
	margin: 0 0 0.6em;
}

.lyd-h:focus {
	outline: none;
}

.lyd-sub {
	display: block;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--lyd-ink);
	margin: 1.9em 0 0.25em;
	padding: 0;
}

.lyd-help {
	color: var(--lyd-muted);
	font-size: 0.92rem;
	margin: 0 0 0.9em;
}

.lyd-lead {
	font-size: 1.08rem;
	max-width: 46ch;
}

.lyd-optional {
	font-weight: 400;
	color: var(--lyd-muted);
	font-size: 0.85rem;
	margin-left: 0.4em;
}

.lyd-app :focus-visible,
.lyd-cat :focus-visible {
	outline: 3px solid var(--lyd-jade);
	outline-offset: 2px;
}

/* Headings get focus from script to announce a new step; they are not controls. */
.lyd-app .lyd-h:focus,
.lyd-cat .lyd-h:focus {
	outline: none;
}

/* ---------- buttons ---------- */

.lyd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-height: 48px;
	padding: 0.7em 1.6em;
	border: 2px solid var(--lyd-ink);
	border-radius: 999px;
	background: var(--lyd-ink);
	color: #fff;
	font: 600 1rem/1.2 var(--lyd-font);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.lyd-btn:hover {
	background: var(--lyd-jade-deep);
	border-color: var(--lyd-jade-deep);
	color: #fff;
}

.lyd-btn:disabled {
	opacity: 0.55;
	cursor: progress;
}

.lyd-btn--ghost {
	background: transparent;
	color: var(--lyd-ink);
}

.lyd-btn--ghost:hover {
	background: var(--lyd-sage-soft);
	color: var(--lyd-ink);
	border-color: var(--lyd-ink);
}

.lyd-btn--small {
	min-height: 40px;
	padding: 0.45em 1.15em;
	font-size: 0.92rem;
}

.lyd-btn--big {
	min-height: 56px;
	padding: 0.85em 2.2em;
	font-size: 1.08rem;
}

.lyd-link {
	background: none;
	border: 0;
	padding: 0.25em 0;
	color: var(--lyd-jade-deep);
	font: 500 0.95rem/1.4 var(--lyd-font);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

/* ---------- notices ---------- */

.lyd-admin-note {
	margin: 0 0 18px;
	padding: 10px 14px;
	background: var(--lyd-linen);
	border-left: 4px solid var(--lyd-oak);
	font-size: 0.85rem;
	color: var(--lyd-text);
}

.lyd-resume {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 20px;
	margin: 0 0 22px;
	padding: 14px 18px;
	background: var(--lyd-sage-soft);
	border-radius: 4px;
}

.lyd-resume p {
	margin: 0;
}

.lyd-resume__actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

/* ---------- progress steps ---------- */

.lyd-steps {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 6px;
	margin: 0 0 34px;
	padding: 0;
	counter-reset: none;
}

.lyd-steps li {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 0.8rem;
	color: var(--lyd-muted);
	position: relative;
	padding-top: 12px;
	border-top: 4px solid var(--lyd-line);
}

.lyd-steps li.is-done {
	border-top-color: var(--lyd-sage);
	color: var(--lyd-text);
}

.lyd-steps li.is-current {
	border-top-color: var(--lyd-ink);
	color: var(--lyd-ink);
	font-weight: 600;
}

.lyd-steps__n {
	display: none;
}

/* ---------- step 1: rooms and photos ---------- */

.lyd-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	border: 0;
	margin: 0;
	padding: 0;
}

.lyd-chip {
	position: relative;
	cursor: pointer;
}

.lyd-chip input {
	position: absolute;
	opacity: 0;
	inset: 0;
}

.lyd-chip span {
	display: inline-block;
	padding: 0.65em 1.2em;
	border: 1.5px solid var(--lyd-line);
	border-radius: 999px;
	background: #fff;
	font-weight: 500;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.lyd-chip:hover span {
	border-color: var(--lyd-ink);
}

.lyd-chip input:checked + span {
	background: var(--lyd-ink);
	border-color: var(--lyd-ink);
	color: #fff;
}

.lyd-chip input:focus-visible + span {
	outline: 3px solid var(--lyd-jade);
	outline-offset: 2px;
}

.lyd-drop {
	position: relative;
	border: 2px dashed var(--lyd-oak);
	border-radius: 4px;
	background: var(--lyd-linen);
	transition: background-color 0.15s ease;
}

.lyd-drop.is-over {
	background: var(--lyd-sage-soft);
}

.lyd-drop.is-busy {
	opacity: 0.6;
	pointer-events: none;
}

.lyd-drop__input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.lyd-drop__label {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 120px;
	padding: 20px;
	cursor: pointer;
	text-align: left;
}

.lyd-drop__input:focus-visible + .lyd-drop__label {
	outline: 3px solid var(--lyd-jade);
	outline-offset: 2px;
}

.lyd-drop__icon {
	width: 46px;
	height: 46px;
	flex: none;
	border-radius: 50%;
	background: var(--lyd-ink);
	position: relative;
}

.lyd-drop__icon::before,
.lyd-drop__icon::after {
	content: "";
	position: absolute;
	background: #fff;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

.lyd-drop__icon::before {
	width: 18px;
	height: 2.5px;
}

.lyd-drop__icon::after {
	width: 2.5px;
	height: 18px;
}

.lyd-drop__text strong {
	display: block;
	font-size: 1.05rem;
	color: var(--lyd-ink);
}

.lyd-drop__text span {
	color: var(--lyd-muted);
	font-size: 0.9rem;
}

.lyd-thumbs {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 12px;
	margin: 16px 0 6px;
	padding: 0;
}

.lyd-thumb {
	position: relative;
	background: var(--lyd-oak);
	padding: 4px;
	cursor: grab;
}

.lyd-thumb img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.lyd-thumb__n {
	position: absolute;
	top: 10px;
	left: 10px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #fff;
	color: var(--lyd-ink);
	font-size: 0.8rem;
	font-weight: 600;
	display: grid;
	place-items: center;
}

.lyd-thumb.is-main .lyd-thumb__n {
	background: var(--lyd-ink);
	color: #fff;
}

.lyd-thumb__tools {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 4px;
	padding: 6px 2px 2px;
}

.lyd-thumb__btn {
	background: none;
	border: 0;
	padding: 2px 0;
	font: 500 0.75rem/1.3 var(--lyd-font);
	color: var(--lyd-ink);
	text-decoration: underline;
	cursor: pointer;
}

.lyd-thumb__badge {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--lyd-ink);
}

/* ---------- step 2: colours ---------- */

.lyd-palette-preview {
	--wall: #f1ece2;
	--accent: var(--lyd-sage);
	position: relative;
	height: 150px;
	border: 6px solid var(--lyd-oak);
	background: var(--wall);
	overflow: hidden;
	margin: 6px 0 4px;
	transition: background-color 0.25s ease;
}

.lyd-palette-preview__wainscot {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 44%;
	background: var(--accent);
	-webkit-mask: radial-gradient(circle at 50% 100%, #000 calc(var(--lyd-scallop) - 0.5px), transparent var(--lyd-scallop)) 0 0 / calc(var(--lyd-scallop) * 2) var(--lyd-scallop) repeat-x, linear-gradient(#000, #000) 0 var(--lyd-scallop) / 100% 100% no-repeat;
	mask: radial-gradient(circle at 50% 100%, #000 calc(var(--lyd-scallop) - 0.5px), transparent var(--lyd-scallop)) 0 0 / calc(var(--lyd-scallop) * 2) var(--lyd-scallop) repeat-x, linear-gradient(#000, #000) 0 var(--lyd-scallop) / 100% 100% no-repeat;
	transition: background-color 0.25s ease;
}

.lyd-palette-preview__dots {
	position: absolute;
	right: 14px;
	bottom: 12px;
	display: flex;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.lyd-palette-preview__dots li {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px 4px 4px;
	background: #fff;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 500;
}

.lyd-palette-preview__dots span {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--c);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.lyd-field {
	border: 0;
	margin: 0;
	padding: 0;
	display: block;
}

.lyd-swatches {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
	gap: 14px 8px;
}

.lyd-swatch {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	text-align: center;
}

.lyd-swatch > input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.lyd-swatch__dot {
	--c: #ccc;
	position: relative;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--c);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
	transition: transform 0.15s ease;
}

.lyd-swatch:hover .lyd-swatch__dot {
	transform: scale(1.05);
}

.lyd-swatch > input:checked ~ .lyd-swatch__dot {
	box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--lyd-ink);
}

.lyd-swatch > input:checked ~ .lyd-swatch__dot::after {
	content: "";
	position: absolute;
	right: -4px;
	top: -4px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--lyd-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.lyd-swatch > input:focus-visible ~ .lyd-swatch__dot {
	outline: 3px solid var(--lyd-jade);
	outline-offset: 6px;
}

.lyd-swatch__name {
	font-size: 0.78rem;
	line-height: 1.25;
	color: var(--lyd-text);
}

.lyd-swatch.is-disabled {
	opacity: 0.45;
}

.lyd-swatch__dot--custom {
	--c: conic-gradient(#c9875f, #efe0a8, #a9b39a, #bfd0da, #2f3e55, #e9d3cc, #c9875f);
	background: var(--c);
	overflow: hidden;
}

.lyd-swatch__dot--custom input[type="color"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
	border: 0;
	padding: 0;
}

.lyd-sample-btn {
	margin-top: 14px;
}

.lyd-sampler {
	margin-top: 10px;
}

.lyd-sampler__canvas {
	display: block;
	max-width: 100%;
	cursor: crosshair;
	border: 4px solid var(--lyd-oak);
}

.lyd-count {
	margin: 12px 0 0;
	font-size: 0.9rem;
	color: var(--lyd-muted);
	font-weight: 500;
}

.lyd-count.is-ok {
	color: var(--lyd-jade-deep);
}

/* ---------- step 3: looks ---------- */

.lyd-insp {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
}

.lyd-insp__card {
	position: relative;
	display: block;
	cursor: pointer;
}

.lyd-insp__card input {
	position: absolute;
	opacity: 0;
}

.lyd-insp__img {
	display: block;
	padding: 5px;
	background: var(--lyd-line);
	transition: background-color 0.15s ease;
}

.lyd-insp__img img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.lyd-insp__card:hover .lyd-insp__img {
	background: var(--lyd-oak);
}

.lyd-insp__card input:checked ~ .lyd-insp__img {
	background: var(--lyd-ink);
}

.lyd-insp__card input:focus-visible ~ .lyd-insp__img {
	outline: 3px solid var(--lyd-jade);
	outline-offset: 3px;
}

.lyd-insp__title {
	display: block;
	margin-top: 8px;
	font-weight: 600;
	color: var(--lyd-ink);
	line-height: 1.3;
}

.lyd-insp__tags {
	display: block;
	font-family: var(--lyd-serif);
	font-style: italic;
	font-size: 0.9rem;
	color: var(--lyd-muted);
}

.lyd-insp__tick {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: inset 0 0 0 2px var(--lyd-ink);
}

.lyd-insp__card input:checked ~ .lyd-insp__tick {
	background: var(--lyd-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
	box-shadow: none;
}

.lyd-insp__item.is-disabled {
	opacity: 0.5;
}

/* ---------- step 4: budget ---------- */

.lyd-budget {
	padding: 26px 24px 22px;
	background: var(--lyd-linen);
	border-radius: 4px;
}

.lyd-budget__value {
	display: block;
	font-size: clamp(2.6rem, 2rem + 3vw, 3.6rem);
	font-weight: 500;
	letter-spacing: -0.03em;
	line-height: 1;
	color: var(--lyd-ink);
	margin-bottom: 18px;
}

.lyd-budget__range {
	--fill: 14%;
	width: 100%;
	height: 28px;
	margin: 0;
	background: transparent;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.lyd-budget__range::-webkit-slider-runnable-track {
	height: 8px;
	border-radius: 999px;
	background: linear-gradient(to right, var(--lyd-ink) var(--fill), var(--lyd-sage) var(--fill));
}

.lyd-budget__range::-moz-range-track {
	height: 8px;
	border-radius: 999px;
	background: var(--lyd-sage);
}

.lyd-budget__range::-moz-range-progress {
	height: 8px;
	border-radius: 999px;
	background: var(--lyd-ink);
}

.lyd-budget__range::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 28px;
	height: 28px;
	margin-top: -10px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid var(--lyd-ink);
}

.lyd-budget__range::-moz-range-thumb {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid var(--lyd-ink);
}

.lyd-budget__ends {
	display: flex;
	justify-content: space-between;
	font-size: 0.82rem;
	color: var(--lyd-muted);
	margin: 4px 0 16px;
}

.lyd-budget__exact {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 0.9rem;
	color: var(--lyd-muted);
	margin-bottom: 14px;
}

.lyd-budget__exact input {
	width: 140px;
}

.lyd-chips--small {
	gap: 8px;
}

.lyd-chip-btn {
	padding: 0.4em 1em;
	border: 1.5px solid var(--lyd-ink);
	border-radius: 999px;
	background: transparent;
	font: 500 0.9rem/1.3 var(--lyd-font);
	color: var(--lyd-ink);
	cursor: pointer;
}

.lyd-chip-btn:hover {
	background: var(--lyd-ink);
	color: #fff;
}

.lyd-notes {
	margin-top: 6px;
}

/* ---------- fields ---------- */

.lyd-app input[type="email"],
.lyd-app input[type="tel"],
.lyd-app input[type="text"],
.lyd-app input[type="number"],
.lyd-app textarea {
	width: 100%;
	min-height: 50px;
	padding: 0.7em 0.9em;
	border: 1.5px solid #cfcbc0;
	border-radius: 4px;
	background: #fff;
	color: var(--lyd-ink);
	font: 400 1rem/1.4 var(--lyd-font);
}

.lyd-app input:focus,
.lyd-app textarea:focus {
	border-color: var(--lyd-ink);
	outline: none;
	box-shadow: 0 0 0 3px rgba(90, 150, 123, 0.35);
}

.lyd-app .lyd-field .lyd-help {
	display: block;
	margin-top: 6px;
}

.lyd-hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.lyd-summary {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 0;
	margin: 26px 0 20px;
	border-top: 1px solid var(--lyd-line);
}

.lyd-summary div {
	padding: 12px 12px 12px 0;
	border-bottom: 1px solid var(--lyd-line);
}

.lyd-summary dt {
	font-size: 0.8rem;
	color: var(--lyd-muted);
}

.lyd-summary dd {
	margin: 0;
	font-weight: 600;
	color: var(--lyd-ink);
}

.lyd-check {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	font-size: 0.95rem;
	cursor: pointer;
}

.lyd-check input {
	width: 22px;
	height: 22px;
	flex: none;
	margin-top: 2px;
	accent-color: var(--lyd-ink);
}

.lyd-check a {
	color: var(--lyd-jade-deep);
	margin-left: 4px;
}

.lyd-free-note {
	margin-top: 14px;
}

.lyd-error {
	margin: 22px 0 0;
	padding: 12px 16px;
	border-left: 4px solid var(--lyd-rust);
	background: #f8ece6;
	color: #6b2c14;
	font-weight: 500;
}

/* ---------- actions ---------- */

.lyd-actions {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 34px;
}

.lyd-actions [data-action="next"],
.lyd-actions [data-action="submit"] {
	margin-left: auto;
}

@media (max-width: 640px) {
	.lyd-actions {
		position: sticky;
		bottom: 0;
		z-index: 20;
		margin: 28px -16px 0;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, 0.96);
		border-top: 1px solid var(--lyd-line);
	}

	.lyd-actions .lyd-btn {
		flex: 1;
	}

	.lyd-steps__t {
		font-size: 0.72rem;
	}
}

/* ---------- stages ---------- */

.lyd-stage {
	padding: 10px 0 30px;
}

.lyd-bar {
	height: 10px;
	border-radius: 999px;
	background: var(--lyd-sage-soft);
	overflow: hidden;
	margin: 18px 0 14px;
}

.lyd-bar__fill {
	display: block;
	width: 6%;
	height: 100%;
	border-radius: inherit;
	background: var(--lyd-ink);
	transition: width 0.6s ease;
}

.lyd-bar--indeterminate .lyd-bar__fill {
	width: 35%;
	animation: lyd-slide 1.6s ease-in-out infinite;
}

@keyframes lyd-slide {
	0% { transform: translateX(-100%); }
	100% { transform: translateX(300%); }
}

.lyd-working,
.lyd-reveal,
.lyd-waiting,
.lyd-done,
.lyd-failed {
	padding: 40px 0 10px;
}

.lyd-working__room {
	display: flex;
	gap: 6px;
	margin-bottom: 26px;
}

.lyd-working__room span {
	width: 34px;
	height: 17px;
	border-radius: 34px 34px 0 0;
	background: var(--lyd-sage);
	animation: lyd-rise 1.4s ease-in-out infinite;
	transform-origin: bottom;
}

.lyd-working__room span:nth-child(2) {
	animation-delay: 0.18s;
	background: var(--lyd-oak);
}

.lyd-working__room span:nth-child(3) {
	animation-delay: 0.36s;
	background: var(--lyd-jade);
}

@keyframes lyd-rise {
	0%, 100% { transform: scaleY(0.55); }
	50% { transform: scaleY(1); }
}

.lyd-working__label {
	font-weight: 500;
	color: var(--lyd-ink);
	margin: 0;
}

/* ---------- preview viewer ---------- */

.lyd-lock {
	overflow: hidden;
}

.lyd-viewer {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 64px 20px 20px;
	background: rgba(14, 16, 14, 0.95);
	-webkit-user-select: none;
	user-select: none;
	animation: lyd-fade 0.3s ease both;
}

@keyframes lyd-fade {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.lyd-viewer__frame {
	position: relative;
	max-width: min(1000px, 100%);
	animation: lyd-zoom-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.lyd-viewer__stage {
	--split: 100%;
	position: relative;
	display: inline-block;
	max-width: 100%;
	vertical-align: top;
	touch-action: none;
}

@keyframes lyd-zoom-in {
	from {
		opacity: 0;
		transform: scale(0.96);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.lyd-viewer__img {
	display: block;
	max-width: 100%;
	max-height: 74vh;
	width: auto;
	height: auto;
	border-radius: 8px;
	background: #222;
	pointer-events: none;
}

.lyd-viewer__before {
	position: absolute;
	inset: 0;
	border-radius: 8px;
	overflow: hidden;
	clip-path: inset(0 calc(100% - var(--split)) 0 0);
	pointer-events: none;
}

.lyd-viewer__before img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lyd-viewer__handle {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--split);
	width: 2px;
	margin-left: -1px;
	background: #fff;
	box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
	pointer-events: none;
}

.lyd-viewer__handle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 42px;
	height: 42px;
	margin: -21px 0 0 -21px;
	border-radius: 50%;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.lyd-viewer__stage.is-revealed:not(.is-dragging) .lyd-viewer__before {
	transition: clip-path 1.6s cubic-bezier(0.65, 0, 0.25, 1);
}

.lyd-viewer__stage.is-revealed:not(.is-dragging) .lyd-viewer__handle {
	transition: left 1.6s cubic-bezier(0.65, 0, 0.25, 1);
}

.lyd-viewer__stage:has(.lyd-viewer__before:not([hidden])) {
	cursor: ew-resize;
}

.lyd-viewer__label {
	position: absolute;
	top: 12px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 600;
	pointer-events: none;
}

.lyd-viewer__label--before {
	left: 12px;
}

.lyd-viewer__label--after {
	right: 12px;
}

.lyd-viewer__before[hidden] ~ .lyd-viewer__label {
	display: none;
}

.lyd-viewer__clock {
	position: absolute;
	right: 12px;
	bottom: 12px;
	width: 50px;
	height: 50px;
	pointer-events: none;
}

.lyd-viewer__ring {
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}

.lyd-viewer__ring circle {
	fill: rgba(0, 0, 0, 0.5);
	stroke: #fff;
	stroke-width: 2.6;
	stroke-dasharray: 100;
	stroke-dashoffset: 0;
}

.lyd-viewer__count {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: #fff;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.lyd-viewer__close {
	position: absolute;
	top: -46px;
	right: 0;
	padding: 7px 16px;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 999px;
	background: transparent;
	color: #fff;
	font: inherit;
	font-size: 0.88rem;
	cursor: pointer;
}

.lyd-viewer__close:hover {
	background: rgba(255, 255, 255, 0.12);
}

.lyd-viewer__note {
	max-width: 62ch;
	margin: 12px 0 0;
	color: #e8e6df;
	font-size: 0.88rem;
}

.lyd-viewer__demo {
	display: block;
	margin-bottom: 4px;
	color: #f3d27a;
	font-weight: 600;
}

.lyd-viewer__demo[hidden] {
	display: none;
}

/* ---------- payment ---------- */

.lyd-pay {
	padding-top: 20px;
}

.lyd-pay__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 6px 20px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--lyd-line);
}

.lyd-pay__head .lyd-h {
	margin: 0;
}

.lyd-pay__price {
	margin: 0;
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.lyd-pay__amount {
	font-size: 2.4rem;
	font-weight: 600;
	letter-spacing: -0.03em;
	color: var(--lyd-ink);
	line-height: 1;
}

.lyd-pay__was {
	color: var(--lyd-muted);
	text-decoration: line-through;
}

.lyd-pay__seen {
	margin: 18px 0 0;
	color: var(--lyd-muted);
}

.lyd-pay__list {
	list-style: none;
	margin: 18px 0 26px;
	padding: 0;
	display: grid;
	gap: 10px;
}

.lyd-pay__list li {
	position: relative;
	padding-left: 32px;
}

.lyd-pay__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--lyd-sage-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%233e7a5f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.lyd-pay__form {
	padding: 24px;
	background: var(--lyd-linen);
	border-radius: 4px;
}

.lyd-networks {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	border: 0;
	margin: 0 0 6px;
	padding: 0;
}

.lyd-networks .lyd-sub {
	grid-column: 1 / -1;
	margin: 0 0 4px;
}

.lyd-network {
	position: relative;
	cursor: pointer;
}

.lyd-network input {
	position: absolute;
	opacity: 0;
}

.lyd-network__name {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 60px;
	padding: 0 16px;
	background: #fff;
	border: 2px solid var(--lyd-line);
	border-radius: 4px;
	font-weight: 600;
	color: var(--lyd-ink);
}

.lyd-network__name::before {
	content: "";
	width: 14px;
	height: 14px;
	border-radius: 50%;
	flex: none;
}

.lyd-network--airtel .lyd-network__name::before {
	background: #e3001b;
}

.lyd-network--mtn .lyd-network__name::before {
	background: #ffcb05;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.lyd-network input:checked + .lyd-network__name {
	border-color: var(--lyd-ink);
	box-shadow: inset 0 0 0 1px var(--lyd-ink);
}

.lyd-network input:focus-visible + .lyd-network__name {
	outline: 3px solid var(--lyd-jade);
	outline-offset: 2px;
}

/* Keep "Airtel Money" and "MTN MoMo" on one line on small phones. */
@media (max-width: 480px) {
	.lyd-networks {
		gap: 8px;
	}

	.lyd-network__name {
		gap: 8px;
		padding: 0 10px;
		font-size: 0.94rem;
		white-space: nowrap;
	}

	.lyd-network__name::before {
		width: 12px;
		height: 12px;
	}
}

.lyd-pay__form .lyd-field .lyd-sub {
	margin-top: 18px;
}

.lyd-coupon {
	margin: 16px 0 0;
}

.lyd-coupon summary {
	cursor: pointer;
	color: var(--lyd-jade-deep);
	font-weight: 500;
	font-size: 0.92rem;
}

.lyd-coupon__row {
	display: flex;
	gap: 10px;
	margin-top: 10px;
}

.lyd-coupon__row input {
	text-transform: uppercase;
}

.lyd-coupon__msg {
	margin: 8px 0 0;
	font-size: 0.88rem;
	color: var(--lyd-muted);
}

.lyd-pay__submit {
	width: 100%;
	margin-top: 22px;
}

.lyd-pay__fine {
	margin: 12px 0 0;
	text-align: center;
}

.lyd-phone {
	width: 54px;
	height: 90px;
	border: 4px solid var(--lyd-ink);
	border-radius: 12px;
	position: relative;
	margin-bottom: 24px;
}

.lyd-phone span {
	position: absolute;
	left: 8px;
	right: 8px;
	top: 18px;
	height: 26px;
	border-radius: 4px;
	background: var(--lyd-sage);
	animation: lyd-ping 1.6s ease-in-out infinite;
}

@keyframes lyd-ping {
	0%, 100% { opacity: 0.35; }
	50% { opacity: 1; }
}

/* ---------- generic notice ---------- */

.lyd-notice {
	max-width: 640px;
	margin: 30px auto;
	padding: 34px 32px;
	background: var(--lyd-linen);
	border-radius: 4px;
}

.lyd-notice h2 {
	font-family: var(--lyd-font);
	font-weight: 500;
	font-size: 1.7rem;
	letter-spacing: -0.02em;
	color: var(--lyd-ink);
	margin: 0 0 0.5em;
	line-height: 1.2;
}

.lyd-finishing .lyd-working__room {
	margin-bottom: 18px;
}

/* ---------- looks strip shortcode ---------- */

.lyd-looks {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 22px;
	margin: 0;
	padding: 0;
}

.lyd-look img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border: 5px solid var(--lyd-oak);
}

.lyd-look__title {
	display: block;
	margin-top: 10px;
	font-weight: 600;
	color: var(--lyd-ink);
}

.lyd-look__tags {
	display: block;
	font-family: var(--lyd-serif);
	font-style: italic;
	color: var(--lyd-muted);
	font-size: 0.92rem;
}

/* =========================================================
   Catalogue
   ========================================================= */

.lyd-cat {
	max-width: 1080px;
	margin: 0 auto;
}

.lyd-cat__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	padding: 14px 0;
	border-bottom: 1px solid var(--lyd-line);
}

.lyd-cat__meta {
	margin: 0;
	font-size: 0.88rem;
	color: var(--lyd-muted);
}

.lyd-cat__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
}

.lyd-cat__resend-msg {
	flex-basis: 100%;
	margin: 0;
	font-size: 0.88rem;
	color: var(--lyd-jade-deep);
	text-align: right;
}

.lyd-cat__resend-msg:empty {
	display: none;
}

.lyd-cat__cover {
	padding: 40px 0 0;
}

.lyd-cat__title {
	font-family: var(--lyd-font);
	font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4rem);
	line-height: 1.04;
	letter-spacing: -0.035em;
	font-weight: 500;
	color: var(--lyd-ink);
	margin: 0;
	max-width: 15ch;
}

.lyd-cat__sub {
	font-family: var(--lyd-serif);
	font-style: italic;
	font-size: 1.25rem;
	color: var(--lyd-muted);
	margin: 0.4em 0 28px;
}

.lyd-cat__hero {
	position: relative;
	z-index: 1;
	margin-bottom: -60px;
}

/* Before/after */

.lyd-ba {
	--pos: 0%;
	position: relative;
	margin: 0;
	border: 8px solid var(--lyd-oak);
	background: var(--lyd-oak);
	overflow: hidden;
}

.lyd-ba__after {
	display: block;
	width: 100%;
	height: auto;
}

.lyd-ba__before {
	position: absolute;
	inset: 0;
	clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.lyd-ba__before img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.lyd-ba__before::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--pos);
	width: 3px;
	margin-left: -1.5px;
	background: #fff;
}

.lyd-ba__range {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: ew-resize;
}

.lyd-ba__label {
	position: absolute;
	bottom: 14px;
	padding: 3px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--lyd-ink);
	pointer-events: none;
}

.lyd-ba__label--before {
	left: 14px;
}

.lyd-ba__label--after {
	right: 14px;
}

/* Wainscot band: sage with a scalloped top edge, like the nursery wall. */

.lyd-cat__wainscot {
	position: relative;
	background: var(--lyd-sage);
	padding: 100px 0 46px;
	margin: 0 calc(50% - 50vw);
	padding-left: calc(50vw - 50%);
	padding-right: calc(50vw - 50%);
}

.lyd-cat__wainscot::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: calc(var(--lyd-scallop) * -1 + 1px);
	height: var(--lyd-scallop);
	background: radial-gradient(circle at 50% 100%, var(--lyd-sage) calc(var(--lyd-scallop) - 0.5px), transparent var(--lyd-scallop)) 0 0 / calc(var(--lyd-scallop) * 2) var(--lyd-scallop) repeat-x;
}

.lyd-cat__inner {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 20px;
}

.lyd-cat__palette {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 14px 28px;
	margin: 0 0 30px;
	padding: 0;
}

.lyd-cat__palette li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.lyd-cat__palette strong {
	display: block;
	color: var(--lyd-ink);
	line-height: 1.2;
}

.lyd-cat__palette small {
	display: block;
	font-size: 0.78rem;
	color: #2e332f;
}

.lyd-dot-lg {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--c);
	box-shadow: 0 0 0 3px #fff;
	flex: none;
}

.lyd-cat__figures {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin: 0 0 28px;
	background: #fff;
	border-radius: 4px;
}

.lyd-cat__figures div {
	padding: 16px 20px;
}

.lyd-cat__figures div + div {
	border-left: 1px solid var(--lyd-line);
}

.lyd-cat__figures dt {
	font-size: 0.82rem;
	color: var(--lyd-muted);
}

.lyd-cat__figures dd {
	margin: 2px 0 0;
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--lyd-ink);
}

.lyd-cat__summary {
	font-family: var(--lyd-serif);
	font-size: 1.15rem;
	line-height: 1.7;
	color: #1c201d;
	max-width: 62ch;
	margin: 0;
}

.lyd-cat__section {
	padding: 64px 0 0;
}

.lyd-cat__h {
	font-family: var(--lyd-font);
	font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
	font-weight: 500;
	letter-spacing: -0.02em;
	color: var(--lyd-ink);
	margin: 0 0 0.5em;
}

.lyd-cat__lede {
	color: var(--lyd-muted);
	max-width: 64ch;
	margin: 0 0 26px;
}

.lyd-cat__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 28px;
}

.lyd-cat__caption {
	display: flex;
	justify-content: space-between;
	margin: 8px 0 0;
	font-size: 0.88rem;
	color: var(--lyd-muted);
}

.lyd-cat__caption a {
	color: var(--lyd-jade-deep);
}

.lyd-cat__notes .lyd-cat__lede {
	font-family: var(--lyd-serif);
	font-size: 1.12rem;
	line-height: 1.7;
	color: var(--lyd-text);
}

.lyd-cat__tips {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 28px;
}

.lyd-cat__tipcol h3 {
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--lyd-ink);
	margin: 0 0 10px;
	padding-bottom: 8px;
	border-bottom: 3px solid var(--lyd-sage);
}

.lyd-cat__tipcol ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lyd-cat__tipcol li {
	position: relative;
	padding: 0 0 12px 18px;
	font-size: 0.97rem;
}

.lyd-cat__tipcol li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--lyd-jade);
}

/* Shopping list */

.lyd-items {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 2px solid var(--lyd-ink);
}

.lyd-item {
	display: grid;
	grid-template-columns: 96px 1fr 180px 130px;
	gap: 18px;
	align-items: start;
	padding: 18px 0;
	border-bottom: 1px solid var(--lyd-line);
}

.lyd-item__img {
	display: block;
	width: 96px;
	height: 96px;
	object-fit: cover;
	background: var(--lyd-sage-soft);
}

.lyd-item__img--blank {
	background: var(--c);
}

.lyd-item__cat {
	margin: 0;
	font-size: 0.8rem;
	color: var(--lyd-muted);
}

.lyd-item__name {
	margin: 2px 0 4px;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--lyd-ink);
}

.lyd-item__name a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--lyd-sage);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.lyd-item__meta {
	margin: 0;
	font-size: 0.9rem;
	color: var(--lyd-text);
}

.lyd-item__why {
	margin: 6px 0 0;
	font-family: var(--lyd-serif);
	font-style: italic;
	font-size: 0.95rem;
	color: var(--lyd-jade-deep);
}

.lyd-item__shop {
	margin: 0;
	font-size: 0.92rem;
	font-weight: 500;
	color: var(--lyd-ink);
}

.lyd-item__shop small,
.lyd-item__price small {
	display: block;
	font-size: 0.8rem;
	font-weight: 400;
	color: var(--lyd-muted);
}

.lyd-item__price {
	margin: 0;
	text-align: right;
}

.lyd-item__price strong {
	font-size: 1.15rem;
	color: var(--lyd-ink);
}

.lyd-totals {
	margin: 0 0 0 auto;
	max-width: 420px;
	padding: 18px 0 0;
}

.lyd-totals div {
	display: flex;
	justify-content: space-between;
	padding: 6px 0;
}

.lyd-totals dt {
	color: var(--lyd-muted);
}

.lyd-totals dd {
	margin: 0;
	font-weight: 600;
	color: var(--lyd-ink);
}

.lyd-totals__main dt,
.lyd-totals__main dd {
	font-size: 1.25rem;
	color: var(--lyd-ink);
	font-weight: 600;
}

/* Shops */

.lyd-shops {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 18px;
	margin: 0 0 40px;
	padding: 0;
}

.lyd-shop {
	padding: 22px;
	background: var(--lyd-sage-soft);
	border-radius: 4px;
}

.lyd-shop__name {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--lyd-ink);
}

.lyd-shop__count {
	margin: 2px 0 10px;
	font-size: 0.88rem;
	color: var(--lyd-jade-deep);
	font-weight: 500;
}

.lyd-shop__line {
	margin: 0;
	font-size: 0.92rem;
}

.lyd-shop__note {
	margin: 8px 0 0;
	font-family: var(--lyd-serif);
	font-style: italic;
	font-size: 0.95rem;
}

.lyd-shop__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 14px 0 0;
}

.lyd-shop__links a {
	padding: 0.35em 0.95em;
	border: 1.5px solid var(--lyd-ink);
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--lyd-ink);
	text-decoration: none;
	background: #fff;
}

.lyd-shop__links a:hover {
	background: var(--lyd-ink);
	color: #fff;
}

@media (max-width: 760px) {
	.lyd-cat__figures {
		grid-template-columns: 1fr 1fr;
	}

	.lyd-cat__figures div:nth-child(3) {
		border-left: 0;
	}

	.lyd-cat__figures div:nth-child(n + 3) {
		border-top: 1px solid var(--lyd-line);
	}

	.lyd-item {
		grid-template-columns: 72px 1fr;
		gap: 4px 14px;
	}

	.lyd-item__img {
		width: 72px;
		height: 72px;
		grid-row: span 3;
	}

	.lyd-item__shop,
	.lyd-item__price {
		grid-column: 2;
		text-align: left;
	}

	.lyd-cat__hero {
		margin-bottom: -40px;
	}

	.lyd-cat__wainscot {
		padding-top: 70px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lyd-app *,
	.lyd-cat * {
		animation: none !important;
		transition: none !important;
	}
}

/* ---------- print / save as PDF ---------- */

@media print {
	@page {
		size: A4;
		margin: 14mm;
	}

	body.lyd-page-catalogue .site-header,
	body.lyd-page-catalogue .site-footer,
	.lyd-cat__bar .lyd-cat__actions,
	.lyd-ba__range,
	.lyd-ba__before,
	.lyd-ba__label {
		display: none !important;
	}

	.lyd-cat__wainscot {
		margin: 0;
		padding: 60px 16px 24px;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	.lyd-cat__section,
	.lyd-item,
	.lyd-shop,
	.lyd-cat__view {
		break-inside: avoid;
	}

	.lyd-cat__views,
	.lyd-cat__list,
	.lyd-cat__shops {
		break-before: page;
	}

	.lyd-ba,
	.lyd-dot-lg,
	.lyd-shop,
	.lyd-cat__figures {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}
}

/* ---------- motion: steps, picks, designing, celebration ---------- */

.lyd-steps li {
	transition: border-color 0.4s ease, color 0.4s ease;
}

.lyd-step--in-next {
	animation: lyd-in-next 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.lyd-step--in-prev {
	animation: lyd-in-prev 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes lyd-in-next {
	from {
		opacity: 0;
		transform: translateX(28px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes lyd-in-prev {
	from {
		opacity: 0;
		transform: translateX(-28px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes lyd-pop {
	0% {
		transform: scale(0.6);
	}

	60% {
		transform: scale(1.12);
	}

	100% {
		transform: scale(1);
	}
}

.lyd-chip input:checked + span,
.lyd-swatch > input:checked ~ .lyd-swatch__dot,
.lyd-insp__card input:checked ~ .lyd-insp__tick {
	animation: lyd-pop 0.35s cubic-bezier(0.2, 1.3, 0.4, 1);
}

.lyd-insp__img {
	overflow: hidden;
}

.lyd-insp__img img {
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.lyd-insp__card:hover .lyd-insp__img img {
	transform: scale(1.04);
}

.lyd-thumb {
	animation: lyd-thumb-in 0.4s cubic-bezier(0.2, 1.2, 0.4, 1) both;
}

@keyframes lyd-thumb-in {
	from {
		opacity: 0;
		transform: translateY(10px) scale(0.94);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.lyd-prefilled {
	margin: 0 0 22px;
	padding: 12px 16px;
	border-radius: 10px;
	background: var(--lyd-sage-soft, #e7ebe0);
	color: var(--lyd-ink);
	font-weight: 500;
	animation: lyd-fade 0.5s ease both;
}

.lyd-prefilled[hidden] {
	display: none;
}

.lyd-working__photo {
	position: relative;
	width: min(440px, 100%);
	aspect-ratio: 4 / 3;
	margin: 0 0 26px;
	border-radius: 10px;
	overflow: hidden;
	background: var(--lyd-line);
	box-shadow: 0 24px 50px -28px rgba(20, 30, 20, 0.6);
}

.lyd-working__photo[hidden] {
	display: none;
}

.lyd-working__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	animation: lyd-breathe 6s ease-in-out infinite alternate;
}

@keyframes lyd-breathe {
	from {
		transform: scale(1);
		filter: saturate(0.85);
	}

	to {
		transform: scale(1.05);
		filter: saturate(1.1);
	}
}

.lyd-working__scan {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 40%;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(169, 179, 154, 0.45) 75%, rgba(255, 255, 255, 0.85));
	animation: lyd-scan 2.8s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}

@keyframes lyd-scan {
	from {
		transform: translateY(-100%);
	}

	to {
		transform: translateY(260%);
	}
}

.lyd-working__dots {
	position: absolute;
	left: 14px;
	bottom: 14px;
	display: flex;
	gap: 8px;
}

.lyd-working__dots i {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--c);
	box-shadow: 0 0 0 3px #fff, 0 6px 14px rgba(0, 0, 0, 0.3);
	animation: lyd-pop 0.5s cubic-bezier(0.2, 1.5, 0.4, 1) both;
	animation-delay: calc(0.3s + var(--i) * 0.15s);
}

.lyd-done {
	position: relative;
}

.lyd-done__tick {
	display: block;
	width: 64px;
	height: 64px;
	margin: 0 0 18px;
}

.lyd-done__tick circle {
	fill: var(--lyd-jade, #5a967b);
	transform-origin: center;
	animation: lyd-pop 0.5s cubic-bezier(0.2, 1.5, 0.4, 1) both;
}

.lyd-done__tick path {
	fill: none;
	stroke: #fff;
	stroke-width: 4;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 40;
	stroke-dashoffset: 40;
	animation: lyd-draw 0.45s ease forwards 0.35s;
}

@keyframes lyd-draw {
	to {
		stroke-dashoffset: 0;
	}
}

.lyd-confetti {
	position: absolute;
	left: 0;
	right: 0;
	top: -40px;
	height: 0;
	pointer-events: none;
}

.lyd-confetti i {
	position: absolute;
	top: 0;
	left: var(--x);
	width: 9px;
	height: 14px;
	border-radius: 2px;
	background: var(--c);
	opacity: 0;
	transform: scale(var(--s));
	animation: lyd-fall 2.2s cubic-bezier(0.25, 0.6, 0.4, 1) both var(--d);
}

@keyframes lyd-fall {
	0% {
		opacity: 1;
		transform: translateY(0) rotate(0) scale(var(--s));
	}

	100% {
		opacity: 0;
		transform: translateY(380px) rotate(var(--r)) scale(var(--s));
	}
}

/* ---------- opening soon (demo mode) ---------- */

.lyd-soon {
	padding: 30px 0;
	text-align: center;
}

.lyd-soon__looks {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}

.lyd-soon__looks li {
	width: min(180px, 30%);
}

.lyd-soon__looks li:nth-child(2) {
	transform: translateY(-10px);
}

.lyd-soon__looks img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 8px;
}

.lyd-soon .lyd-lead {
	max-width: 48ch;
	margin-left: auto;
	margin-right: auto;
}

.lyd-soon__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 12px 18px;
	margin-top: 26px;
}

@media (prefers-reduced-motion: reduce) {
	.lyd-step--in-next,
	.lyd-step--in-prev,
	.lyd-chip input:checked + span,
	.lyd-swatch > input:checked ~ .lyd-swatch__dot,
	.lyd-insp__card input:checked ~ .lyd-insp__tick,
	.lyd-thumb,
	.lyd-working__photo img,
	.lyd-working__scan,
	.lyd-working__dots i,
	.lyd-viewer,
	.lyd-viewer__frame,
	.lyd-done__tick circle,
	.lyd-confetti i {
		animation: none !important;
	}

	.lyd-done__tick path {
		animation: none;
		stroke-dashoffset: 0;
	}

	.lyd-viewer__stage.is-revealed:not(.is-dragging) .lyd-viewer__before,
	.lyd-viewer__stage.is-revealed:not(.is-dragging) .lyd-viewer__handle {
		transition: none;
	}
}
