/* CTA popup: opens from every call to action. Uses the cloth-and-foil tokens from main.css. */
body.lm-open { overflow: hidden; }
.lm { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px; }
.lm[hidden] { display: none; }
.lm__scrim { position: absolute; inset: 0; background: rgba(21, 43, 38, .62); }
.lm__panel { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); width: 100%; max-width: 880px; max-height: calc(100vh - 32px); overflow: auto; background: var(--white); border-radius: var(--radius); box-shadow: 0 30px 70px -20px rgba(21, 43, 38, .55); }
.lm__panel:focus { outline: none; }
.lm__side { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 16px; padding: clamp(26px, 3.2vw, 40px); background: linear-gradient(160deg, var(--cloth), var(--cloth-deep)); color: #dfe8e4; }
.lm__side::before { content: ""; position: absolute; right: -70px; bottom: -70px; width: 220px; height: 220px; border-radius: 50%; border: 30px solid rgba(184, 137, 59, .22); pointer-events: none; }
.lm__side > * { position: relative; z-index: 1; }
.lm__side h2 { margin: 0; color: #fff; font: 600 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.15 var(--serif); }
.lm__lede { margin: 0; font-size: 15.5px; line-height: 1.55; }
.lm__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.lm__list li { position: relative; padding-left: 28px; }
.lm__list li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 11px; height: 6px; border-left: 2px solid var(--foil); border-bottom: 2px solid var(--foil); transform: rotate(-45deg); }
.lm__quote { margin: auto 0 0; padding: 16px 0 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.lm__stars { color: var(--foil); letter-spacing: .12em; font-size: .95rem; }
.lm__quote blockquote { margin: 6px 0; color: #fff; font: 400 .98rem/1.55 var(--serif); }
.lm__quote figcaption { font-size: 13.5px; color: #a9bbb4; }
.lm__main { position: relative; padding: clamp(24px, 3.2vw, 40px); }
.lm__x { position: absolute; top: 10px; right: 10px; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--radius); background: transparent; color: var(--ink); cursor: pointer; }
.lm__x:hover { background: var(--paper-2); }
.lm__x:focus-visible, .lm__form :focus-visible, .lm__done :focus-visible { outline: 3px solid var(--foil); outline-offset: 2px; }
.lm__form > p { margin: 0; }
.lm__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin-top: 4px; }
.lm__grid p { margin: 0 0 12px; }
.lm__grid .is-wide { grid-column: 1 / -1; }
.lm__form label { display: block; margin-bottom: 5px; font: 600 13.5px/1.2 var(--sans); }
.lm__opt { font-weight: 400; color: var(--muted); }
.lm__form input[type=text], .lm__form input[type=email], .lm__form input[type=tel], .lm__form select, .lm__form textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink); font: 400 16px/1.4 var(--sans); }
.lm__form textarea { resize: vertical; min-height: 78px; }
.lm__form input:focus, .lm__form select:focus, .lm__form textarea:focus { border-color: var(--cloth); }
.lm__send { width: 100%; padding: 15px 22px; font-size: 16px; }
.lm__form.is-sending .lm__send { opacity: .7; pointer-events: none; }
.lm__fine { margin: 10px 0 0 !important; font-size: 12.5px; color: var(--muted); }
.lm__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lm__msg { margin: 0 0 14px; padding: 12px 16px; border-radius: var(--radius); background: #fbe9e7; color: #8a2a1e; font-weight: 500; }
.lm__msg[hidden] { display: none; }
.lm__done { padding: 28px 6px 8px; text-align: center; }
.lm__done[hidden], .lm__form[hidden] { display: none; }
.lm__check { color: var(--cloth); }
.lm__check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: lm-draw .5s .15s ease forwards; }
.lm__thanks { margin: 14px 0 6px; font-size: 1.6rem; }
.lm__donetext { margin: 0 auto 22px; max-width: 34ch; color: var(--muted); }
.lm__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; }
@keyframes lm-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: no-preference) {
	.lm:not([hidden]) .lm__scrim { animation: lm-fade .2s ease-out; }
	.lm:not([hidden]) .lm__panel { animation: lm-rise .28s cubic-bezier(.2, .8, .2, 1); }
	@keyframes lm-fade { from { opacity: 0; } to { opacity: 1; } }
	@keyframes lm-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .lm__check path { animation: none; stroke-dashoffset: 0; } }
@media (max-width: 760px) {
	.lm { align-items: end; padding: 0; }
	.lm__panel { grid-template-columns: 1fr; max-width: none; max-height: 94vh; border-radius: var(--radius) var(--radius) 0 0; }
	.lm__side { padding: 22px 22px 18px; gap: 8px; }
	.lm__list, .lm__quote { display: none; }
	.lm__x { color: #fff; }
	.lm__x:hover { background: rgba(255, 255, 255, .12); }
	.lm__side h2 { margin-right: 36px; }
}
@media (max-width: 480px) { .lm__grid { grid-template-columns: 1fr; } }
/* Popup can be closed at any time. */
.lm__scrim { cursor: pointer; }
.lm__req { margin-left: 2px; color: #8a2a1e; font-weight: 700; }
.lm__note { margin: 0 0 14px !important; font-size: 13px; color: var(--muted); transition: color .2s; }
.lm__note.is-nudge { color: #8a2a1e; font-weight: 600; }
.lm__soon { margin: 0 0 20px; font-size: 14px; color: var(--muted); }
.lm__soon a { color: var(--cloth); font-weight: 600; }
.lm__again-wrap { margin: 16px 0 0; }
.lm__again-wrap[hidden] { display: none; }
.lm__again { padding: 4px 0; border: 0; background: none; color: var(--cloth); font: 600 14px/1 var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lm__again:focus-visible { outline: 3px solid var(--foil); outline-offset: 2px; }
.lm__panel.lm-nudge { animation: lm-shake .4s; }
@keyframes lm-shake { 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .lm__panel.lm-nudge { animation: none; } }
@media (max-width: 760px) { .lm__side h2 { margin-right: 0; } }
/* Close button: stays in view at the top right of the box, even when the box scrolls. */
.lm__x { position: sticky; top: 10px; grid-column: 1 / -1; justify-self: end; margin: 10px 10px -50px 0; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 1px 4px rgba(21, 43, 38, .25); }
.lm__x:hover { background: #fff; }
@media (max-width: 760px) { .lm__x { background: rgba(21, 43, 38, .55); color: #fff; box-shadow: none; } .lm__x:hover { background: rgba(21, 43, 38, .8); } }

/* Discount offer */
.lm__badge { align-self: flex-start; margin: 0; padding: 7px 14px; border-radius: 999px; background: var(--foil); color: var(--cloth-deep); font: 600 13.5px/1.2 var(--sans); letter-spacing: .02em; }
.lm__badge strong { font-weight: 800; }
.lm__deal { margin: 0 0 12px !important; padding: 11px 14px; border-radius: var(--radius); background: #f6efdf; border: 1px dashed var(--foil); color: var(--ink); font-size: 14.5px; line-height: 1.45; }
.lm__deal strong { color: var(--cloth-deep); }
@media (max-width: 760px) { .lm__badge { font-size: 12.5px; padding: 6px 12px; margin-right: 44px; } }

.lm__badges { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 0; }
.lm__badges .lm__badge { align-self: flex-start; }
@media (max-width: 760px) { .lm__badges { flex-direction: row; flex-wrap: wrap; gap: 6px; margin-right: 44px; } .lm__badges .lm__badge { margin-right: 0; } }
