/* ââ Footer 2026 â full-width creative, shell-aligned content ââ */
.cm-footer,
.cm-footer--2026 {
	position: relative;
	margin-top: 0;
	padding: 0;
	background:
		radial-gradient(ellipse 80% 50% at 10% 0%, rgba(99, 102, 241, 0.22), transparent 55%),
		radial-gradient(ellipse 60% 40% at 90% 10%, rgba(236, 72, 153, 0.16), transparent 50%),
		linear-gradient(180deg, #0b1224 0%, #020617 55%, #000 100%);
	color: #cbd5e1;
	overflow: hidden;
	isolation: isolate;
}
.cm-footer__glow {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
	opacity: 0.6;
}
.cm-footer--2026 > * {
	position: relative;
	z-index: 1;
}

/* Top CTA ribbon */
.cm-footer__ribbon {
	border-bottom: 1px solid rgba(148, 163, 184, 0.12);
	background: linear-gradient(105deg, rgba(99, 102, 241, 0.18), rgba(236, 72, 153, 0.12) 50%, rgba(14, 165, 233, 0.14));
	padding: clamp(28px, 4vw, 40px) 0;
}
.cm-footer__ribbon-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}
.cm-footer__badge {
	display: inline-block;
	margin-bottom: 8px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff !important;
	background: linear-gradient(135deg, #6366f1, #ec4899);
}
.cm-footer__ribbon-title {
	margin: 0 0 8px;
	font-size: clamp(1.25rem, 2.4vw, 1.75rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #ffffff !important;
	line-height: 1.2;
}
.cm-footer__ribbon-lead {
	margin: 0;
	max-width: 52ch;
	font-size: 0.95rem;
	line-height: 1.55;
	color: #e2e8f0 !important;
}
.cm-footer__ribbon-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.cm-footer__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	border-radius: 999px;
	font-weight: 800;
	font-size: 0.88rem;
	text-decoration: none !important;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cm-footer__btn:hover { transform: translateY(-2px); }
.cm-footer__btn--primary {
	background: linear-gradient(135deg, #6366f1, #a855f7 50%, #ec4899);
	color: #fff !important;
	box-shadow: 0 10px 28px rgba(99, 102, 241, 0.4);
}
.cm-footer__btn--ghost {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.22);
	color: #fff !important;
}

/* Main grid â matches .cm-shell content width */
.cm-footer__main {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1.15fr;
	gap: clamp(24px, 3vw, 40px);
	padding: clamp(36px, 5vw, 56px) 0 clamp(28px, 3vw, 40px);
	align-items: start;
}
.cm-footer__logo {
	display: inline-block;
	font-size: 1.45rem;
	font-weight: 900;
	letter-spacing: -0.03em;
	color: #ffffff !important;
	text-decoration: none !important;
	margin-bottom: 10px;
	background: linear-gradient(105deg, #fff 0%, #a5b4fc 45%, #f9a8d4 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent !important;
}
.cm-footer__tagline {
	margin: 0 0 16px;
	max-width: 36ch;
	font-size: 0.92rem;
	line-height: 1.55;
	color: #94a3b8 !important;
}
.cm-footer__pillars {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.cm-footer__pillars li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	color: #e2e8f0 !important;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
}
.cm-fp {
	width: 20px;
	height: 20px;
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.58rem;
	color: #fff !important;
}
.cm-fp--a { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.cm-fp--p { background: linear-gradient(135deg, #fbbf24, #f97316); }
.cm-fp--d { background: linear-gradient(135deg, #10b981, #14b8a6); }
.cm-fp--l { background: linear-gradient(135deg, #a855f7, #ec4899); }
.cm-fp--v { background: linear-gradient(135deg, #fa6252, #f43f5e); }

.cm-footer__col h3 {
	margin: 0 0 14px;
	color: #ffffff !important;
	font-size: 0.78rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}
.cm-footer__col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.cm-footer__col li {
	margin: 0 0 9px;
}
.cm-footer__col a {
	color: #cbd5e1 !important;
	text-decoration: none !important;
	font-size: 0.9rem;
	font-weight: 600;
	transition: color 0.15s ease, padding-left 0.15s ease;
}
.cm-footer__col a:hover {
	color: #ffffff !important;
	padding-left: 3px;
}

.cm-footer__mini-card {
	margin-top: 18px;
	padding: 16px;
	border-radius: 16px;
	background: linear-gradient(145deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.12));
	border: 1px solid rgba(255, 255, 255, 0.12);
}
.cm-footer__mini-card strong {
	display: block;
	color: #ffffff !important;
	font-size: 0.92rem;
	margin-bottom: 6px;
}
.cm-footer__mini-card p {
	margin: 0 0 10px;
	font-size: 0.82rem;
	line-height: 1.45;
	color: #94a3b8 !important;
}
.cm-footer__mini-card a {
	font-weight: 800;
	font-size: 0.85rem;
	color: #a5b4fc !important;
}
.cm-footer__mini-card a:hover { color: #fff !important; }

.cm-footer__bottom {
	border-top: 1px solid rgba(148, 163, 184, 0.14);
	padding: 16px 0 22px;
	background: rgba(0, 0, 0, 0.25);
}
.cm-footer__bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
.cm-footer__copy,
.cm-footer__note {
	margin: 0;
	font-size: 0.8rem;
	color: #94a3b8 !important;
}
.cm-footer__note { opacity: 0.85; }

/* Shell width consistency for footer */
.cm-footer .cm-shell {
	width: min(1200px, calc(100% - 40px));
	margin-inline: auto;
	box-sizing: border-box;
}

@media (max-width: 960px) {
	.cm-footer__main {
		grid-template-columns: 1fr 1fr;
	}
	.cm-footer__brand-col {
		grid-column: 1 / -1;
	}
}
@media (max-width: 560px) {
	.cm-footer__main {
		grid-template-columns: 1fr;
	}
	.cm-footer__ribbon-inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Legacy footer hooks (older markup) */
.cm-footer h3 {
	margin: 0 0 8px;
	color: #fff;
	font-size: 0.85rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.cm-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.cm-footer li { margin: 0 0 6px; }
.cm-footer-bottom {
	border-top: 1px solid rgba(148, 163, 184, 0.2);
	padding-top: 12px;
	font-size: 0.82rem;
}
.cm-footer-brand { font-size: 1.05rem; }

/* Global footer integration: one footer on all pages. */
.cm-footer--2026 {
	clear: both;
	width: 100%;
	max-width: none;
}

/* The legacy footer advertising slot is intentionally hidden site-wide. */
.king-ads.footer-ad,
.site-footer .footer-ad,
footer .footer-ad,
#colophon .king-ads {
	display: none !important;
}

/* Prevent legacy theme rules from restyling the shared footer. */
.cm-footer--2026,
.cm-footer--2026 * {
	box-sizing: border-box;
}
.cm-footer--2026 p,
.cm-footer--2026 ul,
.cm-footer--2026 h2,
.cm-footer--2026 h3 {
	max-width: none;
}
.cm-footer--2026 img {
	max-width: 100%;
}

@media (max-width: 782px) {
	.cm-footer .cm-shell {
		width: min(100% - 28px, 1200px);
	}
}
