/*!
 * Camper Diary — Marketing Landingpage
 * Mobil-first; Farben angelehnt an camperdiary-core/style.css
 */
:root {
	--bg: #161a1f;
	--bg-elevated: #1f252c;
	--surface: #272e38;
	--border: rgba(255, 255, 255, 0.08);
	--text: #eef2f7;
	--muted: #97a4b8;
	--accent: #57c69d;
	--accent-dim: #3d9174;
	--accent-glow: rgba(87, 198, 157, 0.35);
	--cta-text: #0b1410;
	--danger-outline: rgba(231, 76, 60, 0.5);
	--radius: 14px;
	--radius-lg: 22px;
	--shadow-device: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
	--shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.35);
	--header-h: 64px;
	--container: min(1180px, calc(100% - 2rem));
	font-synthesis-weight: none;
}

@media (prefers-reduced-motion: reduce) {
	:root {
		scroll-behavior: auto;
	}
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	overflow-x: clip;
}

body {
	margin: 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	background-image:
		radial-gradient(ellipse 120% 80% at 50% -20%, rgba(87, 198, 157, 0.12), transparent),
		radial-gradient(ellipse 80% 50% at 100% 0%, rgba(40, 80, 140, 0.15), transparent);
	min-height: 100vh;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}

.skip-link {
	position: absolute;
	left: -9999px;
	z-index: 1000;
	padding: 0.75rem 1rem;
	background: var(--accent);
	color: var(--cta-text);
	font-weight: 600;
	border-radius: 8px;
}
.skip-link:focus {
	left: 1rem;
	top: 1rem;
}

.lp-container {
	width: var(--container);
	max-width: 1180px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 0;
	padding-right: 0;
}

code {
	font-size: 0.88em;
	background: rgba(255, 255, 255, 0.06);
	padding: 0.1em 0.35em;
	border-radius: 6px;
}

/* Reveal animation */
@media (prefers-reduced-motion: no-preference) {
	.reveal {
		opacity: 0;
		transform: translateY(22px);
		transition:
			opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
			transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
	}
	.reveal.is-visible {
		opacity: 1;
		transform: translateY(0);
	}
}

.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	transition:
		background-color 0.25s ease,
		box-shadow 0.25s ease,
		backdrop-filter 0.25s ease;
}
.site-header--scrolled {
	background: rgba(22, 26, 31, 0.82);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: 0 1px 0 var(--border);
}

