/* ==========================================================================
   CrashLens — estilo do site
   --------------------------------------------------------------------------
   Reproduz as páginas que viviam no app (LandingPage.tsx e afins). Os números
   (tamanhos, espaçamentos, cores) vêm direto dos .style.tsx de lá.

   Convenções:
   - Tudo é classe `cl-*` posta em blocos nativos ("Classe(s) CSS adicional(is)"
     no editor). Nenhum seletor depende das classes de layout do WP: o theme.json
     desliga os estilos de layout (blockGap: null), então quem manda é este arquivo.
   - Breakpoint único de 768px, o mesmo do app (`usePlatform`). Entre 768 e
     1100px o desktop aperta só os paddings.
   - Ícones: `cl-ic cl-ic--<nome>` desenha o ícone Font Awesome 6 (assets/icons)
     com máscara CSS, na cor do texto. Trocar o ícone = trocar a classe.
   ========================================================================== */

:root {
	--cl-navy: #1d2647;
	--cl-accent: #e7362b;
	--cl-accent-text: #db2419;
	--cl-accent-wash: #e7362b1a;
	--cl-navy-wash: #1d264714;
	--cl-white: #ffffff;
	--cl-bg-light: #f4f5f8;
	--cl-text: #1d2647;
	--cl-text-gray: #5a6478;
	--cl-border: #dfe3ec;
	--cl-ease: cubic-bezier(0.16, 1, 0.3, 1);
	--cl-content: 1100px;
	--cl-gutter: 80px;
	--cl-admin-bar: var(--wp-admin--admin-bar--height, 0px);
	--cl-header-h: 0px; /* medido pelo JS, usado nas âncoras */
}

@media (max-width: 1099px) {
	:root { --cl-gutter: 40px; }
}
@media (max-width: 767px) {
	:root { --cl-gutter: 24px; }
}

/* ---------- Base ---------- */

html { scroll-padding-top: calc(var(--cl-header-h) + var(--cl-admin-bar) + 12px); }

