/* SalesNanny Newsletter form. An air-mail letter on the theme palette: Inter, navy #1e2152, red #c22034. */
.sn-nl {
	--sn-red: #c22034;
	--sn-red-dark: #a51b2c;
	--sn-coral: #ff5f73;
	--sn-navy: #1e2152;
	--sn-ink: #111111;
	--sn-muted: #5b5f7d;
	--sn-line: #dcdfea;
	--sn-rise: 40px; /* How far the letter pokes out above the card. */
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--sn-ink);
	box-sizing: border-box;
}
.sn-nl *, .sn-nl *::before, .sn-nl *::after { box-sizing: border-box; }

.sn-nl--footer, .sn-nl--inline { container: sn-nl / inline-size; }
.sn-nl--footer { margin-top: var(--sn-rise); }

/* Card with an air-mail edge */
.sn-nl__card {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 64px);
	padding-right: clamp(28px, 4vw, 64px);
	color: #fff;
	background: radial-gradient(70% 120% at 100% 0, rgba(194, 32, 52, .3), transparent 62%), var(--sn-navy);
	border-radius: 20px;
	box-shadow: 0 18px 40px -18px rgba(30, 33, 82, .45);
}
.sn-nl__card::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 8px;
	background: repeating-linear-gradient(-45deg, var(--sn-red) 0 14px, #fff 14px 22px, var(--sn-coral) 22px 36px, #fff 36px 44px);
	border-radius: 20px 20px 0 0;
}

/* Text and form */
.sn-nl__main { padding: clamp(36px, 4vw, 52px) 0 clamp(28px, 3.4vw, 44px) clamp(24px, 4vw, 56px); min-width: 0; }
.sn-nl__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px;
	padding: 7px 14px 7px 10px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--sn-navy);
	background: #fff;
	border-radius: 999px;
}
.sn-nl__eyebrow svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--sn-red); }
.sn-nl__title {
	margin: 0 0 12px;
	font-size: clamp(26px, 3vw, 38px);
	line-height: 1.14;
	font-weight: 700;
	color: #fff;
	letter-spacing: -0.02em;
}
.sn-nl__accent { color: var(--sn-coral); }
.sn-nl__lede { margin: 0 0 22px; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .82); max-width: 52ch; }

.sn-nl__form { display: grid; gap: 12px; min-width: 0; }
.sn-nl__row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	max-width: 560px;
	padding: 6px;
	background: #fff;
	border: 1.5px solid var(--sn-line);
	border-radius: 14px;
	transition: box-shadow .15s;
}
.sn-nl__row:focus-within { box-shadow: 0 0 0 3px rgba(255, 95, 115, .55); }
.sn-nl__input {
	flex: 999 1 170px;
	min-width: 0;
	height: 46px;
	padding: 0 12px;
	font: inherit;
	font-size: 16px;
	color: var(--sn-ink);
	background: transparent;
	border: 0;
}
.sn-nl__input::placeholder { color: #71748f; }
.sn-nl__input:focus { outline: none; }
.sn-nl__button {
	flex: 1 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 46px;
	padding: 0 22px;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(180deg, var(--sn-red), var(--sn-red-dark));
	border: 0;
	border-radius: 10px;
	box-shadow: 0 4px 12px rgba(194, 32, 52, .3);
	cursor: pointer;
	transition: transform .15s, box-shadow .15s;
}
.sn-nl__button::after { content: "\2192"; transition: transform .15s; }
.sn-nl__button:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(194, 32, 52, .35); }
.sn-nl__button:hover::after { transform: translateX(3px); }
.sn-nl__button:focus-visible { outline: 3px solid var(--sn-navy); outline-offset: 2px; }
.sn-nl__button:disabled { opacity: .7; cursor: wait; transform: none; }

.sn-nl__consent { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--sn-muted); max-width: 560px; }
.sn-nl__consent a { color: var(--sn-ink); text-decoration: underline; text-underline-offset: 2px; }
.sn-nl__consent a:hover { color: var(--sn-red); }

.sn-nl__msg { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.5; }
.sn-nl__msg:empty { display: none; }
.sn-nl__msg--ok { color: #11785a; }
.sn-nl__msg--error { color: #c22034; }

.sn-nl__ts:empty { display: none; }
.sn-nl__hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.sn-nl__sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* The form on the navy card */
.sn-nl__card .sn-nl__consent { color: rgba(255, 255, 255, .72); }
.sn-nl__card .sn-nl__consent a { color: #fff; }
.sn-nl__card .sn-nl__consent a:hover { color: var(--sn-coral); }
.sn-nl__card .sn-nl__msg { max-width: 560px; padding: 10px 14px; background: rgba(255, 255, 255, .12); border-radius: 10px; }
.sn-nl__card .sn-nl__msg--ok { color: #b9f5d8; }
.sn-nl__card .sn-nl__msg--error { color: #ffd1d6; }

/* Envelope and letter. Only the bottom is clipped, so the letter can rise above the card and sink in once subscribed. */
.sn-nl__envelope {
	position: relative;
	align-self: end;
	justify-self: center;
	width: 100%;
	max-width: 380px;
	margin-top: calc(var(--sn-rise) * -1);
	margin-bottom: clamp(24px, 3vw, 36px);
	clip-path: inset(-60px -40px 0 -40px);
}
.sn-nl__envelope::before {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	aspect-ratio: 400 / 180;
	background: #c9cee3;
	border-radius: 0 0 12px 12px;
}
.sn-nl__letter {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0 24px -42%;
	padding: 14px 14px 46%;
	color: var(--sn-navy);
	text-decoration: none;
	background: #fff;
	border-radius: 10px 10px 0 0;
	box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .4);
	transform: rotate(-1.5deg);
	transition: transform .35s cubic-bezier(.22, .8, .3, 1);
}
.sn-nl__letter:hover, .sn-nl__letter:focus-visible { transform: translateY(-10px); }
.sn-nl__letter:focus-visible { outline: 3px solid var(--sn-coral); outline-offset: 2px; }
.sn-nl__letter-label { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; color: var(--sn-red); }
.sn-nl__letter-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.sn-nl__letter-title {
	display: -webkit-box;
	overflow: hidden;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.sn-nl__letter-more { font-size: 13px; font-weight: 600; color: var(--sn-red); }
.sn-nl__letter-more::after { content: " \2192"; }
.sn-nl__pocket { position: relative; display: block; width: 100%; height: auto; border-radius: 0 0 12px 12px; filter: drop-shadow(0 -2px 6px rgba(30, 33, 82, .18)); }
.sn-nl__seal circle { fill: var(--sn-red); transition: fill .3s; }

/* Subscribed: the letter drops into the envelope and the seal turns green. */
.sn-nl__card:has(.sn-nl__msg--ok) .sn-nl__letter { transform: translateY(56%); }
.sn-nl__card:has(.sn-nl__msg--ok) .sn-nl__seal circle { fill: #11785a; }

/* Narrow: the letter moves under the form. */
@container sn-nl (max-width: 860px) {
	.sn-nl__card { grid-template-columns: minmax(0, 1fr); gap: 0; padding-right: 0; }
	.sn-nl__main { padding-right: clamp(24px, 4vw, 56px); padding-bottom: 8px; }
	.sn-nl__envelope { margin: 12px auto 24px; padding-inline: 20px; max-width: 420px; clip-path: inset(-20px 0 0 0); }
	.sn-nl__envelope::before { right: 20px; left: 20px; aspect-ratio: auto; height: 34%; }
}

@media (prefers-reduced-motion: reduce) {
	.sn-nl__letter, .sn-nl__seal circle { transition: none; }
}
