/**
 * Best of Nigeria Newsletter — landing page (/newsletter/).
 * Scoped to .bonnl-landing; inherits the site font. Full-bleed section
 * backgrounds use a box-shadow/clip-path technique so they span the screen
 * without causing horizontal scrolling inside any theme container.
 */

.bonnl-landing {
	--l-forest: #0B3B2C;
	--l-green: #008751;
	--l-green-tint: #E3F2EA;
	--l-indigo: #26346E;
	--l-kola: #E2A33B;
	--l-ink: #18201C;
	--l-muted: #56635C;
	--l-mist: #F3F6F4;
	--l-line: #DCE4DF;
	--l-gap: clamp(56px, 9vw, 112px);
	color: var(--l-ink);
	line-height: 1.6;
}

.bonnl-landing *,
.bonnl-landing *::before,
.bonnl-landing *::after {
	box-sizing: border-box;
}

.bonnl-landing a {
	color: inherit;
}

.bonnl-landing :focus-visible {
	outline: 3px solid var(--l-kola);
	outline-offset: 3px;
}

.bonnl-l-section {
	--section-bg: #ffffff;
	position: relative;
	padding: var(--l-gap) 0;
	background: var(--section-bg);
	scroll-margin-top: 80px;
}

.bonnl-landing--bleed .bonnl-l-section {
	box-shadow: 0 0 0 100vmax var(--section-bg);
	clip-path: inset(0 -100vmax);
}

.bonnl-l-inner {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 clamp(18px, 4vw, 32px);
}

.bonnl-l-inner--narrow {
	max-width: 820px;
}

.bonnl-l-head {
	max-width: 640px;
	margin-bottom: clamp(28px, 4vw, 48px);
}

.bonnl-l-head--center {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.bonnl-landing .bonnl-l-title {
	margin: 0 0 12px;
	padding: 0;
	color: inherit;
	font-size: clamp(1.8rem, 3.6vw, 2.75rem);
	line-height: 1.08;
	font-weight: 800;
	letter-spacing: -0.025em;
}

.bonnl-landing .bonnl-l-intro {
	margin: 0;
	font-size: clamp(1rem, 1.4vw, 1.15rem);
	color: var(--l-muted);
}

.bonnl-l-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 26px;
	border-radius: 10px;
	background: var(--l-green);
	color: #fff !important;
	font-weight: 700;
	text-decoration: none !important;
	transition: filter 0.15s ease;
}

.bonnl-l-btn:hover {
	filter: brightness(1.08);
}

.bonnl-l-btn--gold {
	background: var(--l-kola);
	color: #1C1406 !important;
}

.bonnl-l-link {
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-thickness: 2px;
}

/* ---------------- Hero: the one loud moment ---------------- */

.bonnl-hero {
	--section-bg: var(--l-forest);
	color: #fff;
	overflow: hidden;
	padding-top: clamp(56px, 8vw, 104px);
}

/* Adire-inspired resist pattern rising behind the issue card */
.bonnl-hero::before {
	content: "";
	position: absolute;
	inset: 0 -100vmax 0 auto;
	width: calc(45% + 100vmax);
	background-image:
		radial-gradient(circle, rgba(255, 255, 255, 0.2) 0 3px, transparent 3.5px),
		radial-gradient(circle, transparent 0 13px, rgba(255, 255, 255, 0.1) 13.5px 15px, transparent 15.5px),
		repeating-linear-gradient(45deg, rgba(38, 52, 110, 0.9) 0 2px, transparent 2px 22px),
		repeating-linear-gradient(-45deg, rgba(38, 52, 110, 0.9) 0 2px, transparent 2px 22px);
	background-size: 44px 44px, 44px 44px, auto, auto;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 30%);
	mask-image: linear-gradient(90deg, transparent, #000 30%);
	opacity: 0.6;
	pointer-events: none;
}

.bonnl-landing--bleed .bonnl-hero {
	overflow: visible;
}

.bonnl-landing:not(.bonnl-landing--bleed) .bonnl-hero {
	border-radius: 20px;
}

.bonnl-landing:not(.bonnl-landing--bleed) .bonnl-hero::before {
	inset: 0 0 0 auto;
	width: 45%;
}

.bonnl-hero__grid {
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	gap: 48px;
	align-items: center;
}

.bonnl-landing .bonnl-hero__title {
	margin: 0;
	padding: 0;
	color: #fff;
	font-size: clamp(2.4rem, 6.2vw, 4.6rem);
	line-height: 0.98;
	font-weight: 800;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

.bonnl-hero__text {
	margin: 24px 0 0;
	max-width: 52ch;
	font-size: clamp(1.05rem, 1.6vw, 1.25rem);
	color: rgba(255, 255, 255, 0.86);
}

.bonnl-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 26px;
	margin-top: 32px;
}