body {
	margin: 0;
	background: var(--cl-white);
	color: var(--cl-text);
	font-family: var(--wp--preset--font-family--inter, "Inter", system-ui, sans-serif);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

:where(.wp-site-blocks, .editor-styles-wrapper) :where(p, h1, h2, h3, h4, h5, h6, ul, ol, figure, blockquote) {
	margin: 0;
}

:where(.wp-site-blocks) a { color: inherit; }

.cl-wrap {
	width: 100%;
	max-width: var(--cl-content);
	margin-inline: auto;
	box-sizing: border-box;
}

.cl-main { display: block; }

/* `<mark>` do formato "cor do texto" do editor: sem fundo amarelo. */
mark.has-inline-color { background: transparent; }
.has-accent-color { color: var(--cl-accent) !important; }
.has-accent-text-color { color: var(--cl-accent-text) !important; }
.has-navy-color { color: var(--cl-navy) !important; }

/* ---------- Ícones (máscara CSS) ---------- */

.cl-ic--shield-halved { --cl-icon: url("../icons/shield-halved.svg"); }
.cl-ic--arrow-right { --cl-icon: url("../icons/arrow-right.svg"); }
.cl-ic--chevron-down { --cl-icon: url("../icons/chevron-down.svg"); }
.cl-ic--bars { --cl-icon: url("../icons/bars.svg"); }
.cl-ic--xmark { --cl-icon: url("../icons/xmark.svg"); }
.cl-ic--file-medical { --cl-icon: url("../icons/file-medical.svg"); }
.cl-ic--car-burst { --cl-icon: url("../icons/car-burst.svg"); }
.cl-ic--clock { --cl-icon: url("../icons/clock.svg"); }
.cl-ic--file-shield { --cl-icon: url("../icons/file-shield.svg"); }
.cl-ic--mobile-screen { --cl-icon: url("../icons/mobile-screen.svg"); }
.cl-ic--camera { --cl-icon: url("../icons/camera.svg"); }
.cl-ic--layer-group { --cl-icon: url("../icons/layer-group.svg"); }
.cl-ic--file-arrow-down { --cl-icon: url("../icons/file-arrow-down.svg"); }
.cl-ic--circle-check { --cl-icon: url("../icons/circle-check.svg"); }
.cl-ic--bullseye { --cl-icon: url("../icons/bullseye.svg"); }
.cl-ic--users { --cl-icon: url("../icons/users.svg"); }
.cl-ic--play { --cl-icon: url("../icons/play.svg"); }

.cl-ic::before {
	content: "";
	display: inline-block;
	flex-shrink: 0;
	width: var(--cl-icon-size, 1em);
	height: var(--cl-icon-size, 1em);
	background-color: var(--cl-icon-color, currentColor);
	-webkit-mask: var(--cl-icon) center / contain no-repeat;
	mask: var(--cl-icon) center / contain no-repeat;
}

/* ---------- Botões ---------- */

.cl-btn .wp-block-button__link {
	position: relative;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-sizing: border-box;
	padding: 9px 18px;
	border: 0;
	border-radius: 7px;
	background: var(--cl-accent);
	color: var(--cl-white);
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.2px;
	text-decoration: none;
	white-space: nowrap;
	transition: transform 0.15s var(--cl-ease), box-shadow 0.2s var(--cl-ease), background-color 0.2s;
}
.cl-btn .wp-block-button__link:active { transform: scale(0.97); }
.cl-btn .wp-block-button__link:focus-visible { outline: 2px solid var(--cl-navy); outline-offset: 2px; }

.cl-btn--nav .wp-block-button__link { box-shadow: 0 3px 10px rgba(231, 54, 43, 0.28); }

.cl-btn--lg .wp-block-button__link {
	min-height: 48px;
	padding: 12px 28px;
	border-radius: 8px;
	font-size: 15px;
	letter-spacing: 0;
}

.cl-btn--outline .wp-block-button__link {
	min-height: 44px;
	padding: 0 20px;
	gap: 9px;
	border: 1.5px solid var(--cl-accent);
	border-radius: 8px;
	background: transparent;
	color: var(--cl-accent-text);
	font-size: 14px;
	letter-spacing: 0;
}

/* Seta depois do texto ("Get started free →"). */
.cl-btn--arrow .wp-block-button__link::after,
.cl-arrow a::after {
	content: "";
	width: 11px;
	height: 11px;
	flex-shrink: 0;
	background-color: currentColor;
	-webkit-mask: url("../icons/arrow-right.svg") center / contain no-repeat;
	mask: url("../icons/arrow-right.svg") center / contain no-repeat;
	transition: transform 0.2s var(--cl-ease);
}
.cl-btn--outline.cl-btn--arrow .wp-block-button__link::after { width: 12px; height: 12px; }
.cl-btn--arrow .wp-block-button__link:hover::after,
.cl-arrow a:hover::after { transform: translateX(2px); }

/* Brilho que atravessa o botão no hover (ShineButton). */
.cl-btn--shine .wp-block-button__link::before {
	content: "";
	position: absolute;
	top: -40px;
	bottom: -40px;
	left: 0;
	width: 56px;
	background: var(--cl-white);
	opacity: 0;
	transform: translateX(-140px) rotate(18deg);
	pointer-events: none;
}
.cl-btn--shine .wp-block-button__link:hover::before { animation: cl-shine 0.62s ease-out; }
@keyframes cl-shine {
	0% { opacity: 0; transform: translateX(-140px) rotate(18deg); }
	15% { opacity: 0.22; }
	85% { opacity: 0.22; }
	100% { opacity: 0; transform: translateX(260px) rotate(18deg); }
}

/* ==========================================================================
   Cabeçalho
   ========================================================================== */

.cl-header-wrap {
	position: sticky;
	top: var(--cl-admin-bar);
	z-index: 100;
}

.cl-header { position: relative; }

/* Faixa navy de cima */
.cl-utility {
	background: var(--cl-navy);
	padding: 7px 24px;
}
.cl-utility__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.cl-utility__text {
	display: block;
	font-size: 12px;
	line-height: 16px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.72);
	--cl-icon-size: 11px;
	--cl-icon-color: var(--cl-white);
}
/* Bloco, não flex: em flex o espaço antes do <strong> some. */
.cl-utility__text::before { margin-right: 8px; vertical-align: -1px; }
.cl-utility__text strong { color: var(--cl-white); font-weight: 700; }
.cl-utility__link a {
	display: block;
	padding: 2px 0;
	font-size: 12px;
	line-height: 16px;
	font-weight: 600;
	color: var(--cl-white);
	text-decoration: none;
	transition: color 0.2s;
}
.cl-utility__link a:hover { color: rgba(255, 255, 255, 0.75); }

/* Barra principal */
.cl-nav {
	background: var(--cl-white);
	padding: 12px 24px;
	border-bottom: 1px solid var(--cl-border);
	box-shadow: 0 1px 4px rgba(29, 38, 71, 0.05);
	transition: padding 0.26s var(--cl-ease), box-shadow 0.26s var(--cl-ease), background-color 0.26s;
}
.cl-header.is-scrolled .cl-nav {
	padding-block: 7px;
	background: rgba(255, 255, 255, 0.82);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	backdrop-filter: saturate(180%) blur(12px);
	box-shadow: 0 1px 12px rgba(29, 38, 71, 0.14);
}
.cl-nav__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.cl-logo a {
	display: block;
	width: 190px;
	height: 67px;
	background: url("../img/crashlens-wordmark.svg") left center / contain no-repeat;
	overflow: hidden;
	color: transparent;
	font-size: 0;
	transition: transform 0.15s var(--cl-ease);
}
.cl-logo a:active { transform: scale(0.98); }
.cl-logo--sm a { width: 126px; height: 52px; }