.site-header__inner {
	min-height: var(--header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem;
	flex-wrap: nowrap;
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
	min-width: 0;
}

.site-logo {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	gap: 0.35rem;
	font-weight: 800;
	font-size: 1.15rem;
	letter-spacing: -0.02em;
	color: var(--text);
	text-decoration: none;
}
.site-logo:hover {
	color: var(--accent);
}
.site-logo__text {
	flex-shrink: 0;
}

/* Ultra-dezent optional neben Logo (config $lpShowBrandEmoji) */
.lp-van.lp-van--subtle {
	font-size: 0.92em;
	line-height: 1;
	opacity: 0.38;
	vertical-align: 0.04em;
	filter: grayscale(1) brightness(1.08);
	flex-shrink: 0;
	transition: opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}
.site-logo:hover .lp-van--subtle {
	opacity: 0.85;
	filter: grayscale(0) brightness(1);
	transform: translateX(2px);
}

.site-nav {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.45rem 0.72rem;
	font-size: 0.91rem;
	flex: 1 1 auto;
	min-width: 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}
.site-nav a:not(.btn) {
	color: var(--muted);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.15s ease;
	padding: 0.35rem 0;
}
.site-nav a:not(.btn):hover {
	color: var(--text);
}
.site-nav__cta {
	flex-shrink: 0;
	margin-left: 0.35rem;
	white-space: nowrap;
}
.site-nav__share {
	flex-shrink: 0;
	white-space: nowrap;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-height: 44px;
	padding: 0.65rem 1.25rem;
	font-family: inherit;
	font-size: 0.94rem;
	font-weight: 600;
	border-radius: 999px;
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition:
		transform 0.18s ease,
		box-shadow 0.18s ease,
		background 0.18s ease;
}
.btn:active {
	transform: translateY(1px);
}
.btn--sm {
	min-height: 40px;
	padding: 0.45rem 1rem;
	font-size: 0.875rem;
}
.btn--mid {
	min-height: 46px;
}
.btn--lg {
	min-height: 52px;
	padding: 0.75rem 1.5rem;
	font-size: 1rem;
}
.btn--primary {
	background: linear-gradient(160deg, #6dd4ae 0%, var(--accent) 45%, var(--accent-dim) 100%);
	color: var(--cta-text);
	box-shadow: 0 6px 24px var(--accent-glow);
}
.btn--primary:hover {
	box-shadow: 0 8px 32px var(--accent-glow);
	filter: brightness(1.06);
	color: var(--cta-text);
}
.btn--ghost {
	background: transparent;
	color: var(--text);
	border: 1px solid var(--border);
}
.btn--ghost:hover {
	border-color: rgba(87, 198, 157, 0.5);
	background: rgba(87, 198, 157, 0.08);
	color: var(--text);
}
.btn--cta {
	background: linear-gradient(160deg, #ffcf6a 0%, #ffb347 55%, #e8933a 100%);
	color: #1a1408;
	box-shadow: 0 8px 32px rgba(255, 179, 71, 0.35);
	border: none;
}
.btn--cta:hover {
	filter: brightness(1.05);
	box-shadow: 0 12px 40px rgba(255, 179, 71, 0.4);
	color: #1a1408;
}

/* Hero */
.hero {
	position: relative;
	overflow: clip;
	padding: 1.75rem 0 3rem;
	min-height: min(92vh, 880px);
	display: flex;
	align-items: center;
}
.hero__glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(70px);
	pointer-events: none;
	opacity: 0.5;
}
.hero__glow--1 {
	width: clamp(260px, 50vw, 480px);
	height: clamp(260px, 50vw, 480px);
	background: var(--accent-glow);
	top: -8%;
	right: -5%;
}
.hero__glow--2 {
	width: clamp(200px, 40vw, 360px);
	height: clamp(200px, 40vw, 360px);
	background: rgba(120, 160, 220, 0.2);
	bottom: -5%;
	left: -15%;
}

.hero__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr;
	align-items: center;
	gap: 2rem;
}

@media (min-width: 900px) {
	.hero__grid {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
		gap: 3rem;
	}
}

.hero__copy .hero__eyebrow {
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--accent);
	margin: 0 0 1rem;
}
.hero h1 {
	font-size: clamp(1.95rem, 5.5vw, 3.15rem);
	font-weight: 800;
	line-height: 1.1;
	margin: 0 0 1rem;
	letter-spacing: -0.03em;
}
.hero__accent {
	background: linear-gradient(120deg, #fff 0%, var(--accent) 130%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.hero__lead {
	margin: 0 0 1.5rem;
	max-width: 34rem;
	font-size: 1.0625rem;
	color: var(--muted);
	line-height: 1.65;
}
.hero__lead strong {
	color: var(--text);
}
.hero__beta-line {
	margin: 0 0 1rem;
	max-width: 36rem;
	font-size: 0.9175rem;
	line-height: 1.52;
	color: var(--muted);
}
.hero__beta-line strong {
	color: var(--text);
}
.hero__cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
}
.hero__cta-row--wrap {
	gap: 0.65rem;
	align-items: center;
}

.hero__device-wrap {
	display: flex;
	justify-content: center;
	perspective: 1200px;
	will-change: transform;
	transform: translateZ(0);
}
@media (prefers-reduced-motion: reduce) {
	.hero__device-wrap,
	.hero__device-wrap .lp-device-frame,
	[data-parallax] {
		transform: none !important;
	}
}

