/* ==========================================================================
   Cyber Castellum download card (blog sidebar + [leadgen_form] shortcode)
   Brand: #3A9FBA · #2E3192 · #05172C · #3ABCA6 · #8AD5E9
   Layout follows the card's own width: data-size="grid" (2 fields per row)
   or "stack" (1 per row), set by leadgen-form.js.
   ========================================================================== */

.leadgen-page {
	--lg-accent: #8AD5E9;
	--lg-primary: #3A9FBA;
	--lg-secondary: #2E3192;
	--lg-green: #3ABCA6;
	--lg-grad: linear-gradient(135deg, #8AD5E9 0%, #3A9FBA 45%, #2E3192 100%);
	--lg-text: rgba(226, 238, 245, 0.8);
	--lg-line: rgba(255, 255, 255, 0.14);
	width: 100%;
	box-sizing: border-box;
	font-family: var(--font_dm, 'DM Sans'), system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
	line-height: 1.5;
	text-align: left;
}
.leadgen-page *,
.leadgen-page *::before,
.leadgen-page *::after {
	box-sizing: border-box;
}

/* In the sidebar: drop the grey widget box around the card. */
.blog-2-sidebar-widget.leadgen-sidebar-widget {
	background: none;
	padding: 0;
	border-radius: 0;
}
/* Tablets/phones: moved by leadgen-form.js to right after the article text. */
.leadgen-sidebar-widget.leadgen-in-article {
	max-width: 520px;
	margin: 36px 0 8px;
}
/* Used inside a page with the shortcode: keep it compact and centred. */
.leadgen--inline {
	max-width: 440px;
	margin: 32px auto;
}

/* ---------- Card ---------- */
.leadgen-page .leadgen-card {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding: 26px 22px 20px;
	border-radius: 18px;
	border: 1px solid rgba(138, 213, 233, 0.18);
	background:
		radial-gradient(130% 75% at 100% 0%, rgba(58, 159, 186, 0.38) 0%, transparent 58%),
		linear-gradient(165deg, #0c2746 0%, #05172C 72%);
	box-shadow: 0 26px 50px -30px rgba(5, 23, 44, 0.75);
	color: var(--lg-text);
}
/* ---------- Light bar on top: fills as the visitor goes ---------- */
.leadgen-page .leadgen-progress {
	position: absolute;
	inset: 0 0 auto 0;
	height: 5px;
	background: rgba(138, 213, 233, 0.14);
}
.leadgen-page .leadgen-progress-fill {
	position: relative;
	display: block;
	height: 100%;
	width: 6%;
	border-radius: 0 999px 999px 0;
	background: var(--lg-grad);
	box-shadow: 0 0 10px rgba(138, 213, 233, 0.75), 0 0 2px rgba(255, 255, 255, 0.8);
	transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
/* A soft light that runs along the filled part. */
.leadgen-page .leadgen-progress-fill {
	overflow: hidden;
}
.leadgen-page .leadgen-progress-fill::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 40%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
	transform: translateX(-100%);
	animation: leadgenShine 2.2s ease-in-out infinite;
}
.leadgen-page .leadgen-progress.is-sending .leadgen-progress-fill::after {
	animation-duration: 0.9s;
}
.leadgen-page .leadgen-progress.is-complete .leadgen-progress-fill {
	border-radius: 0;
	box-shadow: 0 0 14px rgba(58, 188, 166, 0.9), 0 0 3px rgba(255, 255, 255, 0.9);
	background: linear-gradient(90deg, #8AD5E9 0%, #3ABCA6 55%, #3A9FBA 100%);
}
@keyframes leadgenShine {
	from { transform: translateX(-100%); }
	to { transform: translateX(250%); }
}
.leadgen-page .leadgen-card::after {
	content: "";
	position: absolute;
	z-index: -1;
	right: -70px;
	bottom: -90px;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(46, 49, 146, 0.45), transparent 70%);
}

.leadgen-page .leadgen-form {
	margin: 0;
}
.leadgen-page .leadgen-step {
	animation: leadgenIn 0.3s ease both;
}
.leadgen-page .leadgen-hidden {
	display: none !important;
}

/* ---------- Heading ---------- */
.leadgen-page .leadgen-head {
	display: flex;
	align-items: center;
	gap: 12px;
}
.leadgen-page .leadgen-doc-badge {
	flex: none;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--lg-grad);
	color: #fff;
	box-shadow: 0 10px 22px -10px rgba(58, 159, 186, 0.95);
}
.leadgen-page .leadgen-icon {
	width: 22px;
	height: 22px;
	flex: none;
}
.leadgen-page .leadgen-title {
	margin: 0;
	padding: 0;
	font-family: var(--font_yantramanv, inherit), sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	text-transform: none;
	color: #fff;
}
.leadgen-page .leadgen-intro {
	margin: 12px 0 18px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--lg-text);
}