.cl-nav__links {
	display: flex;
	align-items: center;
	gap: 28px;
	flex: 1;
	margin-left: 16px;
}
.cl-nav__link a {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 0;
	font-size: 13px;
	line-height: 16px;
	font-weight: 600;
	letter-spacing: 0.5px;
	color: var(--cl-text);
	text-decoration: none;
}
/* Sublinhado que cresce da esquerda no hover. */
.cl-nav__link a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	height: 2px;
	width: 100%;
	border-radius: 1px;
	background: var(--cl-accent);
	transform: scaleX(0);
	transform-origin: left;
	opacity: 0;
	transition: transform 0.2s var(--cl-ease), opacity 0.2s var(--cl-ease);
}
.cl-nav__link a:hover::after,
.cl-header.is-mega-open .cl-nav__trigger a::after { transform: scaleX(1); opacity: 1; }

/* Seta do "Products" */
.cl-nav__trigger a::before {
	content: "";
	order: 2;
	width: 9px;
	height: 9px;
	background-color: var(--cl-text-gray);
	-webkit-mask: url("../icons/chevron-down.svg") center / contain no-repeat;
	mask: url("../icons/chevron-down.svg") center / contain no-repeat;
	transition: transform 0.2s var(--cl-ease), background-color 0.2s;
}
.cl-header.is-mega-open .cl-nav__trigger a::before {
	transform: rotate(180deg);
	background-color: var(--cl-accent-text);
}

.cl-nav__actions {
	display: flex;
	align-items: center;
	gap: 4px;
}
.cl-nav__ghost a {
	display: block;
	padding: 9px 12px;
	border-radius: 7px;
	font-size: 13px;
	line-height: 16px;
	font-weight: 600;
	color: var(--cl-text);
	text-decoration: none;
	transition: color 0.2s;
}
.cl-nav__ghost a:hover { color: var(--cl-accent-text); }

.cl-nav__link a,
.cl-nav__ghost a { white-space: nowrap; }

/* Desktop estreito (768–1023): no app os links se sobrepunham aqui. Aperta os
   espaços e tira o "Download apps" (continua no menu Products e no rodapé). */
@media (min-width: 768px) and (max-width: 1023px) {
	.cl-nav__links { gap: 18px; margin-left: 4px; }
	.cl-nav__ghost { display: none; }
	.cl-nav .cl-logo a { width: 163px; }
}

/* Botão de menu do celular (criado pelo JS) */
.cl-nav__toggle {
	display: none;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--cl-navy);
	cursor: pointer;
	--cl-icon-size: 18px;
}

/* ---------- Megamenu ---------- */

.cl-mega {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	padding: 0 24px;
}
.cl-header.is-mega-open .cl-mega {
	display: block;
	animation: cl-mega-in 0.18s var(--cl-ease);
}
@keyframes cl-mega-in {
	from { opacity: 0; transform: translateY(-8px); }
	to { opacity: 1; transform: none; }
}
.cl-mega__panel {
	max-width: var(--cl-content);
	margin: 8px auto 0;
	background: var(--cl-white);
	border: 1px solid var(--cl-border);
	border-radius: 14px;
	box-shadow: 0 18px 34px rgba(29, 38, 71, 0.16);
	overflow: hidden;
}
.cl-mega__main {
	display: flex;
	gap: 24px;
	padding: 24px;
}
.cl-mega__apps { flex: 1; }
.cl-mega__title {
	margin-bottom: 12px !important;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.2px;
	color: var(--cl-text-gray);
}
.cl-mega__cards { display: flex; gap: 12px; }
.cl-mega__card {
	position: relative;
	flex: 1 1 0;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px;
	border: 1px solid var(--cl-border);
	border-radius: 10px;
	background: var(--cl-bg-light);
	transition: transform 0.15s var(--cl-ease);
}
.cl-mega__card:active { transform: scale(0.98); }
.cl-mega__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	flex-shrink: 0;
	border-radius: 9px;
	background: var(--cl-accent-wash);
	color: var(--cl-accent);
	--cl-icon-size: 16px;
	transition: transform 0.2s var(--cl-ease);
}
.cl-mega__card--navy .cl-mega__icon { background: var(--cl-navy-wash); color: var(--cl-navy); }
.cl-mega__card:hover .cl-mega__icon { transform: translateY(-3px); }
.cl-mega__body { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.cl-mega__name a {
	font-size: 14px;
	font-weight: 700;
	color: var(--cl-text);
	text-decoration: none;
}
/* O card inteiro é clicável: o link do nome se estende sobre ele. */
.cl-mega__name a::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
.cl-mega__tagline {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.3px;
	color: var(--cl-accent-text);
}
.cl-mega__desc {
	margin-top: 2px !important;
	font-size: 12px;
	line-height: 17px;
	color: var(--cl-text-gray);
}
.cl-mega__account { width: 260px; }
.cl-mega__link {
	padding: 7px 0;
	font-size: 11px;
	line-height: 1.4;
	color: var(--cl-text-gray);
}
.cl-mega__link a {
	display: inline-block;
	margin-bottom: 1px;
	font-size: 13px;
	font-weight: 600;
	color: var(--cl-text);
	text-decoration: none;
	transition: color 0.2s;
}
.cl-mega__link a:hover { color: var(--cl-accent-text); }
.cl-mega__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	padding: 14px 24px;
	background: var(--cl-bg-light);
	border-top: 1px solid var(--cl-border);
}
.cl-mega__foot-text { font-size: 12px; font-weight: 500; color: var(--cl-text-gray); }
.cl-mega__foot-cta a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 12px;
	font-weight: 700;
	color: var(--cl-accent-text);
	text-decoration: none;
}
.cl-mega__mobile-links,
.cl-mega__mobile-signin { display: none; }