.bonnl-hero .bonnl-l-link {
	color: #fff;
	text-decoration-color: var(--l-kola);
}

.bonnl-hero__note {
	margin: 22px 0 0;
	font-size: 0.92rem;
	color: rgba(255, 255, 255, 0.7);
}

.bonnl-hero__visual {
	display: flex;
	justify-content: center;
}

.bonnl-hero__media img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 16px;
}

/* The issue card: a miniature inbox issue with real headlines */
.bonnl-issue {
	position: relative;
	width: min(400px, 100%);
	background: #fff;
	color: var(--l-ink);
	border-radius: 14px;
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35), 18px 18px 0 -2px var(--l-kola);
	transform: rotate(-2.5deg);
	overflow: hidden;
}

.bonnl-issue__mast {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px 20px;
	background: var(--l-indigo);
	color: #fff;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.bonnl-issue__flag {
	width: 24px;
	height: 16px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--l-green) 0 33.3%, #fff 33.3% 66.6%, var(--l-green) 66.6%);
}

.bonnl-issue__body {
	padding: 6px 20px 14px;
}

.bonnl-issue__item {
	padding: 14px 0;
	border-bottom: 1px solid var(--l-line);
}

.bonnl-issue__item:last-child {
	border-bottom: 0;
}

.bonnl-issue__label {
	display: block;
	margin-bottom: 3px;
	color: var(--l-green);
	font-size: 0.78rem;
	font-weight: 700;
}

.bonnl-issue__headline {
	display: block;
	font-weight: 700;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---------------- Benefits: an index, not a card kit ---------------- */

.bonnl-benefits__grid {
	display: grid;
	grid-template-columns: 1fr;
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 2px solid var(--l-ink);
}

.bonnl-benefit {
	display: grid;
	grid-template-columns: 48px 1fr;
	gap: 4px 16px;
	margin: 0;
	padding: 26px 0;
	border-bottom: 1px solid var(--l-line);
}

.bonnl-benefit__icon {
	grid-row: span 2;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--l-green-tint);
	color: var(--l-green);
}

.bonnl-landing .bonnl-benefit__title {
	margin: 0;
	padding: 0;
	font-size: 1.2rem;
	line-height: 1.3;
	font-weight: 800;
	color: var(--l-ink);
}

.bonnl-benefit__title a {
	text-decoration: none;
}

.bonnl-benefit__title a:hover {
	text-decoration: underline;
}

.bonnl-benefit__text {
	margin: 0;
	color: var(--l-muted);
}

/* ---------------- Preview: an email in a window ---------------- */

.bonnl-preview {
	--section-bg: var(--l-mist);
}

.bonnl-preview__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	align-items: start;
}

.bonnl-preview__head .bonnl-l-btn {
	margin-top: 26px;
}

.bonnl-mail {
	background: #fff;
	border: 1px solid var(--l-line);
	border-radius: 14px;
	box-shadow: 0 18px 50px rgba(11, 59, 44, 0.12);
	overflow: hidden;
}

.bonnl-mail__bar {
	display: flex;
	gap: 6px;
	padding: 12px 16px;
	background: #EEF1EF;
	border-bottom: 1px solid var(--l-line);
}

.bonnl-mail__bar span {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #CBD5CF;
}

.bonnl-mail__mast {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 4px 16px;
	padding: 22px clamp(18px, 3vw, 32px) 16px;
	border-bottom: 3px solid var(--l-green);
}

.bonnl-mail__name {
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.bonnl-mail__date {
	color: var(--l-muted);
	font-size: 0.85rem;
}

.bonnl-mail__note {
	margin: 0;
	padding: 18px clamp(18px, 3vw, 32px);
	color: var(--l-muted);
	font-size: 0.98rem;
	border-bottom: 1px solid var(--l-line);
}

.bonnl-mail__items {
	margin: 0;
	padding: 0 clamp(18px, 3vw, 32px);
	list-style: none;
}

.bonnl-mail__item {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	margin: 0;
	padding: 20px 0;
	border-bottom: 1px solid var(--l-line);
}

.bonnl-mail__item:last-child {
	border-bottom: 0;
}

.bonnl-mail__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 8px;
	background: var(--l-mist);
}

.bonnl-mail__label {
	display: block;
	margin-bottom: 4px;
	color: var(--l-green);
	font-size: 0.8rem;
	font-weight: 700;
}