/* ---------- Fields ---------- */
.leadgen-page .leadgen-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 10px;
}
.leadgen-page[data-size="stack"] .leadgen-grid {
	grid-template-columns: minmax(0, 1fr);
}
.leadgen-page .leadgen-field {
	min-width: 0;
	margin: 0;
}
.leadgen-page .leadgen-field label {
	display: block;
	margin: 0 0 5px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--lg-accent);
}
.leadgen-page .leadgen-field .leadgen-req {
	color: #ff9b9b;
	font-weight: 700;
}
.leadgen-page .leadgen-field .leadgen-opt {
	margin-left: 2px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: none;
	color: rgba(226, 238, 245, 0.5);
}
.leadgen-page .leadgen-field input {
	display: block;
	width: 100%;
	height: 42px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid var(--lg-line);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.07);
	box-shadow: none;
	color: #fff;
	font: inherit;
	font-size: 14px;
	line-height: normal;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.leadgen-page .leadgen-field input::placeholder {
	color: rgba(255, 255, 255, 0.42);
	opacity: 1;
}
.leadgen-page .leadgen-field input:hover {
	border-color: rgba(138, 213, 233, 0.4);
}
.leadgen-page .leadgen-field input:focus {
	outline: none;
	border-color: var(--lg-accent);
	background: rgba(255, 255, 255, 0.11);
	box-shadow: 0 0 0 3px rgba(138, 213, 233, 0.22);
}
.leadgen-page .leadgen-field input[aria-invalid="true"] {
	border-color: #ff8f8f;
}
/* Phones zoom into inputs smaller than 16px; avoid that on touch screens. */
@media (hover: none) and (pointer: coarse) {
	.leadgen-page .leadgen-field input {
		font-size: 16px;
		height: 44px;
	}
}
.leadgen-page .leadgen-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Buttons ---------- */
.leadgen-page .leadgen-submit,
.leadgen-page .leadgen-download-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 46px;
	margin: 16px 0 0;
	padding: 10px 16px;
	border: 0;
	border-radius: 10px;
	background: var(--lg-grad);
	background-size: 140% 100%;
	background-position: 0 0;
	color: #fff !important;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	text-transform: none;
	cursor: pointer;
	box-shadow: 0 14px 26px -14px rgba(58, 159, 186, 0.95);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-position 0.35s ease;
}
.leadgen-page .leadgen-submit:hover,
.leadgen-page .leadgen-download-btn:hover {
	transform: translateY(-1px);
	background-position: 100% 0;
	box-shadow: 0 18px 30px -14px rgba(58, 159, 186, 1);
}
.leadgen-page .leadgen-submit:focus-visible,
.leadgen-page .leadgen-download-btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}
.leadgen-page .leadgen-submit:disabled {
	cursor: wait;
	opacity: 0.75;
	transform: none;
}
.leadgen-page .leadgen-download-btn .leadgen-icon {
	width: 18px;
	height: 18px;
}

/* ---------- Small print + messages ---------- */
.leadgen-page .leadgen-note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 12px 0 0;
	font-size: 12px;
	line-height: 1.4;
	color: rgba(226, 238, 245, 0.6);
}
.leadgen-page .leadgen-note .leadgen-icon {
	width: 13px;
	height: 13px;
}
.leadgen-page .leadgen-error:not(:empty) {
	margin-top: 10px;
	padding: 8px 10px;
	border-radius: 8px;
	background: rgba(255, 99, 99, 0.12);
	color: #ffc2c2;
	font-size: 13px;
	line-height: 1.4;
}

/* ---------- Thank-you ---------- */
.leadgen-page .leadgen-thankyou {
	padding: 6px 0 4px;
	text-align: center;
}
.leadgen-page .leadgen-thanks-icon {
	display: inline-grid;
	place-items: center;
	width: 54px;
	height: 54px;
	margin-bottom: 12px;
	border-radius: 50%;
	background: rgba(58, 188, 166, 0.16);
	color: var(--lg-green);
	box-shadow: 0 0 0 6px rgba(58, 188, 166, 0.07);
}
.leadgen-page .leadgen-thanks-icon .leadgen-icon {
	width: 26px;
	height: 26px;
}
.leadgen-page .leadgen-thankyou .leadgen-title:focus {
	outline: none;
}
.leadgen-page .leadgen-thankyou .leadgen-intro {
	margin-bottom: 4px;
}

@keyframes leadgenIn {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.leadgen-page .leadgen-step,
	.leadgen-page .leadgen-submit,
	.leadgen-page .leadgen-download-btn,
	.leadgen-page .leadgen-field input,
	.leadgen-page .leadgen-progress-fill,
	.leadgen-page .leadgen-progress-fill::after {
		animation: none;
		transition: none;
	}
}

/* ==========================================================================
   Card: delivery note and animated "Check your inbox" confirmation
   (blog sidebar card and download pages).
   ========================================================================== */
.leadgen-page .leadgen-delivery {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 14px 0 0;
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(138, 213, 233, 0.09);
	border: 1px solid rgba(138, 213, 233, 0.18);
	color: rgba(226, 238, 245, 0.85);
	font-size: 12.5px;
	line-height: 1.45;
}
.leadgen-page .leadgen-delivery strong {
	color: #fff;
}
.leadgen-page .leadgen-delivery .leadgen-icon {
	flex: none;
	width: 16px;
	height: 16px;
	margin-top: 1px;
	color: var(--lg-accent);
}
.leadgen-page .leadgen-delivery + .leadgen-submit {
	margin-top: 12px;
}