/* ---------- Cabeçalho no celular ---------- */

@media (max-width: 767px) {
	.cl-utility__link,
	.cl-nav__links,
	.cl-nav__ghost { display: none; }
	.cl-nav__toggle { display: inline-flex; }
	.cl-btn--nav .wp-block-button__link::after { display: none; }

	/* No celular o menu empurra a página em vez de flutuar por cima dela. */
	.cl-mega {
		position: static;
		padding: 16px 20px 20px;
		background: var(--cl-white);
		border-top: 1px solid var(--cl-border);
		border-bottom: 1px solid var(--cl-border);
		max-height: calc(100vh - 140px);
		overflow-y: auto;
	}
	.cl-mega__panel {
		margin: 0;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		background: transparent;
		overflow: visible;
		display: flex;
		flex-direction: column;
		gap: 20px;
	}
	.cl-mega__main { flex-direction: column; gap: 18px; padding: 0; }
	.cl-mega__cards { flex-direction: column; gap: 10px; }
	.cl-mega__account { width: 100%; }
	.cl-mega__foot { padding: 0; background: transparent; border: 0; margin-top: 4px; }
	.cl-mega__mobile-links {
		display: block;
		border-top: 1px solid var(--cl-border);
		padding-top: 6px;
	}
	.cl-mega__mobile-signin { display: block; }
	.cl-mega__mobile-signin a {
		display: block;
		padding: 8px 20px;
		border: 1.5px solid var(--cl-accent);
		border-radius: 6px;
		text-align: center;
		font-size: 13px;
		font-weight: 600;
		color: var(--cl-accent-text);
		text-decoration: none;
	}
}

/* ==========================================================================
   Peças comuns das seções
   ========================================================================== */

.cl-section {
	position: relative;
	padding: 56px var(--cl-gutter) 64px;
	background: var(--cl-white);
}
.cl-section--light { background: var(--cl-bg-light); }
@media (max-width: 767px) {
	.cl-section { padding-inline: 32px; }
}

.cl-eyebrow {
	margin-bottom: 40px !important;
	text-align: center;
	font-size: 11px;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: 4px;
	text-transform: uppercase;
	color: var(--cl-accent-text);
}

.cl-section-title {
	max-width: 560px;
	margin: 0 auto 40px !important;
	text-align: center;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 800;
	color: var(--cl-text);
}
@media (min-width: 768px) {
	.cl-section-title { font-size: 24px; }
}

/* Lista com "check" vermelho antes de cada item. */
.cl-checklist {
	list-style: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.cl-checklist li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	line-height: 20px;
	font-weight: 500;
	color: var(--cl-text-gray);
}
.cl-checklist li::before {
	content: "";
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	background-color: var(--cl-accent);
	-webkit-mask: url("../icons/circle-check.svg") center / contain no-repeat;
	mask: url("../icons/circle-check.svg") center / contain no-repeat;
}
.cl-checklist--strong li { color: var(--cl-text); }

/* Círculo com ícone (pilares, etapas). */
.cl-bubble {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--cl-accent-wash);
	color: var(--cl-accent);
	--cl-icon-size: 28px;
}
.cl-bubble--navy { background: var(--cl-navy-wash); color: var(--cl-navy); }
.cl-bubble--lg { width: 92px; height: 92px; --cl-icon-size: 38px; }

/* ==========================================================================
   Home: hero
   ========================================================================== */