.lp-device-frame {
	position: relative;
	width: min(300px, 88vw);
	border-radius: 36px;
	padding: 13px;
	background: linear-gradient(155deg, #3d4550 0%, #252b33 50%, #1a2028 100%);
	box-shadow: var(--shadow-device);
	will-change: transform;
	transform: translateZ(0);
	display: flex;
	align-items: center;
	justify-content: center;
}
.lp-device-frame--compact {
	width: min(260px, 82vw);
	border-radius: 32px;
}
.hero-slideshow {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: 26px; /* gleicher radius wie .lp-device-screen */
	display: flex;
}
.lp-device-frame--compact .hero-slideshow {
	border-radius: 22px;
}
.hero-slideshow__slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 1s ease-in-out;
	pointer-events: none;
}
.hero-slideshow__slide--active {
	opacity: 1;
	pointer-events: auto;
	position: relative;
}
.hero-slideshow__slide .lp-device-screen {
	border-radius: 0; /* Slideshow container übernimmt den Radius */
}

/* Indicators */
.hero-slideshow__indicators {
	position: absolute;
	bottom: 12px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: 6px;
	z-index: 10;
}
.hero-slideshow__dot {
	all: unset;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.4);
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}
.hero-slideshow__dot--active {
	background: var(--accent);
	transform: scale(1.2);
}

.lp-device-screen {
	width: 100%;
	border-radius: 26px;
	overflow: hidden;
	background: #0f1216;
	position: relative;
	margin-top: 0;
}
.lp-device-frame--compact .lp-device-screen {
	border-radius: 22px;
}
.lp-device-screen img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}
.lp-device-screen--placeholder {
	display: grid;
	place-items: center;
	padding: 1.25rem;
	background: linear-gradient(145deg, #2a3542 0%, #1f2832 55%, var(--accent-dim));
	background-size: 200% 200%;
	animation: phShift 8s ease infinite;
	border: 1px dashed rgba(255, 255, 255, 0.12);
	min-height: 200px;
}
@media (prefers-reduced-motion: reduce) {
	.lp-device-screen--placeholder {
		animation: none;
		background: #27303a;
	}
}
@keyframes phShift {
	0%,
	100% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
}
.lp-placeholder-label {
	font-weight: 600;
	font-size: 0.9rem;
	text-align: center;
	color: rgba(255, 255, 255, 0.88);
	line-height: 1.35;
	max-width: 12rem;
}

/* Trust strip */
.trust {
	padding: 2rem 0 1rem;
}
.trust__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	justify-content: center;
	list-style: none;
	margin: 0 0 1.75rem;
	padding: 0;
}
.trust__chip {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.8125rem;
	font-weight: 600;
	padding: 0.5rem 0.95rem;
	background: rgba(255, 255, 255, 0.04);
	border-radius: 999px;
	border: 1px solid var(--border);
	color: var(--muted);
}
.trust__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 10px var(--accent-glow);
}
.mid-cta-strip {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	text-align: center;
	padding: 1.25rem 1.5rem;
	background: rgba(255, 255, 255, 0.03);
	border-radius: var(--radius-lg);
	border: 1px solid var(--border);
	box-shadow: var(--shadow-soft);
}
.mid-cta-strip__text {
	margin: 0;
	color: var(--muted);
	max-width: 28rem;
}

/* Section typography */
.section-head {
	text-align: center;
	margin-bottom: 2.5rem;
	max-width: 46rem;
	margin-left: auto;
	margin-right: auto;
	padding: 0 0.25rem;
}
.section-head h2 {
	margin: 0 0 0.75rem;
	font-size: clamp(1.5rem, 3.8vw, 2.125rem);
	font-weight: 800;
	letter-spacing: -0.02em;
}
.section-head__lead {
	margin: 0;
	font-size: 1.0625rem;
	color: var(--muted);
	line-height: 1.62;
}