.bonnl-landing .bonnl-mail__title {
	margin: 0 0 6px;
	padding: 0;
	font-size: 1.12rem;
	line-height: 1.3;
	font-weight: 800;
}

.bonnl-mail__title a {
	text-decoration: none;
}

.bonnl-mail__title a:hover {
	text-decoration: underline;
}

.bonnl-mail__excerpt {
	margin: 0;
	color: var(--l-muted);
	font-size: 0.95rem;
}

/* ---------------- Subscribe ---------------- */

.bonnl-subscribe {
	outline: none;
}

.bonnl-subscribe .bonnl-landing-form {
	max-width: none;
	box-shadow: 0 20px 60px rgba(11, 59, 44, 0.1);
}

/* ---------------- Previous issues ---------------- */

.bonnl-previous {
	--section-bg: var(--l-mist);
}

.bonnl-previous__list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bonnl-previous__item img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 10px;
	margin-bottom: 14px;
}

.bonnl-previous__date {
	color: var(--l-muted);
	font-size: 0.85rem;
}

.bonnl-landing .bonnl-previous__title {
	margin: 4px 0 6px;
	font-size: 1.15rem;
	line-height: 1.3;
}

/* ---------------- Trust ---------------- */

.bonnl-trust__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 44px;
}

.bonnl-trust__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 18px 48px;
	margin: 34px 0 0;
}

.bonnl-trust__stats div {
	display: flex;
	flex-direction: column-reverse;
}

.bonnl-trust__stats dd {
	margin: 0;
	font-size: clamp(2.4rem, 5vw, 3.4rem);
	line-height: 1;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--l-green);
	font-variant-numeric: tabular-nums;
}

.bonnl-trust__stats dt {
	margin-top: 6px;
	color: var(--l-muted);
}

.bonnl-trust__points {
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}

.bonnl-trust__points li {
	position: relative;
	margin: 0;
	padding: 14px 0 14px 34px;
	border-bottom: 1px solid var(--l-line);
	font-weight: 600;
}

.bonnl-trust__points li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 19px;
	width: 14px;
	height: 8px;
	border-left: 3px solid var(--l-green);
	border-bottom: 3px solid var(--l-green);
	transform: rotate(-45deg);
}

.bonnl-quote {
	margin: 0 0 22px;
	padding: 0 0 0 20px;
	border-left: 4px solid var(--l-kola);
}

.bonnl-quote blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 1.1rem;
	line-height: 1.5;
}

.bonnl-quote blockquote p {
	margin: 0;
}

.bonnl-quote figcaption {
	margin-top: 8px;
	color: var(--l-muted);
	font-size: 0.9rem;
}

/* ---------------- Final CTA ---------------- */

.bonnl-final {
	--section-bg: var(--l-green);
	color: #fff;
	text-align: center;
}

.bonnl-landing .bonnl-final__title {
	margin: 0 auto 14px;
	max-width: 18ch;
	color: #fff;
	font-size: clamp(2rem, 4.6vw, 3.4rem);
	line-height: 1.05;
	font-weight: 800;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.bonnl-final__text {
	margin: 0 auto 30px;
	max-width: 50ch;
	color: rgba(255, 255, 255, 0.9);
	font-size: 1.1rem;
}

.bonnl-final .bonnl-form {
	text-align: left;
}

.bonnl-landing-note {
	max-width: 1180px;
	margin: 24px auto;
}

/* ---------------- Larger screens ---------------- */

@media (min-width: 720px) {
	.bonnl-benefits__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 48px;
	}

	.bonnl-mail__item.has-image {
		grid-template-columns: 160px 1fr;
		gap: 20px;
	}

	.bonnl-previous__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 960px) {
	.bonnl-hero__grid {
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
		gap: 64px;
	}

	.bonnl-benefits__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.bonnl-preview__grid {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
		gap: 64px;
	}

	.bonnl-preview__head {
		position: sticky;
		top: 110px;
	}

	.bonnl-trust__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 80px;
	}
}

@media (max-width: 959px) {
	.bonnl-issue {
		transform: none;
		box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 12px 12px 0 -2px var(--l-kola);
	}

	.bonnl-hero::before {
		width: auto;
		inset: auto -100vmax 0 -100vmax;
		height: 45%;
		-webkit-mask-image: linear-gradient(180deg, transparent, #000 60%);
		mask-image: linear-gradient(180deg, transparent, #000 60%);
	}
}

@media (prefers-reduced-motion: no-preference) {
	html:has(.bonnl-landing) {
		scroll-behavior: smooth;
	}
}

@media (forced-colors: active) {
	.bonnl-l-btn {
		border: 2px solid ButtonText;
	}
}