.leadgen-page .leadgen-sent-anim {
	display: inline-grid;
	place-items: center;
	width: 72px;
	height: 72px;
	margin-bottom: 10px;
	border-radius: 50%;
	background: rgba(138, 213, 233, 0.1);
	box-shadow: 0 0 0 8px rgba(138, 213, 233, 0.05);
	color: var(--lg-accent);
	animation: lgPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.leadgen-page .leadgen-sent-anim svg {
	width: 46px;
	height: 46px;
	overflow: visible;
}
.leadgen-page .leadgen-sent-anim .lg-env,
.leadgen-page .leadgen-sent-anim .lg-flap {
	stroke-dasharray: 160;
	stroke-dashoffset: 160;
	animation: lgDraw 0.7s ease forwards 0.1s;
}
.leadgen-page .leadgen-sent-anim .lg-flap {
	animation-delay: 0.45s;
}
.leadgen-page .leadgen-sent-anim .lg-badge {
	fill: #3ABCA6;
	stroke: #0b2240;
	stroke-width: 3;
	transform-origin: 49px 45px;
	transform: scale(0);
	animation: lgPopBadge 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 0.95s;
}
.leadgen-page .leadgen-sent-anim .lg-tick {
	stroke: #fff;
	stroke-width: 2.6;
	stroke-dasharray: 20;
	stroke-dashoffset: 20;
	animation: lgDraw 0.35s ease forwards 1.3s;
}
.leadgen-page .leadgen-sent-to {
	display: inline-block;
	max-width: 100%;
	margin: 10px 0 0;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(58, 188, 166, 0.14);
	color: #bff0e6;
	font-size: 13px;
	overflow-wrap: anywhere;
}
.leadgen-page .leadgen-sent-to b {
	color: #fff;
}
.leadgen-page .leadgen-thankyou .leadgen-intro {
	margin-top: 12px;
}
.leadgen-page .leadgen-sent-small {
	margin: 4px 0 0;
	color: rgba(226, 238, 245, 0.55);
	font-size: 12px;
}
@keyframes lgDraw {
	to { stroke-dashoffset: 0; }
}
@keyframes lgPop {
	from { opacity: 0; transform: scale(0.6); }
	to { opacity: 1; transform: none; }
}
@keyframes lgPopBadge {
	to { transform: scale(1); }
}

/* ==========================================================================
   Download page (/get/<link-name>/)
   Laptops+: notice + form (left) and the email-delivery scene (right).
   Tablets/phones: notice + form first, scene below.
   ========================================================================== */
.cc-get-area {
	padding: 56px 0 88px;
	background:
		radial-gradient(45% 60% at 78% 45%, rgba(138, 213, 233, 0.22) 0%, transparent 70%),
		radial-gradient(40% 50% at 15% 20%, rgba(46, 49, 146, 0.07) 0%, transparent 70%);
	overflow: hidden;
}
.cc-get-wrap {
	max-width: 1360px;
	padding-left: 24px;
	padding-right: 24px;
}
.cc-get-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;
}
.cc-get {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	grid-template-areas: "side preview";
	gap: clamp(32px, 6vw, 96px);
	align-items: center;
}
.cc-get-side {
	grid-area: side;
	width: 100%;
	max-width: 580px;
	justify-self: end;
}

/* ---------- Notice board ---------- */
.cc-get-notice {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 22px;
	padding: 16px 20px;
	border: 1px solid rgba(58, 159, 186, 0.28);
	border-left: 4px solid #3A9FBA;
	border-radius: 14px;
	background: linear-gradient(135deg, #ffffff 0%, #f1f8fb 100%);
	box-shadow: 0 16px 34px -24px rgba(5, 23, 44, 0.55);
}
.cc-get-notice-pin {
	position: absolute;
	top: -7px;
	left: 50%;
	width: 14px;
	height: 14px;
	margin-left: -7px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #8AD5E9 0%, #3A9FBA 55%, #2E3192 100%);
	box-shadow: 0 3px 6px rgba(5, 23, 44, 0.3);
}
.cc-get-notice-icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 11px;
	background: linear-gradient(135deg, #8AD5E9 0%, #3A9FBA 45%, #2E3192 100%);
	color: #fff;
	box-shadow: 0 10px 20px -10px rgba(58, 159, 186, 0.95);
}
.cc-get-notice-icon .leadgen-icon {
	width: 21px;
	height: 21px;
}
.cc-get-notice-text {
	margin: 0;
	font-family: var(--font_yantramanv, inherit), sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: #05172C;
}
.leadgen--landing .leadgen-card {
	padding: 30px 28px 24px;
}

/* ---------- Email-delivery scene ---------- */
.cc-mail {
	grid-area: preview;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 520px;
	justify-self: start;
	text-align: center;
}
.cc-mail-stage {
	position: relative;
	width: min(100%, 360px);
	aspect-ratio: 1 / 0.9;
	margin-bottom: 22px;
}
.cc-mail-orbit {
	position: absolute;
	inset: 2% 6%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(138, 213, 233, 0.28) 0%, rgba(138, 213, 233, 0) 68%);
}
.cc-mail-orbit::after {
	content: "";
	position: absolute;
	inset: 6%;
	border: 1.5px dashed rgba(58, 159, 186, 0.35);
	border-radius: 50%;
	animation: ccSpin 28s linear infinite;
}