/* Features */
.features {
	padding: 3rem 0 4rem;
}
.feature-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.75rem;
	align-items: center;
	padding: 2.25rem 0;
	border-top: 1px solid var(--border);
}

@media (min-width: 800px) {
	.feature-row {
		grid-template-columns: 1fr 1fr;
		gap: 2.5rem;
		padding: 3rem 0;
		min-height: 320px;
	}
	.feature-row--reverse .feature-row__copy {
		order: 2;
	}
	.feature-row--reverse .feature-row__visual {
		order: 1;
		justify-content: flex-end;
	}
}

.feature-row__visual {
	display: flex;
	justify-content: center;
	will-change: transform;
	transform: translateZ(0);
}
.feature-row__copy h3 {
	margin: 0 0 0.65rem;
	font-size: 1.375rem;
	font-weight: 700;
}
.feature-row__lead {
	margin: 0 0 1rem;
	color: var(--muted);
	line-height: 1.62;
	max-width: 36rem;
}
.feature-row__bullets {
	padding-left: 1.25rem;
	margin: 0;
	color: var(--muted);
	line-height: 1.57;
	max-width: 34rem;
}
.feature-row__bullets li + li {
	margin-top: 0.35rem;
}

.inline-cta {
	margin: 1rem auto 3rem;
}
.inline-cta__box {
	max-width: 520px;
	margin: 0 auto;
	padding: 1.35rem 1.5rem;
	border-radius: var(--radius-lg);
	border: 1px solid rgba(87, 198, 157, 0.35);
	background: rgba(87, 198, 157, 0.08);
	text-align: center;
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.95rem;
}
.inline-cta__box p {
	margin: 0;
	font-weight: 600;
	font-size: 1.05rem;
}

/* Steps */
.steps {
	padding: 2rem 0 4rem;
}
.steps__list {
	list-style: none;
	max-width: 640px;
	margin: 0 auto 1.75rem;
	padding: 0;
	counter-reset: st;
	display: grid;
	gap: 1.15rem;
}
.steps__list li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.65rem;
	padding: 1.05rem 1.15rem;
	background: rgba(255, 255, 255, 0.03);
	border-radius: var(--radius);
	border: 1px solid var(--border);
	line-height: 1.52;
	font-size: 0.9725rem;
	color: var(--muted);
}
.steps__nr {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	min-width: 32px;
	height: 32px;
	border-radius: 10px;
	background: rgba(87, 198, 157, 0.2);
	color: var(--accent);
	font-weight: 800;
	font-size: 0.875rem;
}
.steps__list strong {
	color: var(--text);
}
.steps__cta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.85rem;
	align-items: center;
	padding-top: 0.75rem;
}

/* FAQ */
.faq {
	padding: 3rem 0 4rem;
}
.faq__list {
	max-width: 720px;
	margin: 0 auto 2rem;
	display: grid;
	gap: 0.65rem;
}
.faq-item {
	border-radius: var(--radius);
	border: 1px solid var(--border);
	overflow: clip;
	background: rgba(255, 255, 255, 0.02);
}
.faq-item__trigger {
	all: unset;
	box-sizing: border-box;
	cursor: pointer;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.05rem 1.25rem;
	min-height: 52px;
	font-weight: 600;
	text-align: left;
	font-family: inherit;
	font-size: 0.9625rem;
	color: var(--text);
	transition: background 0.18s ease;
}
.faq-item__trigger:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}
.faq-item__trigger:hover {
	background: rgba(255, 255, 255, 0.04);
}
.faq-item__icon {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.06);
	position: relative;
	transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item__icon::before,