.cl-hero {
	position: relative;
	overflow: hidden;
	padding: 96px var(--cl-gutter) 112px;
	background: var(--cl-white);
}
.cl-hero__layout {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 64px;
}
@media (max-width: 1099px) { .cl-hero__layout { gap: 40px; } }

.cl-hero__copy {
	flex: 1 1 auto;
	max-width: 660px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.cl-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 24px !important;
	padding: 6px 14px;
	border: 1px solid var(--cl-border);
	border-radius: 999px;
	background: var(--cl-white);
	font-size: 11px;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: 2px;
	color: var(--cl-text-gray);
}
.cl-pill::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--cl-accent);
}

.cl-hero__title {
	font-size: 52px;
	line-height: 60px;
	font-weight: 800;
	color: var(--cl-text);
	letter-spacing: 0;
}
.cl-hero__lede {
	max-width: 600px;
	margin-top: 20px !important;
	font-size: 18px;
	line-height: 30px;
	color: var(--cl-text-gray);
}
.cl-hero__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 36px;
}
.cl-hero__signin {
	align-self: flex-start;
	margin-top: 20px !important;
	padding: 12px;
	font-size: 14px;
	line-height: 20px;
	color: var(--cl-text-gray);
}
.cl-hero__signin a { font-weight: 700; color: var(--cl-text); text-decoration: underline; }

.cl-proof {
	align-self: stretch;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 40px;
	padding-top: 28px;
	border-top: 1px solid var(--cl-border);
}
.cl-proof__item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 12px;
	font-size: 13px;
	line-height: 18px;
	font-weight: 500;
	color: var(--cl-text-gray);
	--cl-icon-size: 13px;
	--cl-icon-color: var(--cl-accent);
}

.cl-hero__media {
	position: relative;
	flex: 0 1 34%;
	min-width: 260px;
	max-width: 380px;
}
/* Brilho vermelho atrás do vídeo */
.cl-hero__media::before {
	content: "";
	position: absolute;
	top: 18px;
	left: 10px;
	right: 10px;
	bottom: -10px;
	border-radius: 28px;
	background: var(--cl-accent-wash);
	z-index: -1;
}
.cl-video {
	position: relative;
	width: 100%;
	aspect-ratio: 9 / 16;
	border-radius: 20px;
	overflow: hidden;
	background: var(--cl-navy);
	border: 1px solid var(--cl-border);
	box-shadow: 0 18px 28px rgba(29, 38, 71, 0.18);
}
.cl-video iframe,
.cl-video img {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
	pointer-events: none;
}

@media (max-width: 767px) {
	.cl-hero { padding: 56px 24px 84px; }
	.cl-hero__layout { flex-direction: column; gap: 0; }
	.cl-hero__copy { align-items: center; max-width: none; width: 100%; }
	.cl-hero__title { font-size: 32px; line-height: 40px; text-align: center; }
	.cl-hero__lede { font-size: 16px; line-height: 26px; text-align: center; max-width: 620px; }
	.cl-hero__buttons { flex-direction: column; align-items: stretch; min-width: 240px; }
	.cl-hero__signin { align-self: center; text-align: center; }
	.cl-proof {
		align-self: center;
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}
	.cl-proof__item { padding: 0; }
	.cl-hero__media { width: 100%; max-width: 300px; min-width: 0; margin-top: 44px; flex: none; }
}

/* Fundo "campo de varredura" (ScanField), montado pelo JS. */
.cl-scanfield {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
}
.cl-scanfield svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cl-scanfield__sweep {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 260px;
	background: linear-gradient(to bottom, rgba(231, 54, 43, 0), rgba(231, 54, 43, 0.021) 55%, rgba(231, 54, 43, 0.051));
	transform: translateY(-260px);
	animation: cl-sweep 14s linear infinite;
}
.cl-scanfield__sweep::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1.5px;
	background: var(--cl-accent);
	opacity: 0.24;
	box-shadow: 0 0 12px rgba(231, 54, 43, 0.3);
}
/* 9s de passada + 5s de pausa = 14s (a pausa fica abaixo da borda). */
@keyframes cl-sweep {
	0% { transform: translateY(-260px); }
	64.3% { transform: translateY(var(--cl-sweep-end, 900px)); }
	100% { transform: translateY(var(--cl-sweep-end, 900px)); }
}

/* ==========================================================================
   Home: números
   ========================================================================== */

