/* LUXE PULSE — First-order popup ($70 off) */

.lpfo-root {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.lpfo-root.is-open {
	display: flex;
}

.lpfo-overlay {
	position: absolute;
	inset: 0;
	background: rgba(23, 21, 19, 0.58);
	animation: lpfo-fade 0.25s ease;
}

.lpfo-modal {
	position: relative;
	width: 100%;
	/* v1.0.6: the card must never own more than half the screen height.
	   Content below is compacted to fit inside 50vh on common viewports,
	   and overflow-y:auto is the safety net on very short ones. */
	max-width: 720px;
	max-height: 50vh;
	min-height: 0;
	overflow-y: auto;
	background: #fff;
	display: grid;
	grid-template-columns: minmax(0, 44%) minmax(0, 56%);
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
	animation: lpfo-pop 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.lpfo-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #161513;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.18s ease, color 0.18s ease;
}

.lpfo-close:hover {
	background: #161513;
	color: #fff;
}

/* Left visual */
.lpfo-media {
	position: relative;
	min-height: 240px;
	background: #efe9e2 center / cover no-repeat;
}

.lpfo-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.14));
}

.lpfo-monogram {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	font-size: 34px;
	letter-spacing: 0.22em;
	line-height: 1.5;
	color: #a98c4e;
	text-align: center;
}

/* Right form panel */
.lpfo-panel {
	padding: 22px 26px 20px;
}

.lpfo-title {
	font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	font-weight: 600;
	font-size: clamp(24px, 2.6vw, 30px);
	line-height: 1.05;
	text-align: center;
	color: #161513;
	margin: 0 0 5px;
}

.lpfo-sub {
	text-align: center;
	font-size: 11.5px;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: #161513;
	margin: 0 0 10px;
}

.lpfo-copy {
	text-align: center;
	font-size: 12.5px;
	line-height: 1.55;
	color: #5c574f;
	margin: 0 0 12px;
}

.lpfo-field {
	display: block;
	margin: 0 0 8px;
}

.lpfo-field > span {
	display: block;
	font-size: 10px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #8a8378;
	margin: 0 0 4px;
}

.lpfo-field input {
	width: 100%;
	height: 40px;
	border: 1px solid #d9d3c9;
	border-radius: 2px;
	background: #faf8f5;
	padding: 0 14px;
	font-size: 15px;
	font-family: inherit;
	color: #161513;
	outline: none;
	transition: border-color 0.18s ease, background 0.18s ease;
}

.lpfo-field input:focus {
	border-color: #161513;
	background: #fff;
}

.lpfo-check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 13px;
	line-height: 1.5;
	color: #4c4841;
	margin: 0 0 8px;
	cursor: pointer;
}

.lpfo-check input {
	flex: none;
	width: 15px;
	height: 15px;
	margin-top: 2px;
	accent-color: #161513;
}

.lpfo-legal {
	font-size: 9.5px;
	line-height: 1.4;
	color: #98918a;
	margin: -2px 0 6px 25px;
}

.lpfo-legal a {
	color: #98918a;
	text-decoration: underline;
}

.lpfo-cta {
	display: flex;
	width: 100%;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	margin-top: 4px;
	border: 0;
	border-radius: 2px;
	background: #161513;
	color: #fff;
	font-family: inherit;
	font-size: 13px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.18s ease;
}

.lpfo-cta:hover {
	background: #3a372f;
}

.lpfo-cta.is-loading {
	opacity: 0.75;
	pointer-events: none;
}

.lpfo-error {
	font-size: 13px;
	line-height: 1.5;
	color: #b3261e;
	background: #fdf2f1;
	border: 1px solid #f3d2ce;
	border-radius: 2px;
	padding: 9px 12px;
	margin: 12px 0 0;
}

.lpfo-fineprint {
	font-size: 10px;
	line-height: 1.45;
	color: #a39c93;
	text-align: center;
	margin: 8px 0 0;
}