.faq-item__icon::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	background: var(--muted);
	transition: inherit;
}
.faq-item__icon::before {
	width: 10px;
	height: 2px;
	border-radius: 2px;
}
.faq-item__icon::after {
	width: 2px;
	height: 10px;
	border-radius: 2px;
}
.faq-item--open .faq-item__icon {
	transform: rotate(180deg);
}
.faq-item--open .faq-item__icon::after {
	opacity: 0;
	transform: translate(-50%, -50%) scaleY(0);
}
.faq-item__panel {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item__panel > * {
	overflow: hidden;
	min-height: 0;
	opacity: 0;
	transition:
		opacity 0.25s ease,
		padding 0.25s ease;
	padding: 0 1.25rem;
	margin: 0;
}
.faq-item--open .faq-item__panel {
	grid-template-rows: 1fr;
}
.faq-item--open .faq-item__panel > * {
	opacity: 1;
	padding-bottom: 1.05rem;
}
.faq-item__panel p {
	margin: 0;
	font-size: 0.9175rem;
	color: var(--muted);
	line-height: 1.63;
	max-width: 58ch;
}

.faq__precall {
	text-align: center;
	max-width: 480px;
	margin: 0 auto;
	display: grid;
	justify-items: center;
	gap: 1rem;
}
.faq__precall p {
	margin: 0;
	color: var(--muted);
}
.faq__precall-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	align-items: center;
}

.cta-band__mailto {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.65rem;
}
.cta-band__mailto-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin-top: 0.35rem;
}
.cta-band__mailto-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.45rem 0.95rem;
	font-size: 0.8375rem;
	font-weight: 600;
	line-height: 1.25;
	color: var(--accent);
	border: 1px solid rgba(87, 198, 157, 0.45);
	border-radius: 999px;
	background: rgba(87, 198, 157, 0.08);
	text-decoration: none;
	transition:
		border-color 0.2s ease,
		background 0.2s ease,
		color 0.2s ease;
}
.cta-band__mailto-chip:hover,
.cta-band__mailto-chip:focus-visible {
	outline: none;
	color: var(--accent-hover, #6dd4b0);
	border-color: rgba(87, 198, 157, 0.75);
	background: rgba(87, 198, 157, 0.14);
}

/* CTA band */
.cta-band {
	position: relative;
	padding: clamp(3rem, 8vw, 5rem) 0;
	overflow: clip;
	border-top: 1px solid var(--border);
	background:
		radial-gradient(ellipse 60% 100% at 100% 50%, rgba(87, 198, 157, 0.15), transparent 55%),
		linear-gradient(180deg, #12161c 0%, #1a2230 100%);
}
.cta-band__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	align-items: center;
	position: relative;
	z-index: 1;
}

@media (min-width: 768px) {
	.cta-band__grid {
		grid-template-columns: 1fr auto;
	}
}

.cta-band h2 {
	margin: 0 0 0.75rem;
	font-size: clamp(1.5rem, 3.8vw, 2.125rem);
	font-weight: 800;
	letter-spacing: -0.02em;
}
.cta-band p {
	margin: 0 0 1.35rem;
	color: var(--muted);
	line-height: 1.62;
	max-width: 38rem;
}

.cta-band__mailto-note {
	font-size: 0.8375rem;
	margin-top: 0.85rem !important;
	margin-bottom: 0 !important;
	color: var(--muted);
	opacity: 0.92;
}

.cta-band__placeholder code {
	word-break: break-all;
	font-size: 0.835rem;
}

.cta-band__accent {
	min-height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}
.cta-band__glow {
	width: clamp(140px, 28vw, 220px);
	height: clamp(140px, 28vw, 220px);
	border-radius: 50%;
	background: radial-gradient(circle, var(--accent) 0%, transparent 72%);
	opacity: 0.45;
	filter: blur(18px);
}

/* Footer */
.site-footer {
	padding: 2rem 0 3rem;
	border-top: 1px solid var(--border);
	font-size: 0.875rem;
	color: var(--muted);
	text-align: center;
}
.site-footer__inner {
	display: grid;
	justify-items: center;
	gap: 0.6rem;
}
.site-footer__links a {
	color: var(--accent);
	text-decoration: none;
}
.site-footer__links a:hover {
	text-decoration: underline;
}
.site-footer__hint {
	margin: 0;
	font-size: 0.8rem;
	opacity: 0.78;
	max-width: 36rem;
}

@media (prefers-reduced-motion: reduce) {
	*,
	.reveal {
		animation: none !important;
		transition: none !important;
	}
}

/* Subscribe Modal */
.modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	max-width: 100%;
	height: 100%;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding: max(0.75rem, env(safe-area-inset-top))
		max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom))
		max(0.75rem, env(safe-area-inset-left));
	box-sizing: border-box;
	overflow: hidden;
	overscroll-behavior: contain;
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.18s ease,
		visibility 0.18s ease;
}
.modal:not([aria-hidden="true"]) {
	opacity: 1;
	visibility: visible;
}
.modal__overlay {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(4px);
	cursor: pointer;
}
.modal__content {
	position: relative;
	flex: 0 1 auto;
	min-width: 0;
	min-height: 0;
	align-self: center;
	max-width: min(440px, 100%);
	width: 100%;
	margin-top: auto;
	margin-bottom: auto;
	box-sizing: border-box;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: clamp(1rem, 3vw, 1.35rem);
	box-shadow: var(--shadow-device);
	transform: translateY(12px) scale(0.98);
	transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
	z-index: 1;
	max-height: 100%;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.modal__subscribe-compact.modal__content {
	max-width: min(440px, 100%);
}

.modal__subscribe-compact.modal__content h2,
.modal__subscribe-compact #subscribe-modal-title {
	margin: 0 0 0.35rem;
	padding-right: 2rem;
	font-size: clamp(1rem, 0.94rem + 0.35vw, 1.2rem);
	text-align: left;
	line-height: 1.25;
	flex: 0 0 auto;
}