/* The guide (sheet). */
.cc-mail-doc {
	position: absolute;
	z-index: 2;
	left: 25%;
	top: 4%;
	width: 50%;
	height: 60%;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px 14px;
	border-radius: 10px;
	background: #fff;
	border: 1px solid #e3e8ef;
	box-shadow: 0 18px 34px -20px rgba(5, 23, 44, 0.55);
	text-align: left;
	animation: ccFloat 4s ease-in-out infinite;
	transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}
.cc-mail-doc-badge {
	align-self: flex-start;
	padding: 2px 8px;
	border-radius: 5px;
	background: linear-gradient(135deg, #3A9FBA, #2E3192);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.08em;
}
.cc-mail-doc-title {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: #05172C;
	font-family: var(--font_yantramanv, inherit), sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
}
.cc-mail-doc-lines {
	display: grid;
	gap: 6px;
	margin-top: auto;
}
.cc-mail-doc-lines i {
	display: block;
	height: 5px;
	border-radius: 3px;
	background: #e7edf3;
}
.cc-mail-doc-lines i:nth-child(2) { width: 82%; }
.cc-mail-doc-lines i:nth-child(3) { width: 58%; }

/* The envelope: back, front pocket, flap and seal. */
.cc-mail-env {
	position: absolute;
	left: 9%;
	right: 9%;
	bottom: 4%;
	height: 52%;
	transition: transform 0.85s cubic-bezier(0.55, 0, 0.75, 0.2), opacity 0.85s ease;
}
.cc-mail-env-back,
.cc-mail-env-front,
.cc-mail-env-flap {
	position: absolute;
	left: 0;
	right: 0;
	border-radius: 12px;
}
.cc-mail-env-back {
	z-index: 1;
	top: 0;
	bottom: 0;
	background: #0c2746;
}
.cc-mail-env-front {
	z-index: 3;
	top: 0;
	bottom: 0;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 0 14px 14px;
	background: linear-gradient(160deg, #15406b 0%, #05172C 85%);
	clip-path: polygon(0 26%, 50% 64%, 100% 26%, 100% 100%, 0 100%);
	box-shadow: inset 0 0 0 1px rgba(138, 213, 233, 0.14);
}
.cc-mail-env-to {
	max-width: 100%;
	color: rgba(226, 238, 245, 0.7);
	font-size: 12px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.cc-mail-env-to b {
	color: rgba(226, 238, 245, 0.55);
	font-weight: 600;
}
.cc-mail-env-to b.is-filled {
	color: #fff;
}
.cc-mail-env-flap {
	z-index: 1;
	top: 0;
	height: 64%;
	border-radius: 12px 12px 0 0;
	background: linear-gradient(180deg, #1d4f80 0%, #0e2e52 100%);
	clip-path: polygon(0 0, 100% 0, 50% 100%);
	transform-origin: top center;
	transform: rotateX(180deg);
	transition: transform 0.5s ease 0.3s, z-index 0s linear 0.55s;
}
.cc-mail-seal {
	position: absolute;
	z-index: 5;
	left: 50%;
	top: 64%;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	margin: -19px 0 0 -19px;
	border-radius: 50%;
	background: linear-gradient(135deg, #8AD5E9, #3A9FBA 45%, #2E3192);
	color: #fff;
	box-shadow: 0 8px 18px -6px rgba(5, 23, 44, 0.8), 0 0 0 4px rgba(255, 255, 255, 0.85);
	transform: scale(0);
	transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.75s;
}
.cc-mail-seal .leadgen-icon {
	width: 18px;
	height: 18px;
}

/* Trail and final check. */
.cc-mail-trail {
	position: absolute;
	inset: 0;
	pointer-events: none;
}
.cc-mail-trail i {
	position: absolute;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #8AD5E9;
	opacity: 0;
}
.cc-mail-trail i:nth-child(1) { left: 58%; top: 52%; }
.cc-mail-trail i:nth-child(2) { left: 70%; top: 36%; width: 6px; height: 6px; }
.cc-mail-trail i:nth-child(3) { left: 80%; top: 22%; width: 5px; height: 5px; }
.cc-mail-done {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 46%;
	margin-left: -23%;
	transform: translateY(-50%) scale(0.85);
	opacity: 0;
	overflow: visible;
	transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cc-mail-done-ring {
	fill: rgba(58, 188, 166, 0.12);
	stroke: #3ABCA6;
	stroke-width: 5;
	stroke-dasharray: 330;
	stroke-dashoffset: 330;
	transform: rotate(-90deg);
	transform-origin: 60px 60px;
}
.cc-mail-done-tick {
	stroke: #2a9c8a;
	stroke-width: 7;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 80;
	stroke-dashoffset: 80;
}

/* Text under the scene. */
.cc-mail-copy {
	width: 100%;
	transition: opacity 0.45s ease, transform 0.45s ease;
}
.cc-mail-copy--sent {
	display: none;
}
.cc-mail-kicker {
	margin: 0 0 6px;
	color: #3A9FBA;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.cc-mail-kicker--ok {
	color: #2a9c8a;
}
.cc-mail-title {
	margin: 0 0 16px;
	font-family: var(--font_yantramanv, inherit), sans-serif;
	font-size: clamp(22px, 2.2vw, 28px);
	font-weight: 700;
	line-height: 1.25;
	color: #05172C;
}
.cc-mail-steps {
	display: inline-grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: left;
}
.cc-mail-steps li {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #4a5568;
	font-size: 15px;
}
.cc-mail-steps li span {
	flex: none;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: rgba(58, 159, 186, 0.14);
	color: #2E3192;
	font-size: 13px;
	font-weight: 800;
}
.cc-mail-text {
	margin: 0 0 8px;
	color: #4a5568;
	font-size: 16px;
	line-height: 1.6;
	overflow-wrap: anywhere;
}
.cc-mail-text b {
	color: #05172C;
}
.cc-mail-small {
	margin: 0;
	color: #6b7686;
	font-size: 13px;
}

/* --- States --- */
/* sending: the guide slides into the envelope, the flap closes, the seal is pressed. */
.cc-mail[data-state="sending"] .cc-mail-doc,
.cc-mail[data-state="flying"] .cc-mail-doc {
	animation: none;
	transform-origin: top center;
	transform: translateY(75%) scale(0.7);
}
/* Once inside, the guide is hidden so nothing shows between the closed flap and the pocket. */
.cc-mail[data-state="sending"] .cc-mail-doc {
	opacity: 0;
	transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.2s ease 0.6s;
}
.cc-mail[data-state="sending"] .cc-mail-env-flap,
.cc-mail[data-state="flying"] .cc-mail-env-flap {
	z-index: 4;
	transform: rotateX(0deg);
}
.cc-mail[data-state="sending"] .cc-mail-seal,
.cc-mail[data-state="flying"] .cc-mail-seal {
	transform: scale(1);
}
/* While waiting for the server, the seal glows softly. */
.cc-mail[data-state="sending"] .cc-mail-seal {
	animation: ccGlow 1.4s ease-in-out infinite 1.2s;
}
/* flying: the sealed envelope (with the guide inside) takes off to the top right, leaving a short trail. */
.cc-mail[data-state="flying"] .cc-mail-doc {
	opacity: 0;
	transition: opacity 0.15s ease;
}
.cc-mail[data-state="flying"] .cc-mail-env {
	transform: translate(70%, -120%) rotate(-14deg) scale(0.35);
	opacity: 0;
	transition: transform 0.85s cubic-bezier(0.55, 0, 0.75, 0.2), opacity 0.85s ease;
}
.cc-mail[data-state="flying"] .cc-mail-trail i {
	animation: ccTrail 0.8s ease-out forwards;
}
.cc-mail[data-state="flying"] .cc-mail-trail i:nth-child(2) { animation-delay: 0.12s; }
.cc-mail[data-state="flying"] .cc-mail-trail i:nth-child(3) { animation-delay: 0.24s; }
/* sent: the check mark draws itself and the confirmation text appears. */
.cc-mail[data-state="sent"] .cc-mail-env,
.cc-mail[data-state="sent"] .cc-mail-doc {
	opacity: 0;
	visibility: hidden;
}
.cc-mail[data-state="sent"] .cc-mail-done {
	opacity: 1;
	transform: translateY(-50%) scale(1);
}
.cc-mail[data-state="sent"] .cc-mail-done-ring {
	animation: lgDraw 0.8s ease forwards;
}
.cc-mail[data-state="sent"] .cc-mail-done-tick {
	animation: lgDraw 0.45s ease forwards 0.6s;
}
.cc-mail[data-state="sent"] .cc-mail-orbit::after {
	border-color: rgba(58, 188, 166, 0.45);
}
.cc-mail[data-state="sent"] .cc-mail-copy--idle {
	display: none;
}
.cc-mail[data-state="sent"] .cc-mail-copy--sent {
	display: block;
	animation: ccRise 0.6s ease both 0.3s;
}

@keyframes ccFloat {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-8px); }
}
@keyframes ccSpin {
	to { transform: rotate(360deg); }
}
@keyframes ccGlow {
	0%, 100% { box-shadow: 0 8px 18px -6px rgba(5, 23, 44, 0.8), 0 0 0 4px rgba(255, 255, 255, 0.85); }
	50% { box-shadow: 0 8px 18px -6px rgba(5, 23, 44, 0.8), 0 0 0 9px rgba(138, 213, 233, 0.45); }
}
@keyframes ccTrail {
	0% { opacity: 0; transform: scale(0.4); }
	30% { opacity: 0.9; }
	100% { opacity: 0; transform: translate(26px, -26px) scale(1.2); }
}
@keyframes ccRise {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: none; }
}

/* ---------- Closed link ---------- */
.cc-get-closed {
	max-width: 560px;
	margin: 0 auto;
	padding: 24px 0;
	text-align: center;
}
.cc-get-closed-icon {
	display: inline-grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin-bottom: 18px;
	border-radius: 15px;
	background: linear-gradient(135deg, #8AD5E9 0%, #3A9FBA 45%, #2E3192 100%);
	color: #fff;
}
.cc-get-closed-icon .leadgen-icon {
	width: 26px;
	height: 26px;
}
.cc-get-closed-title {
	margin: 0 0 12px;
	font-family: var(--font_yantramanv, inherit), sans-serif;
	font-size: clamp(26px, 3vw, 36px);
	font-weight: 700;
	line-height: 1.2;
	color: #05172C;
}
.cc-get-closed p {
	margin: 0 0 26px;
	font-size: 17px;
	line-height: 1.7;
	color: #4a5568;
}
.cc-get-btn {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 12px 28px;
	border-radius: 10px;
	background: linear-gradient(135deg, #8AD5E9 0%, #3A9FBA 45%, #2E3192 100%);
	color: #fff !important;
	font-weight: 700;
	text-decoration: none !important;
	box-shadow: 0 14px 26px -14px rgba(58, 159, 186, 0.95);
}

/* ==========================================================================
   Page behind the email link (/?cc-download=...)
   ========================================================================== */
.cc-dl-area {
	padding: 72px 16px 96px;
	background: radial-gradient(50% 60% at 50% 30%, rgba(138, 213, 233, 0.2) 0%, transparent 70%);
}
.cc-dl-card {
	max-width: 520px;
	margin: 0 auto;
	padding: 40px 34px 32px;
	border: 1px solid #e3e8ef;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 30px 60px -40px rgba(5, 23, 44, 0.6);
	text-align: center;
	font-family: var(--font_dm, 'DM Sans'), system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
	animation: ccRise 0.6s ease both;
}
.cc-dl-icon {
	display: inline-grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin-bottom: 14px;
	border-radius: 50%;
	background: rgba(58, 159, 186, 0.12);
	color: #2E3192;
}
.cc-dl-icon--ok {
	background: rgba(58, 188, 166, 0.14);
	color: #2a9c8a;
	box-shadow: 0 0 0 8px rgba(58, 188, 166, 0.07);
	animation: lgPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both 0.2s;
}
.cc-dl-icon .leadgen-icon {
	width: 30px;
	height: 30px;
}
.cc-dl-kicker {
	margin: 0 0 4px;
	color: #2a9c8a;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.cc-dl-title {
	margin: 0 0 14px;
	font-family: var(--font_yantramanv, inherit), sans-serif;
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 700;
	line-height: 1.2;
	color: #05172C;
}
.cc-dl-doc {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	margin: 0 0 22px;
	padding: 10px 16px;
	border-radius: 12px;
	background: #f4f7fa;
	color: #1d2b3a;
	font-weight: 600;
	overflow-wrap: anywhere;
}
.cc-dl-doc .leadgen-icon {
	flex: none;
	width: 20px;
	height: 20px;
	color: #3A9FBA;
}
.cc-dl-form {
	margin: 0;
}
.cc-dl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 50px;
	padding: 12px 30px;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, #8AD5E9 0%, #3A9FBA 45%, #2E3192 100%);
	color: #fff !important;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
	box-shadow: 0 16px 28px -14px rgba(58, 159, 186, 0.95);
	transition: transform 0.2s ease;
}
.cc-dl-btn:hover {
	transform: translateY(-1px);
}
.cc-dl-btn .leadgen-icon {
	width: 18px;
	height: 18px;
}
.cc-dl-note,
.cc-dl-text {
	margin: 18px 0 0;
	color: #6b7686;
	font-size: 14px;
	line-height: 1.6;
}
.cc-dl-text {
	margin: 0 0 22px;
	font-size: 16px;
}

/* ==========================================================================
   Download page behind the email link (/?cc-download=...)
   An envelope opens and the guide rises out; next to it the welcome text,
   the guide card and the Download button. Below: next steps.
   ========================================================================== */
.cc-dl-hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
	max-width: 1080px;
	margin: 0 auto;
	padding: 48px 56px;
	overflow: hidden;
	border: 1px solid #e3e8ef;
	border-radius: 24px;
	background:
		radial-gradient(60% 80% at 0% 50%, rgba(138, 213, 233, 0.16) 0%, transparent 70%),
		#ffffff;
	box-shadow: 0 34px 70px -46px rgba(5, 23, 44, 0.6);
	font-family: var(--font_dm, 'DM Sans'), system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}
.cc-dl-hero::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 5px;
	background: linear-gradient(90deg, #8AD5E9 0%, #3A9FBA 45%, #2E3192 100%);
}

/* --- The opening envelope --- */
.cc-dl-art {
	position: relative;
	perspective: 800px;
	justify-self: center;
	width: 100%;
	max-width: 360px;
	aspect-ratio: 1 / 0.92;
}
.cc-dl-glow {
	position: absolute;
	inset: 4% 8%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(138, 213, 233, 0.4) 0%, rgba(138, 213, 233, 0) 68%);
	animation: ccDlGlow 3.2s ease-in-out infinite 1.6s;
}
.cc-dl-env-back,
.cc-dl-env-front,
.cc-dl-env-flap {
	position: absolute;
	left: 8%;
	right: 8%;
}
.cc-dl-env-back {
	z-index: 1;
	bottom: 6%;
	height: 46%;
	border-radius: 14px;
	background: #0c2746;
}
.cc-dl-env-front {
	z-index: 3;
	bottom: 6%;
	height: 46%;
	border-radius: 14px;
	background: linear-gradient(160deg, #15406b 0%, #05172C 85%);
	clip-path: polygon(0 26%, 50% 64%, 100% 26%, 100% 100%, 0 100%);
}
.cc-dl-env-flap {
	z-index: 4;
	top: 48%; /* top edge of the envelope */
	height: 28%;
	border-radius: 14px 14px 0 0;
	background: linear-gradient(180deg, #1d4f80 0%, #0e2e52 100%);
	clip-path: polygon(0 0, 100% 0, 50% 100%);
	transform-origin: top center;
	animation: ccDlFlap 0.6s ease forwards 0.35s;
}
.cc-dl-sheet {
	position: absolute;
	z-index: 2;
	left: 24%;
	width: 52%;
	top: 26%;
	height: 56%;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px 14px;
	border-radius: 10px;
	background: #fff;
	border: 1px solid #e3e8ef;
	box-shadow: 0 22px 40px -22px rgba(5, 23, 44, 0.6);
	transform: translateY(42%);
	animation: ccDlRise 1s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.85s, ccDlFloat 4s ease-in-out infinite 2s;
}
.cc-dl-sheet-badge {
	align-self: flex-start;
	padding: 2px 8px;
	border-radius: 5px;
	background: linear-gradient(135deg, #3A9FBA, #2E3192);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.08em;
	transition: background 0.3s ease;
}
.cc-dl-sheet-title {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: #05172C;
	font-family: var(--font_yantramanv, inherit), sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
}
.cc-dl-sheet-lines {
	display: grid;
	gap: 6px;
	margin-top: auto;
}
.cc-dl-sheet-lines i {
	display: block;
	height: 5px;
	border-radius: 3px;
	background: #e7edf3;
}
.cc-dl-sheet-lines i:nth-child(2) { width: 82%; }
.cc-dl-sheet-lines i:nth-child(3) { width: 58%; }
.cc-dl-spark {
	position: absolute;
	z-index: 5;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #8AD5E9;
	opacity: 0;
	animation: ccDlSpark 1.2s ease-out forwards;
}
.cc-dl-spark.s1 { left: 18%; top: 22%; animation-delay: 1.5s; }
.cc-dl-spark.s2 { right: 16%; top: 14%; width: 7px; height: 7px; background: #3ABCA6; animation-delay: 1.65s; }
.cc-dl-spark.s3 { right: 22%; top: 40%; width: 6px; height: 6px; animation-delay: 1.8s; }
.cc-dl-hero.is-downloaded .cc-dl-sheet-badge {
	background: #2a9c8a;
}

/* --- Text side --- */
.cc-dl-main {
	min-width: 0;
	animation: ccRise 0.7s ease both 0.2s;
}
.cc-dl-main .cc-dl-kicker {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 10px;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(58, 188, 166, 0.12);
	color: #2a9c8a;
}
.cc-dl-main .cc-dl-kicker .leadgen-icon {
	width: 15px;
	height: 15px;
}
.cc-dl-main .cc-dl-title {
	margin: 0 0 20px;
	font-size: clamp(26px, 3vw, 38px);
	text-align: left;
}
.cc-dl-main .cc-dl-doc {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 22px;
	padding: 14px 18px 14px 14px;
	border: 1px solid #e3e8ef;
	border-radius: 16px;
	background: #f7fafc;
}
.cc-dl-doc-icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 13px;
	background: linear-gradient(135deg, #8AD5E9 0%, #3A9FBA 45%, #2E3192 100%);
	color: #fff;
	box-shadow: 0 10px 22px -10px rgba(58, 159, 186, 0.9);
}
.cc-dl-doc-icon .leadgen-icon {
	width: 24px;
	height: 24px;
	color: #fff;
}
.cc-dl-doc-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.cc-dl-doc-text strong {
	color: #05172C;
	font-size: 16px;
	line-height: 1.3;
	overflow-wrap: anywhere;
}
.cc-dl-doc-text span {
	color: #6b7686;
	font-size: 13px;
	font-weight: 500;
}
.cc-dl-main .cc-dl-btn {
	min-height: 54px;
	padding: 14px 34px;
	font-size: 17px;
}
.cc-dl-done {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 14px 0 0;
	color: #2a9c8a;
	font-size: 14px;
	font-weight: 600;
	animation: ccRise 0.4s ease both;
}
.cc-dl-done[hidden] {
	display: none;
}
.cc-dl-done .leadgen-icon {
	flex: none;
	width: 18px;
	height: 18px;
}
.cc-dl-main .cc-dl-note {
	margin: 14px 0 0;
	text-align: left;
}

/* --- Next steps --- */
.cc-dl-next {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	max-width: 1080px;
	margin: 28px auto 0;
	font-family: var(--font_dm, 'DM Sans'), system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
	animation: ccRise 0.7s ease both 0.6s;
}
.cc-dl-next-card {
	padding: 28px 30px;
	border: 1px solid #e3e8ef;
	border-radius: 20px;
	background: #fff;
}
.cc-dl-next-card h2 {
	margin: 0 0 8px;
	font-family: var(--font_yantramanv, inherit), sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: #05172C;
}
.cc-dl-next-card p {
	margin: 0 0 18px;
	color: #4a5568;
	font-size: 15px;
	line-height: 1.6;
}
.cc-dl-next-card--dark {
	border-color: transparent;
	background:
		radial-gradient(90% 70% at 100% 0%, rgba(58, 159, 186, 0.35), transparent 60%),
		linear-gradient(160deg, #0c2746 0%, #05172C 80%);
}
.cc-dl-next-card--dark h2 {
	color: #fff;
}
.cc-dl-next-card--dark p {
	color: #c8d6e2;
}
.cc-dl-link-btn {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 10px 20px;
	border-radius: 10px;
	background: #3A9FBA;
	color: #fff !important;
	font-weight: 700;
	text-decoration: none !important;
	transition: transform 0.2s ease, background 0.2s ease;
}
.cc-dl-link-btn:hover {
	transform: translateY(-1px);
	background: #2E3192;
}
.cc-dl-posts {
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}
.cc-dl-posts li + li {
	border-top: 1px solid #eef2f6;
}
.cc-dl-posts a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 0;
	color: #1d2b3a !important;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none !important;
	transition: color 0.2s ease;
}
.cc-dl-posts a::after {
	content: "\2192";
	color: #3A9FBA;
	transition: transform 0.2s ease;
}
.cc-dl-posts a:hover {
	color: #2E3192 !important;
}
.cc-dl-posts a:hover::after {
	transform: translateX(4px);
}

@keyframes ccDlFlap {
	0% { transform: rotateX(0deg); z-index: 4; }
	49% { z-index: 4; }
	50% { z-index: 1; }
	100% { transform: rotateX(180deg); z-index: 1; }
}
@keyframes ccDlRise {
	from { transform: translateY(42%); }
	to { transform: translateY(-26%); }
}
@keyframes ccDlFloat {
	0%, 100% { transform: translateY(-26%); }
	50% { transform: translateY(-30%); }
}
@keyframes ccDlSpark {
	0% { opacity: 0; transform: scale(0.3); }
	40% { opacity: 1; transform: scale(1.2); }
	100% { opacity: 0; transform: translateY(-14px) scale(0.8); }
}
@keyframes ccDlGlow {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.6; }
}

@media (max-width: 860px) {
	.cc-dl-hero {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
		padding: 34px 24px 30px;
	}
	.cc-dl-art {
		max-width: 260px;
	}
	.cc-dl-next {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}
}
@media (max-width: 575px) {
	.cc-dl-area {
		padding: 36px 14px 64px;
	}
	.cc-dl-art {
		max-width: 220px;
	}
	.cc-dl-main .cc-dl-btn {
		width: 100%;
	}
	.cc-dl-next-card {
		padding: 24px 20px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.cc-dl-hero *,
	.cc-dl-next,
	.cc-dl-main {
		animation: none !important;
	}
	.cc-dl-sheet {
		transform: translateY(-26%);
	}
	.cc-dl-env-flap {
		transform: rotateX(180deg);
		z-index: 1;
	}
}

/* ---------- Tablets: one column, form first, scene below ---------- */
@media (max-width: 991px) {
	.cc-get-area {
		padding: 40px 0 64px;
	}
	.cc-get {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "side" "preview";
		gap: 44px;
	}
	.cc-get-side {
		max-width: 620px;
		margin: 0 auto;
		justify-self: center;
	}
	.cc-mail {
		margin: 0 auto;
		justify-self: center;
	}
	.cc-mail-stage {
		width: min(100%, 320px);
	}
}
/* ---------- Phones ---------- */
@media (max-width: 575px) {
	.cc-get-area {
		padding: 28px 0 52px;
	}
	.cc-get-wrap {
		padding-left: 16px;
		padding-right: 16px;
	}
	.cc-get-notice {
		gap: 12px;
		padding: 14px 16px;
	}
	.cc-get-notice-icon {
		width: 36px;
		height: 36px;
	}
	.cc-get-notice-text {
		font-size: 17px;
	}
	.leadgen--landing .leadgen-card {
		padding: 26px 20px 20px;
	}
	.cc-mail-stage {
		width: min(86%, 280px);
	}
	.cc-mail-doc {
		padding: 12px 11px;
	}
	.cc-mail-doc-title {
		font-size: 12px;
	}
	.cc-mail-steps li {
		font-size: 14px;
	}
	.cc-get-closed p {
		font-size: 16px;
	}
	.cc-dl-card {
		padding: 32px 22px 26px;
	}
}

/* Reduced motion: no floating, flying or drawing; states simply switch. */
@media (prefers-reduced-motion: reduce) {
	.cc-mail *,
	.cc-mail *::after,
	.leadgen-page .leadgen-sent-anim,
	.leadgen-page .leadgen-sent-anim *,
	.cc-dl-card,
	.cc-dl-icon {
		animation: none !important;
		transition: none !important;
	}
	.leadgen-page .leadgen-sent-anim *,
	.cc-mail[data-state="sent"] .cc-mail-done-ring,
	.cc-mail[data-state="sent"] .cc-mail-done-tick {
		stroke-dashoffset: 0 !important;
		transform: none !important;
	}
}