/* Honeypot — visible to bots, hidden from humans */
.lpfo-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

/* Success state */
.lpfo-success {
	text-align: center;
	padding-top: 8px;
}

.lpfo-success-icon {
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: #161513;
	color: #fff;
	font-size: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 18px;
}

.lpfo-success h3 {
	font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	font-weight: 600;
	font-size: 30px;
	margin: 0 0 8px;
}

.lpfo-success p {
	font-size: 14px;
	line-height: 1.6;
	color: #5c574f;
	margin: 0 0 18px;
}

.lpfo-code-box {
	display: flex;
	align-items: stretch;
	justify-content: center;
	margin: 0 auto 14px;
	width: fit-content;
}

.lpfo-code {
	border: 1px dashed #161513;
	padding: 14px 22px;
	font-size: 19px;
	font-weight: 600;
	letter-spacing: 0.28em;
}

.lpfo-copy {
	border: 1px solid #161513;
	border-left: 0;
	background: #161513;
	color: #fff;
	font-family: inherit;
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 0 16px;
	cursor: pointer;
	transition: background 0.18s ease;
}

.lpfo-copy:hover {
	background: #3a372f;
}

.lpfo-success .lpfo-cta {
	margin-top: 10px;
}

/* Page scroll lock */
body.lpfo-lock {
	overflow: hidden;
}

@keyframes lpfo-fade {
	from { opacity: 0; }
}

@keyframes lpfo-pop {
	from { opacity: 0; transform: translateY(14px) scale(0.97); }
}

/* Two-column form on wide screens: name + email share a row, which is what
   makes the whole card fit inside 50vh without cutting any field. */
