/* HG Newsletter Popup */
.hg-nlp[hidden], .hg-nlp-teaser[hidden], .hg-nlp [hidden] { display: none !important; }

.hg-nlp {
	--a: var(--hg-nlp-accent, #2f6b3b);
	--a-soft: color-mix(in srgb, var(--a) 10%, #fff);
	--a-ring: color-mix(in srgb, var(--a) 22%, transparent);
	--ink: #14201a;
	--muted: #46514b;
	--line: #d9dfdb;
	position: fixed; inset: 0; z-index: 99990;
	display: flex; align-items: center; justify-content: center;
	padding: 24px;
	font-size: 16px; line-height: 1.5; color: var(--ink);
	-webkit-font-smoothing: antialiased;
}
.hg-nlp *, .hg-nlp *::before, .hg-nlp *::after { box-sizing: border-box; }

.hg-nlp__backdrop {
	position: absolute; inset: 0;
	background: rgba(12, 20, 16, .55);
	-webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
	animation: hg-nlp-fade .25s ease both;
}

.hg-nlp__dialog {
	position: relative;
	display: grid; grid-template-columns: 1fr;
	width: 100%; max-width: 460px; max-height: calc(100vh - 48px);
	overflow: auto; overscroll-behavior: contain;
	background: #fff; border-radius: 22px;
	box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .04);
	animation: hg-nlp-pop .34s cubic-bezier(.2, .9, .25, 1.05) both;
	outline: none;
}
.hg-nlp--img .hg-nlp__dialog { max-width: 800px; grid-template-columns: 42% 58%; }
@media (min-width: 641px) {
	.hg-nlp--no-desktop-img .hg-nlp__media { display: none; }
	.hg-nlp--no-desktop-img .hg-nlp__body { min-height: 0; padding: 44px 36px 30px; }
}

.hg-nlp__media { position: relative; min-height: 100%; background: var(--a-soft); }
.hg-nlp__media img {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover; display: block; max-width: none;
	opacity: 0; transition: opacity .35s ease;
}
.hg-nlp__media img.is-loaded { opacity: 1; }

.hg-nlp__body { padding: 48px 44px 34px; display: flex; flex-direction: column; justify-content: center; min-height: 440px; }
.hg-nlp:not(.hg-nlp--img) .hg-nlp__body { min-height: 0; padding: 44px 36px 30px; }
.hg-nlp__step { display: flex; flex-direction: column; margin: 0; }
.hg-nlp__grab { display: none; }

.hg-nlp__eyebrow {
	align-self: flex-start;
	margin: 0 0 14px; padding: 5px 11px;
	font-size: 12px; font-weight: 700; line-height: 1.2;
	letter-spacing: .1em; text-transform: uppercase;
	color: var(--a); background: var(--a-soft); border-radius: 999px;
}
.hg-nlp .hg-nlp__title {
	margin: 0 0 12px; padding: 0;
	font-size: 30px; line-height: 1.12; font-weight: 800; letter-spacing: -.02em;
	color: var(--ink); text-transform: none;
	text-wrap: balance;
}
.hg-nlp__text { margin: 0 0 24px; font-size: 15.5px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }

.hg-nlp__field { position: relative; }
.hg-nlp .hg-nlp__field input[type="email"] {
	display: block; width: 100%; height: 54px; margin: 0;
	padding: 0 18px;
	font: inherit; font-size: 16px; color: var(--ink);
	background: #fff; border: 1.5px solid var(--line); border-radius: 14px;
	box-shadow: none; outline: none;
	transition: border-color .15s ease, box-shadow .15s ease;
	-webkit-appearance: none; appearance: none;
}
.hg-nlp .hg-nlp__field input[type="email"]::placeholder { color: #737d77; opacity: 1; }
.hg-nlp .hg-nlp__field input[type="email"]:focus { border-color: var(--a); box-shadow: 0 0 0 4px var(--a-ring); }
.hg-nlp .hg-nlp__field input[type="email"][aria-invalid="true"] { border-color: #c2410c; box-shadow: 0 0 0 4px rgba(194, 65, 12, .14); }
.hg-nlp__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.hg-nlp__sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.hg-nlp__error { margin: 8px 2px 0; min-height: 0; font-size: 13.5px; line-height: 1.4; color: #b43c0c; }
.hg-nlp__error:empty { margin: 0; }

.hg-nlp .hg-nlp__btn {
	position: relative; display: flex; align-items: center; justify-content: center;
	width: 100%; min-height: 54px; margin: 12px 0 0; padding: 0 20px;
	font: inherit; font-size: 16px; font-weight: 700; line-height: 1.2;
	letter-spacing: 0; text-transform: none;
	color: #fff; background: var(--a); border: 0; border-radius: 14px;
	box-shadow: 0 10px 22px -10px var(--a);
	cursor: pointer;
	transition: filter .15s ease, transform .1s ease, box-shadow .15s ease;
}
.hg-nlp .hg-nlp__btn:hover { filter: brightness(.93); color: #fff; background: var(--a); }
.hg-nlp .hg-nlp__btn:active { transform: translateY(1px); }
.hg-nlp .hg-nlp__btn:focus-visible { outline: 3px solid var(--a-ring); outline-offset: 2px; }
.hg-nlp .hg-nlp__btn.is-loading { color: transparent; pointer-events: none; }
.hg-nlp .hg-nlp__btn.is-loading::after {
	content: ""; position: absolute; width: 22px; height: 22px;
	border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%;
	animation: hg-nlp-spin .7s linear infinite;
}

.hg-nlp .hg-nlp__decline {
	align-self: center; margin: 12px 0 0; padding: 6px 10px; min-height: 36px;
	font: inherit; font-size: 14px; font-weight: 500; line-height: 1.2;
	text-transform: none; letter-spacing: 0;
	color: var(--muted); background: none; border: 0; box-shadow: none;
	text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(91, 102, 96, .4);
	cursor: pointer;
}
.hg-nlp .hg-nlp__decline:hover { color: var(--ink); background: none; }

.hg-nlp__privacy { margin: 14px 0 0; font-size: 12.5px; line-height: 1.5; color: #5f6a64; text-align: center; }
.hg-nlp__privacy a { color: inherit; text-decoration: underline; }

.hg-nlp .hg-nlp__x {
	position: absolute; top: 12px; right: 12px; z-index: 2;
	display: grid; place-items: center;
	width: 40px; height: 40px; min-height: 0; margin: 0; padding: 0;
	color: var(--ink); background: rgba(255, 255, 255, .92);
	border: 0; border-radius: 50%;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
	cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.hg-nlp .hg-nlp__x:hover { transform: rotate(90deg); background: #fff; color: var(--ink); }

/* Success */
.hg-nlp__done { align-items: stretch; text-align: center; animation: hg-nlp-rise .35s ease both; }
.hg-nlp__check {
	align-self: center; display: grid; place-items: center;
	width: 56px; height: 56px; margin-bottom: 16px;
	color: #fff; background: var(--a); border-radius: 50%;
	box-shadow: 0 0 0 8px var(--a-soft);
}
.hg-nlp .hg-nlp__copy {
	flex: none; min-height: 40px; margin: 0; padding: 0 16px;
	font: inherit; font-size: 14px; font-weight: 700; text-transform: none; letter-spacing: 0;
	color: var(--a); background: #fff; border: 0; border-radius: 10px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .1); cursor: pointer;
}
.hg-nlp .hg-nlp__copy:hover { background: #fff; color: var(--a); filter: brightness(.97); }
.hg-nlp__done .hg-nlp__text { margin-bottom: 10px; }

/* E-mail typo fix */
.hg-nlp__fix {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
	margin: 10px 0 0; padding: 10px 12px;
	font-size: 15px; line-height: 1.35; color: #7a4a00;
	background: #fff6e0; border: 1.5px solid #f3d58c; border-radius: 12px;
}
.hg-nlp .hg-nlp__fix-btn {
	min-height: 40px; margin: 0; padding: 0 14px;
	font: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; letter-spacing: 0; text-transform: none;
	color: #fff; background: var(--a); border: 0; border-radius: 10px; cursor: pointer; overflow-wrap: anywhere; text-align: left;
}
.hg-nlp .hg-nlp__fix-btn:hover { color: #fff; background: var(--a); filter: brightness(.93); }

/* Coupon ticket */
.hg-nlp__ticket {
	position: relative; display: flex; align-items: stretch;
	margin: 0 0 16px; min-height: 72px;
	background: var(--a-soft); border-radius: 14px; overflow: hidden;
	box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--a) 18%, transparent);
	text-align: left;
}
.hg-nlp__ticket-amt {
	position: relative; flex: none; display: flex; align-items: center;
	padding: 0 18px 0 20px;
	font-size: 28px; font-weight: 800; line-height: 1; letter-spacing: -.02em; white-space: nowrap;
	color: var(--a);
	border-right: 2px dashed color-mix(in srgb, var(--a) 38%, #fff);
}
.hg-nlp__ticket-amt::before, .hg-nlp__ticket-amt::after {
	content: ""; position: absolute; right: -10px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
}
.hg-nlp__ticket-amt::before { top: -9px; }
.hg-nlp__ticket-amt::after { bottom: -9px; }
.hg-nlp__ticket-code { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 10px 14px 10px 18px; }
.hg-nlp__ticket-code small { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hg-nlp__ticket-hidden { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.hg-nlp__ticket-hidden i { display: grid; place-items: center; font-style: normal; color: var(--a); }
.hg-nlp__ticket-hidden b, .hg-nlp__ticket code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 18px; font-weight: 700; letter-spacing: .08em; color: var(--ink);
	padding: 0; background: none; overflow-wrap: anywhere;
}
.hg-nlp__ticket-hidden { min-width: 0; overflow: hidden; }
.hg-nlp__ticket-hidden b { filter: blur(5px); opacity: .75; user-select: none; white-space: nowrap; overflow-wrap: normal; }
.hg-nlp__ticket--done { margin: 4px 0 14px; }
.hg-nlp__ticket--done code { user-select: all; white-space: nowrap; overflow-wrap: normal; font-size: 16px; letter-spacing: .04em; animation: hg-nlp-reveal .7s ease .15s both; }
.hg-nlp__ticket--done .hg-nlp__ticket-amt { font-size: 24px; padding: 0 14px 0 16px; }
.hg-nlp__ticket--done .hg-nlp__ticket-code { padding-left: 14px; padding-right: 8px; }
.hg-nlp__ticket--done .hg-nlp__copy { padding: 0 12px !important; }
.hg-nlp__ticket--done .hg-nlp__copy { align-self: center; margin-right: 10px !important; }
@keyframes hg-nlp-reveal { from { filter: blur(6px); opacity: .5; letter-spacing: .2em; } }

/* PDF catalogue card */
.hg-nlp__cat {
	display: flex; align-items: center; gap: 14px;
	margin: 0 0 16px; padding: 12px 14px;
	background: var(--a-soft); border-radius: 14px;
	box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--a) 18%, transparent);
	text-align: left;
}
.hg-nlp__cat-cover {
	position: relative; flex: none; width: 58px; aspect-ratio: 3 / 4;
	border-radius: 5px; overflow: hidden; background: #fff;
	box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .06);
	transform: rotate(-3deg);
}
.hg-nlp__cat-cover img { display: block; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.hg-nlp__cat-ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--a); }
.hg-nlp__cat-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hg-nlp__cat-info strong { font-size: 16px; font-weight: 800; line-height: 1.25; color: var(--ink); }
.hg-nlp__cat-info span { display: flex; align-items: center; gap: 6px; font-size: 14px; line-height: 1.3; color: var(--muted); }
.hg-nlp__cat-info i { display: grid; place-items: center; font-style: normal; color: var(--a); }
.hg-nlp__cat--done { flex-direction: column; gap: 10px; margin: 4px 0 6px; padding: 16px 14px 12px; text-align: center; }
.hg-nlp__cat--done .hg-nlp__cat-cover { width: 96px; transform: rotate(-2deg); animation: hg-nlp-rise .45s ease .1s both; }
.hg-nlp__cat--done .hg-nlp__cat-info { align-items: center; }
.hg-nlp .hg-nlp__done a.hg-nlp__btn { text-decoration: none; }
.hg-nlp__done .hg-nlp__after { margin: 12px 0 0; }
@media (max-width: 640px) {
	.hg-nlp__cat { padding: 10px 12px; margin-bottom: 14px; }
	.hg-nlp__cat-cover { width: 50px; }
	.hg-nlp__cat-info strong { font-size: 17px; }
	.hg-nlp__cat-info span { font-size: 15px; }
	.hg-nlp__cat--done .hg-nlp__cat-cover { width: 84px; }
	/* After signup: drop the photo so the download button is visible without scrolling. */
	.hg-nlp--pdf.is-done .hg-nlp__media { display: none; }
	.hg-nlp--pdf.is-done .hg-nlp__grab { background: #d3d8d5; }
	/* Keyboard open: drop the cover card, field + button must stay visible. */
	.hg-nlp.is-kb form .hg-nlp__cat { display: none; }
}

/* CTA button: envelope + light sweep */
.hg-nlp .hg-nlp__btn { overflow: hidden; gap: 10px; }
.hg-nlp__ico { flex: none; }
.hg-nlp .hg-nlp__btn > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hg-nlp__nw { white-space: nowrap; }
.hg-nlp--anim .hg-nlp__btn--cta::before {
	content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
	width: 28%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .26), transparent);
	transform: skewX(-18deg);
	animation: hg-nlp-shine 5.5s ease-in-out 1.6s infinite;
	pointer-events: none;
}
.hg-nlp--anim form.is-typing .hg-nlp__btn--cta::before,
.hg-nlp--anim .hg-nlp__btn--cta.is-loading::before { animation: none; opacity: 0; }
@keyframes hg-nlp-shine { 0% { left: -60%; } 22%, 100% { left: 130%; } }

/* Teaser tab */
.hg-nlp-teaser {
	--a: var(--hg-nlp-accent, #2f6b3b);
	position: fixed; left: 16px; bottom: var(--hg-nlp-teaser-bottom, 16px); z-index: 99980;
	display: flex; align-items: center;
	animation: hg-nlp-rise .4s cubic-bezier(.2, .9, .25, 1.05) both;
}
.hg-nlp-teaser button { font: inherit; margin: 0; text-transform: none; letter-spacing: 0; cursor: pointer; }
.hg-nlp-teaser .hg-nlp-teaser__open {
	display: flex; align-items: center; gap: 8px;
	min-height: 46px; padding: 0 18px 0 16px;
	font-size: 15px; font-weight: 700; line-height: 1;
	color: #fff; background: var(--a); border: 0; border-radius: 999px;
	box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .45);
	transition: transform .15s ease;
}
.hg-nlp-teaser .hg-nlp-teaser__open:hover { transform: translateY(-2px); color: #fff; background: var(--a); }
.hg-nlp-teaser .hg-nlp-teaser__x {
	display: grid; place-items: center;
	width: 28px; height: 28px; min-height: 0; margin-left: -6px; padding: 0;
	color: #444; background: #fff; border: 0; border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
	transform: translate(-6px, -18px);
}
.hg-nlp-teaser .hg-nlp-teaser__x:hover { background: #fff; color: #000; }

.hg-nlp-teaser--anim .hg-nlp-teaser__open { animation: hg-nlp-wiggle 8s ease-in-out 3s infinite; transform-origin: 50% 100%; }
@keyframes hg-nlp-wiggle {
	0%, 9%, 100% { transform: rotate(0); }
	1.5% { transform: rotate(-7deg) scale(1.04); }
	3% { transform: rotate(6deg) scale(1.04); }
	4.5% { transform: rotate(-4deg); }
	6% { transform: rotate(3deg); }
	7.5% { transform: rotate(-1deg); }
}

/* Mobile: bottom sheet */
@media (max-width: 640px) {
	.hg-nlp { align-items: flex-end; padding: 0; }
	.hg-nlp .hg-nlp__dialog,
	.hg-nlp--img .hg-nlp__dialog {
		max-width: none; max-height: 92vh; max-height: 92dvh;
		grid-template-columns: 1fr;
		border-radius: 24px 24px 0 0;
		animation: hg-nlp-sheet .38s cubic-bezier(.2, .9, .25, 1) both;
	}
	.hg-nlp__media { min-height: 0; height: 140px; }
	.hg-nlp--no-mobile-img .hg-nlp__media { display: none; }
	/* Own phone image: shown in its own proportions (max 38 % of the screen height). */
	.hg-nlp--mimg .hg-nlp__media { height: auto; aspect-ratio: var(--hg-nlp-m-ratio, 5 / 2); max-height: 38vh; max-height: 38dvh; }
	.hg-nlp__body,
	.hg-nlp:not(.hg-nlp--img) .hg-nlp__body { min-height: 0; padding: 26px 22px calc(18px + env(safe-area-inset-bottom)); }
	.hg-nlp__grab {
		display: block; position: absolute; top: 8px; left: 50%;
		width: 40px; height: 4px; margin-left: -20px;
		background: rgba(255, 255, 255, .85); border-radius: 4px;
	}
	.hg-nlp--no-mobile-img .hg-nlp__grab { background: #d3d8d5; }
	/* Bigger, clearer for older visitors on phones. */
	.hg-nlp .hg-nlp__title { font-size: 25px; margin-bottom: 8px; }
	.hg-nlp__text { font-size: 17px; line-height: 1.5; margin-bottom: 18px; }
	.hg-nlp__eyebrow { margin-bottom: 10px; font-size: 13px; }
	.hg-nlp .hg-nlp__field input[type="email"] { height: 58px; font-size: 18px; }
	.hg-nlp .hg-nlp__btn { min-height: 58px; padding: 0 14px; font-size: clamp(15px, 4.8vw, 18px); gap: 8px; }
	.hg-nlp .hg-nlp__decline { font-size: 16px; min-height: 44px; color: #3d4742; }
	.hg-nlp__privacy { font-size: 13px; }
	.hg-nlp__error { font-size: 15px; }
	.hg-nlp .hg-nlp__x { top: 10px; right: 10px; width: 44px; height: 44px; background: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, .22); }
	.hg-nlp .hg-nlp__x svg { width: 24px; height: 24px; }
	.hg-nlp .hg-nlp__fix-btn { min-height: 44px; font-size: 16px; }
	/* Keyboard open: lift the sheet above it and drop the image to keep field + button visible. */
	.hg-nlp { padding-bottom: var(--hg-nlp-kb, 0px); }
	.hg-nlp.is-kb .hg-nlp__dialog { max-height: calc(var(--hg-nlp-vh, 100dvh) - 8px); border-radius: 20px 20px 0 0; }
	.hg-nlp.is-kb .hg-nlp__media, .hg-nlp.is-kb .hg-nlp__grab { display: none; }
	.hg-nlp.is-kb .hg-nlp__body { padding-top: 22px; padding-bottom: 14px; }
	.hg-nlp__ticket-amt { font-size: 24px; padding: 0 14px 0 16px; }
	.hg-nlp__ticket { min-height: 64px; margin-bottom: 14px; }
	.hg-nlp__ticket-hidden b, .hg-nlp__ticket code { font-size: 16px; }
	.hg-nlp-teaser { left: 12px; }
}

@keyframes hg-nlp-fade { from { opacity: 0; } }
@keyframes hg-nlp-pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes hg-nlp-sheet { from { transform: translateY(100%); } }
@keyframes hg-nlp-rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes hg-nlp-spin { to { transform: rotate(360deg); } }

.hg-nlp.is-closing .hg-nlp__backdrop { animation: hg-nlp-fade .2s ease reverse both; }
.hg-nlp.is-closing .hg-nlp__dialog { animation: hg-nlp-out .2s ease both; }
@keyframes hg-nlp-out { to { opacity: 0; transform: translateY(12px) scale(.98); } }
@media (max-width: 640px) {
	.hg-nlp.is-closing .hg-nlp__dialog { animation: hg-nlp-sheet-out .25s ease both; }
	@keyframes hg-nlp-sheet-out { to { transform: translateY(100%); } }
}

@media (prefers-reduced-motion: reduce) {
	.hg-nlp *, .hg-nlp *::before, .hg-nlp-teaser, .hg-nlp-teaser * { animation: none !important; transition: none !important; }
	.hg-nlp--anim .hg-nlp__btn--cta::before { display: none; }
}

html.hg-nlp-lock, html.hg-nlp-lock body { overflow: hidden !important; }