.modal__subscribe-tagline {
	margin: 0 0 0.7rem;
	font-size: 0.875rem;
	line-height: 1.42;
	max-width: 38ch;
	color: var(--muted);
	text-align: left;
	font-weight: 400;
	flex: 0 0 auto;
}
.modal__grid {
	display: grid;
	gap: 1.75rem;
	align-items: start;
}
@media (min-width: 720px) {
	.modal__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
		gap: 2rem;
	}
}
.modal__aside {
	padding-right: 0;
	border-bottom: 1px solid var(--border);
	padding-bottom: 1.25rem;
}
@media (min-width: 720px) {
	.modal__aside {
		border-bottom: none;
		padding-bottom: 0;
		padding-right: 1.5rem;
		border-right: 1px solid var(--border);
	}
}
.modal__aside-lead {
	font-size: 0.95rem;
	color: var(--muted);
	line-height: 1.55;
	margin: 0 0 1rem;
}
.modal__aside-points {
	margin: 0 0 1rem;
	padding-left: 1.2rem;
	color: var(--muted);
	font-size: 0.9125rem;
	line-height: 1.55;
}
.modal__aside-points li {
	margin-bottom: 0.45rem;
}
.modal__aside-meta {
	font-size: 0.8rem;
	color: var(--muted);
	opacity: 0.9;
	line-height: 1.45;
	margin: 0;
}
.modal__aside h2 {
	margin: 0 0 0.65rem;
	font-size: 1.45rem;
}
.modal__main {
	min-width: 0;
}
.modal__main .subscribe-form {
	margin-top: 0;
}
.modal:not([aria-hidden="true"]) .modal__content {
	transform: translateY(0) scale(1);
}
.modal__close {
	position: absolute;
	top: 0.55rem;
	right: 0.45rem;
	background: none;
	border: none;
	color: var(--muted);
	font-size: 1.5rem;
	cursor: pointer;
	line-height: 1;
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
	transition: color 0.2s ease, background 0.2s ease;
}
.modal__close:hover {
	color: var(--text);
	background: rgba(255, 255, 255, 0.05);
}
.modal h2 {
	margin: 0 0 0.5rem;
	font-size: 1.5rem;
}