.cl-stats {
	padding: 0 var(--cl-gutter);
	background: var(--cl-bg-light);
}
.cl-stats__card {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: stretch;
	justify-content: center;
	max-width: 980px;
	margin: -40px auto 0;
	padding: 28px 16px;
	background: var(--cl-white);
	border: 1px solid var(--cl-border);
	border-radius: 16px;
	box-shadow: 0 6px 18px rgba(29, 38, 71, 0.06);
}
.cl-stat {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0 12px;
}
.cl-stat + .cl-stat { border-left: 1px solid var(--cl-border); }
.cl-stat__value {
	font-size: 36px;
	line-height: 42px;
	font-weight: 800;
	letter-spacing: -0.5px;
	color: var(--cl-text);
	font-variant-numeric: tabular-nums;
}
.cl-stat__value strong {
	margin-left: 3px;
	font-size: 18px;
	line-height: 24px;
	font-weight: 800;
	letter-spacing: 0;
	color: var(--cl-accent);
}
.cl-stat__label {
	max-width: 220px;
	margin-top: 6px !important;
	text-align: center;
	font-size: 13px;
	line-height: 19px;
	font-weight: 500;
	color: var(--cl-text-gray);
}
@media (max-width: 767px) {
	.cl-stats { padding-inline: 24px; }
	.cl-stats__card { flex-direction: column; margin-top: -28px; padding: 8px 20px; }
	.cl-stat { padding: 20px 12px; }
	.cl-stat + .cl-stat { border-left: 0; border-top: 1px solid var(--cl-border); }
}

/* ==========================================================================
   Home: "How it works" (etapas com troca automática)
   ========================================================================== */

.cl-how__layout {
	display: flex;
	align-items: stretch;
	gap: 40px;
}
.cl-how__steps {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
	counter-reset: cl-step;
}
.cl-how__step {
	position: relative;
	display: grid;
	grid-template-columns: 34px 1fr;
	column-gap: 14px;
	padding: 16px;
	border: 1px solid transparent;
	border-radius: 10px;
	counter-increment: cl-step;
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s;
}
.cl-how__step::before {
	content: counter(cl-step);
	grid-row: 1 / span 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--cl-navy-wash);
	font-size: 13px;
	font-weight: 800;
	color: var(--cl-text-gray);
	transition: background-color 0.2s, color 0.2s;
}
.cl-how__step.is-active { background: var(--cl-white); border-color: var(--cl-border); }
.cl-how__step.is-active::before { background: var(--cl-accent); color: var(--cl-white); }
.cl-how__step:focus-visible { outline: 2px solid var(--cl-navy); outline-offset: 2px; }
.cl-how__step-title {
	margin-bottom: 4px !important;
	font-size: 15px;
	line-height: 1.3;
	font-weight: 700;
	color: var(--cl-text-gray);
}
.cl-how__step.is-active .cl-how__step-title { color: var(--cl-text); }
.cl-how__step-desc { font-size: 13px; line-height: 20px; color: var(--cl-text-gray); }

/* Barrinha do tempo até a próxima etapa (criada pelo JS). */
.cl-how__progress {
	grid-column: 1 / -1;
	height: 2px;
	margin-top: 14px;
	border-radius: 1px;
	background: var(--cl-bg-light);
	overflow: hidden;
}
.cl-how__progress i {
	display: block;
	height: 100%;
	width: 100%;
	background: var(--cl-accent);
	transform: scaleX(0);
	transform-origin: left;
	animation: cl-progress var(--cl-step-hold, 5.2s) linear forwards;
}
@keyframes cl-progress { to { transform: scaleX(1); } }

.cl-how__stage {
	position: relative;
	flex: 1;
	min-height: 340px;
	display: grid;
	border: 1px solid var(--cl-border);
	border-radius: 14px;
	background: var(--cl-white);
	overflow: hidden;
}
.cl-how__pane {
	grid-area: 1 / 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 28px;
	transition: opacity 0.32s var(--cl-ease), transform 0.32s var(--cl-ease), visibility 0.32s;
}
/* Sem JS (e no editor) as três aparecem em sequência; com JS, só a ativa. */
html.cl-js .cl-how__pane:not(.is-active) {
	opacity: 0;
	visibility: hidden;
	transform: translateY(14px) scale(0.97);
}
html:not(.cl-js) .cl-how__stage,
.editor-styles-wrapper .cl-how__stage { display: flex; flex-direction: column; }
.cl-how__pane .cl-bubble { margin-bottom: 20px; }
.cl-how__pane-title {
	margin-bottom: 16px !important;
	text-align: center;
	font-size: 18px;
	line-height: 1.3;
	font-weight: 800;
	color: var(--cl-text);
}
.cl-how__pane .cl-checklist { max-width: 320px; }

@media (max-width: 767px) {
	.cl-how__layout { flex-direction: column; gap: 24px; }
	.cl-how__stage { min-height: 300px; }
}

/* ==========================================================================
   Home: "Our apps" (abas)
   ========================================================================== */