@media (min-width: 721px) {
	/* NB: the grid goes on the <form>, not on .lpfo-panel — the panel's only
	   child is the form, so a grid there would just squeeze the form into
	   one column and make everything wrap (measured: 584px → 788px). */
	.lpfo-form {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 14px;
	}

	.lpfo-panel {
		padding: 14px 22px 12px;
	}

	.lpfo-title,
	.lpfo-sub,
	.lpfo-copy,
	.lpfo-check,
	.lpfo-legal,
	.lpfo-cta,
	.lpfo-error,
	.lpfo-fineprint,
	.lpfo-field--phone {
		grid-column: 1 / -1;
	}

	/* Cap the pitch at two lines — it is the single biggest block in the card. */
	.lpfo-copy {
		font-size: 12px;
		line-height: 1.45;
		margin-bottom: 8px;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.lpfo-legal {
		font-size: 9px;
		line-height: 1.35;
		margin: -2px 0 5px 25px;
	}

	.lpfo-field {
		margin-bottom: 5px;
	}

	.lpfo-check {
		margin-bottom: 5px;
	}

	.lpfo-cta {
		min-height: 40px;
		font-size: 12.5px;
	}

	.lpfo-fineprint {
		font-size: 9.5px;
		margin-top: 5px;
	}
}

@media (max-width: 720px) {
	.lpfo-modal {
		grid-template-columns: 1fr;
		max-height: 50vh;
	}

	/* No room for the visual on a phone inside 50vh — the offer text carries it. */
	.lpfo-media {
		display: none;
	}

	.lpfo-panel {
		padding: 12px 18px 12px;
	}

	.lpfo-title {
		font-size: clamp(22px, 6vw, 28px);
	}

	.lpfo-fineprint {
		display: none;
	}

	/* Intro copy is dropped on phones — title + kicker already say it, and
	   this is what keeps the whole card inside 50vh without scrolling. */
	.lpfo-copy {
		display: none;
	}

	.lpfo-sub {
		font-size: 10.5px;
		margin-bottom: 8px;
	}

	.lpfo-field {
		margin-bottom: 5px;
	}

	.lpfo-field > span {
		margin-bottom: 3px;
	}

	.lpfo-field input {
		height: 38px;
	}

	.lpfo-check {
		font-size: 12px;
		margin-bottom: 2px;
	}

	.lpfo-legal {
		font-size: 9px;
		margin: -2px 0 4px 25px;
	}

	.lpfo-cta {
		min-height: 40px;
	}
}

/* On genuinely short screens 50vh (~320px) physically cannot hold the form,
 * so allow a bit more room there — still far from full-screen, and the CTA
 * stays reachable without scrolling. */
@media (max-height: 700px) {
	.lpfo-modal {
		max-height: 68vh;
	}
}

/* Very short screens: shrink the visual further so the form always fits. */
@media (max-width: 720px) and (max-height: 700px) {
	.lpfo-media {
		height: 64px;
	}

	.lpfo-panel {
		padding: 14px 18px 14px;
	}

	.lpfo-field input {
		height: 38px;
	}
}

/* ---------------------------------------------------------------------
 * Corner bubble (teaser) — the popup "shrinks" to the bottom-left corner
 * after it is dismissed, so visitors can reopen it any time.
 * ------------------------------------------------------------------ */
.lpfo-bubble {
	position: fixed;
	left: 22px;
	bottom: 22px;
	z-index: 99998;
	display: none;
	align-items: center;
	height: 62px;
	max-width: 62px;
	padding: 0;
	border: 0;
	border-radius: 31px;
	overflow: hidden;
	background: #161513;
	color: #fff;
	font-family: inherit;
	box-shadow: 0 10px 26px rgba(23, 21, 19, 0.34);
	cursor: pointer;
	transition: max-width 0.28s cubic-bezier(0.22, 1, 0.36, 1), transform 0.2s ease;
}

.lpfo-bubble.is-visible {
	display: inline-flex;
	animation: lpfo-bubble-in 0.34s cubic-bezier(0.22, 1, 0.36, 1),
	           lpfo-bubble-pulse 2.8s ease-out 0.6s infinite;
}

.lpfo-bubble:hover,
.lpfo-bubble:focus-visible {
	max-width: 340px;
	transform: translateY(-2px);
}

.lpfo-bubble:focus-visible {
	outline: 2px solid #a98c4e;
	outline-offset: 3px;
}

.lpfo-bubble-icon {
	flex: none;
	width: 62px;
	height: 62px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lpfo-bubble-icon svg {
	width: 24px;
	height: 24px;
}

.lpfo-bubble-label {
	white-space: nowrap;
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	padding-right: 0;
	opacity: 0;
	transition: opacity 0.2s ease 0.06s, padding-right 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.lpfo-bubble:hover .lpfo-bubble-label,
.lpfo-bubble:focus-visible .lpfo-bubble-label {
	opacity: 1;
	padding-right: 20px;
}

@keyframes lpfo-bubble-in {
	from { opacity: 0; transform: translateY(10px) scale(0.8); }
}

@keyframes lpfo-bubble-pulse {
	0%   { box-shadow: 0 10px 26px rgba(23, 21, 19, 0.34), 0 0 0 0 rgba(22, 21, 19, 0.34); }
	70%  { box-shadow: 0 10px 26px rgba(23, 21, 19, 0.34), 0 0 0 16px rgba(22, 21, 19, 0); }
	100% { box-shadow: 0 10px 26px rgba(23, 21, 19, 0.34), 0 0 0 0 rgba(22, 21, 19, 0); }
}

@media (max-width: 600px) {
	.lpfo-bubble {
		left: 14px;
		bottom: 14px;
		height: 54px;
		max-width: 54px;
		border-radius: 27px;
	}

	.lpfo-bubble-icon {
		width: 54px;
		height: 54px;
	}

	.lpfo-bubble-icon svg {
		width: 21px;
		height: 21px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lpfo-overlay,
	.lpfo-modal {
		animation: none;
	}

	.lpfo-bubble.is-visible {
		animation: none;
	}

	.lpfo-bubble,
	.lpfo-bubble-label {
		transition: none;
	}
}