.subscribe-success--compact {
	padding: 0;
	text-align: left;
}
.subscribe-success--compact h3 {
	font-size: 1.06rem;
	margin: 0 0 0.35rem;
}
.subscribe-success--compact p {
	font-size: 0.875rem;
	color: var(--muted);
	margin: 0 0 1rem;
}

.modal__subscribe-compact .subscribe-form--compact {
	flex: 1 1 auto;
	min-height: 0;
	gap: 0.7rem;
	overflow: hidden;
}
.subscribe-form__fields {
	flex: 1 1 auto;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	padding-bottom: 0.15rem;
}
.modal__subscribe-compact .form-group input[type="text"],
.modal__subscribe-compact .form-group input[type="email"],
.modal__subscribe-compact .form-group textarea {
	padding: 0.6rem 0.85rem;
}
.modal-submit-btn {
	min-height: 48px;
	flex: 0 0 auto;
}
.modal-submit-btn__label {
	display: inline-block;
	min-width: 6.5ch;
}
.modal-submit-btn:disabled {
	cursor: progress;
	opacity: 0.9;
}

@media (max-width: 540px) {
	.modal {
		padding: max(0.5rem, env(safe-area-inset-top))
			max(0.5rem, env(safe-area-inset-right)) max(0.5rem, env(safe-area-inset-bottom))
			max(0.5rem, env(safe-area-inset-left));
	}
	.modal__subscribe-compact.modal__content {
		padding: 0.9rem 0.85rem 0.8rem;
	}
	.modal__subscribe-tagline {
		margin-bottom: 0.55rem;
	}
	.subscribe-form__fields {
		gap: 0.55rem;
	}
	.modal__subscribe-compact .form-group input[type='text'],
	.modal__subscribe-compact .form-group input[type='email'],
	.modal__subscribe-compact .form-group textarea {
		font-size: 16px;
		padding: 0.55rem 0.75rem;
	}
}

/* Form Styles */
.subscribe-form {
	display: flex;
	flex-direction: column;
	gap: 1.2rem;
}
.form-group {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}
.form-group label {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--text);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border-radius: var(--radius);
	border: 1px solid rgba(255, 255, 255, 0.15);
	background: rgba(0, 0, 0, 0.2);
	color: var(--text);
	font-family: inherit;
	font-size: 1rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus,
.form-group textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(87, 198, 157, 0.15);
}
.form-group--checkbox label {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	font-weight: normal;
	cursor: pointer;
}
.form-group--checkbox input {
	margin-top: 0.25rem;
	accent-color: var(--accent);
	width: 1rem;
	height: 1rem;
}
.form-group--checkbox span {
	font-size: 0.8rem;
	color: var(--muted);
	line-height: 1.4;
}
.form-group--captcha #sub-captcha-question {
	color: var(--accent);
	font-variant-numeric: tabular-nums;
}
.captcha-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
.captcha-row input {
	max-width: 7.5rem;
}
.captcha-refresh {
	background: none;
	border: none;
	padding: 0;
	color: var(--muted);
	font: inherit;
	font-size: 0.8rem;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}
.captcha-refresh:hover {
	color: var(--text);
}
.w-full {
	width: 100%;
}
.subscribe-form__alert {
	font-size: 0.85rem;
	padding: 0.75rem;
	border-radius: 6px;
	display: none;
}
.subscribe-form__alert:not(:empty) {
	display: block;
}
.subscribe-form__alert--error {
	background: rgba(231, 76, 60, 0.15);
	color: #ff8c82;
	border: 1px solid var(--danger-outline);
}

.subscribe-success {
	text-align: center;
	padding: 1rem 0;
}
.subscribe-success h3 {
	color: var(--accent);
	margin-bottom: 0.5rem;
}