.cl-tabbar {
	display: flex;
	gap: 4px;
	width: max-content;
	max-width: 100%;
	margin: 0 auto 32px;
	padding: 5px;
	border: 1px solid var(--cl-border);
	border-radius: 10px;
	background: var(--cl-bg-light);
	box-sizing: border-box;
}
.cl-tabbar__btn {
	flex: 1 1 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 20px;
	border: 0;
	border-radius: 7px;
	background: transparent;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--cl-text-gray);
	cursor: pointer;
	white-space: nowrap;
	--cl-icon-size: 14px;
	transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.cl-tabbar__btn[aria-selected="true"] {
	background: var(--cl-white);
	color: var(--cl-text);
	font-weight: 700;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
	--cl-icon-color: var(--cl-accent);
}
.cl-tabbar__btn:focus-visible { outline: 2px solid var(--cl-navy); outline-offset: 2px; }

.cl-apps__panels { display: flex; flex-direction: column; gap: 24px; }
.cl-app {
	display: flex;
	align-items: stretch;
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
	background: var(--cl-white);
	border: 1px solid var(--cl-border);
	border-radius: 14px;
	overflow: hidden;
}
html.cl-js .cl-apps.is-tabbed .cl-app[hidden] { display: none; }
.cl-apps.is-tabbed .cl-app { animation: cl-panel-in 0.32s var(--cl-ease); }
@keyframes cl-panel-in {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}
.cl-app__visual {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 340px;
	min-height: 320px;
	flex-shrink: 0;
	background: var(--cl-accent-wash);
	color: var(--cl-accent);
	--cl-icon-size: 80px;
}
.cl-app--navy .cl-app__visual { background: var(--cl-navy-wash); color: var(--cl-navy); }
.cl-app__content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 28px;
}
.cl-app__tagline {
	margin-bottom: 10px !important;
	font-size: 11px;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--cl-accent-text);
}
.cl-app__name {
	margin-bottom: 12px !important;
	font-size: 28px;
	line-height: 1.2;
	font-weight: 800;
	color: var(--cl-text);
}
.cl-app__desc {
	margin-bottom: 20px !important;
	font-size: 14px;
	line-height: 23px;
	color: var(--cl-text-gray);
}
.cl-app .cl-checklist { gap: 10px; }
.cl-app__cta { display: flex; margin-top: 22px; }

@media (max-width: 767px) {
	.cl-tabbar { width: 100%; }
	.cl-app { flex-direction: column; }
	.cl-app__visual { width: 100%; min-height: 200px; }
	.cl-app__name { font-size: 24px; }
}

/* ==========================================================================
   Home: "About us"
   ========================================================================== */

.cl-about { display: flex; flex-direction: column; align-items: center; }
.cl-about__title { margin-bottom: 16px !important; }
.cl-about__body {
	max-width: 600px;
	margin: 0 auto 48px !important;
	text-align: center;
	font-size: 15px;
	line-height: 24px;
	color: var(--cl-text-gray);
}
.cl-pillars { display: flex; gap: 24px; }
.cl-pillar {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0 16px;
	text-align: center;
}
.cl-pillar .cl-bubble {
	margin-bottom: 16px;
	transition: transform 0.2s var(--cl-ease);
}
.cl-pillar:hover .cl-bubble { transform: translateY(-6px) scale(1.06); }
.cl-pillar__title {
	margin-bottom: 8px !important;
	font-size: 15px;
	line-height: 1.3;
	font-weight: 700;
	color: var(--cl-text);
}
.cl-pillar__desc { font-size: 13px; line-height: 20px; color: var(--cl-text-gray); }
@media (max-width: 767px) {
	.cl-pillars { flex-direction: column; gap: 32px; }
}

/* ==========================================================================
   Rodapé
   ========================================================================== */

.cl-footer {
	padding: 56px var(--cl-gutter) 0;
	background: var(--cl-white);
	border-top: 1px solid var(--cl-border);
}
@media (max-width: 767px) { .cl-footer { padding-inline: 32px; } }
.cl-footer__top {
	display: flex;
	justify-content: space-between;
	gap: 48px;
	padding-bottom: 44px;
}
.cl-footer__brand {
	max-width: 320px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.cl-footer__tagline { font-size: 13px; line-height: 21px; color: var(--cl-text-gray); }
.cl-footer__brand .wp-block-buttons { margin-top: 2px; }
.cl-footer__cols { display: flex; flex-wrap: wrap; gap: 56px; }
.cl-footer__col { display: flex; flex-direction: column; gap: 12px; min-width: 120px; }
.cl-footer__title {
	margin-bottom: 2px !important;
	font-size: 11px;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: var(--cl-text);
}
.cl-footer__links {
	list-style: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.cl-footer__links a {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	box-sizing: border-box;
	padding: 5px 0;
	font-size: 13px;
	line-height: 20px;
	font-weight: 500;
	color: var(--cl-text-gray);
	text-decoration: none;
	transition: color 0.2s;
}
.cl-footer__links a:hover { color: var(--cl-accent-text); }
.cl-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding: 24px 0;
	border-top: 1px solid var(--cl-border);
}
/* O traço vermelho do canto. */
.cl-footer__bottom::after {
	content: "";
	width: 48px;
	height: 3px;
	border-radius: 2px;
	background: var(--cl-accent);
}
.cl-footer__legal { font-size: 13px; line-height: 20px; color: var(--cl-text-gray); }
.cl-footer__legal a { font-weight: 500; color: var(--cl-text-gray); text-decoration: underline; }
@media (max-width: 767px) {
	.cl-footer__top { flex-direction: column; gap: 36px; }
	.cl-footer__brand { max-width: none; }
	.cl-footer__cols { gap: 32px; justify-content: space-between; }
	.cl-footer__bottom { flex-direction: column; align-items: center; gap: 14px; }
}

/* ==========================================================================
   Páginas de texto e blog (cl-prose)
   ========================================================================== */

.cl-prose-page { padding: 56px var(--cl-gutter) 80px; }
.cl-prose {
	max-width: 760px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.7;
	color: var(--cl-text-gray);
}
.cl-prose > * + *,
.cl-prose .wp-block-post-content > * + * { margin-top: 1.1em; }
.cl-prose h1 { font-size: 36px; line-height: 1.2; font-weight: 800; color: var(--cl-text); }
.cl-prose h2 { margin-top: 1.8em !important; font-size: 24px; line-height: 1.3; font-weight: 800; color: var(--cl-text); }
.cl-prose h3 { margin-top: 1.5em !important; font-size: 18px; line-height: 1.4; font-weight: 700; color: var(--cl-text); }
.cl-prose a { color: var(--cl-accent-text); }
.cl-prose ul, .cl-prose ol { padding-left: 1.4em; }

/* ==========================================================================
   Animações de entrada
   --------------------------------------------------------------------------
   Só escondem sob `html.cl-js` (ver functions.php): sem JS tudo aparece.
   `cl-enter`  — entra ao carregar (hero), em sequência pelos modificadores.
   `cl-reveal` — entra quando rola até ele; `--d1..d3` dão o atraso.
   ========================================================================== */

html.cl-js .cl-enter {
	animation: cl-rise 1.1s var(--cl-ease) both;
}
html.cl-js .cl-enter--1 { animation-duration: 0.33s; --cl-rise: 10px; }
html.cl-js .cl-enter--2 { animation-delay: 0.088s; animation-duration: 0.41s; }
html.cl-js .cl-enter--3 { animation-delay: 0.2s; animation-duration: 0.44s; }
html.cl-js .cl-enter--4 { animation-delay: 0.31s; animation-duration: 0.46s; }
html.cl-js .cl-enter--5 { animation-delay: 0.4s; animation-duration: 0.46s; }
html.cl-js .cl-enter--6 { animation-delay: 0.48s; animation-duration: 0.5s; }
html.cl-js .cl-hero__media.cl-enter { animation-delay: 0.24s; animation-duration: 0.5s; --cl-rise: 24px; }
@keyframes cl-rise {
	from { opacity: 0; transform: translateY(var(--cl-rise, 18px)); }
	to { opacity: 1; transform: none; }
}

html.cl-js .cl-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.52s var(--cl-ease), transform 0.52s var(--cl-ease);
}
html.cl-js .cl-footer .cl-reveal { transform: translateY(16px); }
html.cl-js .cl-reveal.is-visible { opacity: 1; transform: none; }
html.cl-js .cl-reveal--d1 { transition-delay: 60ms; }
html.cl-js .cl-reveal--d2 { transition-delay: 120ms; }
html.cl-js .cl-reveal--d3 { transition-delay: 180ms; }

@media (prefers-reduced-motion: reduce) {
	html.cl-js .cl-enter { animation: none; }
	html.cl-js .cl-reveal { opacity: 1; transform: none; transition: none; }
	.cl-scanfield__sweep { display: none; }
	.cl-how__progress { display: none; }
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ==========================================================================
   Editor: mostra tudo, sem animação e sem cabeçalho grudado.
   ========================================================================== */

.editor-styles-wrapper .cl-header-wrap { position: static; }
.editor-styles-wrapper .cl-mega { display: block; position: static; padding: 16px 24px; }
.editor-styles-wrapper .cl-mega__mobile-links,
.editor-styles-wrapper .cl-mega__mobile-signin { display: block; }
.editor-styles-wrapper .cl-reveal,
.editor-styles-wrapper .cl-enter { opacity: 1 !important; transform: none !important; animation: none !important; }
