/**
 * Landing de captação — Diagnóstico Empresarial Consenso Global.
 *
 * Estilos próprios, prefixados com cgl-, para a página funcionar com qualquer
 * tema sem herdar nem contaminar. As cores vêm das variáveis da marca,
 * injetadas no elemento raiz pelo PHP.
 */

/* O tema traz margem no body e deixa uma moldura branca à volta da página.
   Numa landing de ecrã inteiro isso parte a ilusão de continuidade. */

body.cgl-body {
	margin: 0;
	padding: 0;
	background: #011533;
	overflow-x: hidden;
}

body.cgl-body > .cgl {
	overflow-x: hidden;
}

.cgl {
	/* Identidade partilhada com consenso-plus.com: o herói é um radial que
	   abre do azul-petróleo para o azul-marinho profundo, as secções claras
	   são azuladas e os títulos usam Poppins. */
	--cgl-hero-from: #236c93;
	--cgl-hero-to: #011533;
	--cgl-deep: #011533;
	--cgl-tint: #ebf5fd;
	--cgl-ink: #111111;
	--cgl-heading: "Poppins", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	--cgl-radius: 20px;
	--cgl-radius-sm: 13px;
	--cgl-shadow: 0 30px 70px -34px rgba( 13, 19, 45, 0.5 );
	/* Cresce com o ecrã até 1400px: num monitor largo a página deixa de ter
	   bandas vazias, e o teto impede linhas de texto demasiado compridas. */
	--cgl-max: min( 1400px, 92vw );

	box-sizing: border-box;
	font-family: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var( --cg-text );
	line-height: 1.6;
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

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

.cgl img {
	max-width: 100%;
	height: auto;
}

.cgl__wrap {
	width: 100%;
	max-width: var( --cgl-max );
	margin: 0 auto;
	padding: 0 24px;
}

.cgl__wrap--narrow {
	max-width: 820px;
}

/* ---------------------------------------------------------------------
 * Tipografia
 * ------------------------------------------------------------------ */

.cgl h1,
.cgl h2,
.cgl h3,
.cgl h4 {
	margin: 0;
	font-family: var( --cgl-heading );
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.18;
	color: var( --cgl-ink );
}

.cgl p {
	margin: 0;
}

.cgl__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 15px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	border-radius: 999px;
}

.cgl__section-title {
	font-size: clamp( 27px, 3.4vw, 38px );
	font-weight: 600;
	margin-bottom: 14px;
}

.cgl__section-lead {
	font-size: 17px;
	color: var( --cg-text-soft );
	max-width: 62ch;
}

.cgl__section {
	padding: clamp( 56px, 8vw, 96px ) 0;
}

.cgl__section--tint {
	background: var( --cgl-tint );
}

.cgl__head {
	margin-bottom: clamp( 32px, 4vw, 52px );
}

.cgl__head--center {
	text-align: center;
}

.cgl__head--center .cgl__section-lead {
	margin-left: auto;
	margin-right: auto;
}

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

.cgl__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 17px 34px;
	font-family: inherit;
	font-size: 16.5px;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	border: 2px solid transparent;
	border-radius: 999px;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cgl__btn:hover {
	transform: translateY( -2px );
}

.cgl__btn--accent {
	color: var( --cg-navy );
	background: var( --cg-accent );
	box-shadow: 0 16px 38px -14px rgba( 228, 172, 30, 0.9 );
}

.cgl__btn--accent:hover {
	background: var( --cg-accent-light );
	color: var( --cg-navy );
}

.cgl__btn--ghost {
	color: #fff;
	border-color: rgba( 255, 255, 255, 0.32 );
}

.cgl__btn--ghost:hover {
	background: rgba( 255, 255, 255, 0.1 );
	color: #fff;
}

.cgl__btn-note {
	margin-top: 12px;
	font-size: 13.5px;
}

.cgl__btn--lg {
	padding: 20px 40px;
	font-size: 17px;
}

/* ---------------------------------------------------------------------
 * Herói
 * ------------------------------------------------------------------ */

.cgl__hero {
	position: relative;
	padding: clamp( 34px, 6vw, 56px ) 0 clamp( 62px, 8vw, 104px );
	background: radial-gradient( at 100% 50%, var( --cgl-hero-from ) 40%, var( --cgl-hero-to ) 100% );
	color: #fff;
	overflow: hidden;
}

.cgl__hero::after {
	content: "";
	position: absolute;
	inset: auto -10% -60% 55%;
	height: 420px;
	background: radial-gradient( circle at 50% 50%, rgba( 228, 172, 30, 0.16 ), transparent 62% );
	pointer-events: none;
}

.cgl__brandbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: clamp( 34px, 5vw, 58px );
}

.cgl__logo {
	display: inline-flex;
	text-decoration: none;
}

/* O logótipo já traz o nome da empresa; não leva texto ao lado. */
.cgl__logo img {
	width: 84px;
	height: 84px;
	object-fit: contain;
	display: block;
}

.cgl__brandbar-contact {
	font-size: 14px;
	font-weight: 700;
	color: var( --cg-text-invert );
	text-decoration: none;
}

.cgl__brandbar-contact:hover {
	color: #fff;
}

.cgl__hero-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax( 0, 1.05fr ) minmax( 0, 0.95fr );
	gap: clamp( 32px, 5vw, 64px );
	align-items: center;
}

.cgl__hero .cgl__eyebrow {
	color: var( --cg-accent );
	background: rgba( 228, 172, 30, 0.14 );
	margin-bottom: 22px;
}

.cgl .cgl__hero-title {
	font-size: clamp( 34px, 5.4vw, 58px );
	font-weight: 600;
	color: #fff;
	margin-bottom: 20px;
}

.cgl .cgl__hero-title em {
	font-style: normal;
	color: var( --cg-accent );
}

.cgl__hero-text {
	font-size: clamp( 16.5px, 1.5vw, 19px );
	color: var( --cg-text-invert );
	max-width: 54ch;
	margin-bottom: 30px;
}

.cgl__hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
}

.cgl__hero .cgl__btn-note {
	width: 100%;
	color: rgba( 189, 199, 220, 0.85 );
}

/* Cartão de serviços no herói */

/* Barra de confiança */

.cgl__trust {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 14px 30px;
	margin-top: clamp( 36px, 5vw, 58px );
	padding-top: 26px;
	border-top: 1px solid rgba( 255, 255, 255, 0.12 );
}

.cgl__trust-item {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 13.5px;
	font-weight: 600;
	color: var( --cg-text-invert );
}

.cgl__trust-item svg {
	width: 17px;
	height: 17px;
	color: var( --cg-accent );
	flex: 0 0 auto;
}

/* ---------------------------------------------------------------------
 * O que recebe
 * ------------------------------------------------------------------ */

.cgl__card {
	padding: 26px 24px;
	background: #fff;
	border: 1px solid var( --cg-line );
	border-radius: var( --cgl-radius-sm );
	box-shadow: 0 10px 30px -20px rgba( 13, 19, 45, 0.4 );
}

.cgl__card-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-bottom: 16px;
	border-radius: 13px;
	background: rgba( 69, 145, 206, 0.12 );
	color: var( --cg-primary );
}

.cgl__card-icon svg {
	width: 22px;
	height: 22px;
}

.cgl__card h3 {
	font-size: 18px;
	font-weight: 800;
	margin-bottom: 8px;
}

.cgl__card p {
	font-size: 14.5px;
	color: var( --cg-text );
}

/* ---------------------------------------------------------------------
 * Como funciona
 * ------------------------------------------------------------------ */

.cgl__steps {
	display: grid;
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	gap: 22px;
	align-items: stretch;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: cgl-step;
}

.cgl__step {
	position: relative;
	counter-increment: cgl-step;
	padding: 28px 24px 24px;
	background: #fff;
	border-radius: var( --cgl-radius-sm );
	border: 1px solid var( --cg-line );
}

.cgl__step::before {
	content: counter( cgl-step, decimal-leading-zero );
	position: absolute;
	top: -18px;
	left: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var( --cg-navy );
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	box-shadow: 0 8px 18px -8px rgba( 13, 19, 45, 0.6 );
}

.cgl__step h3 {
	font-size: 17.5px;
	font-weight: 800;
	margin: 10px 0 8px;
}

.cgl__step p {
	font-size: 14.5px;
	color: var( --cg-text );
}

/* ---------------------------------------------------------------------
 * Ferramenta
 * ------------------------------------------------------------------ */

.cgl__tool {
	scroll-margin-top: 20px;
	background: linear-gradient( 180deg, var( --cg-surface ) 0%, #fff 62% );
}

.cgl__tool-embed {
	margin-top: 8px;
}

/* Cartão que substitui a ferramenta quando ela vive noutra página. */
.cgl__tool-cta {
	margin-top: 8px;
	padding: 44px 24px;
	text-align: center;
	background: #fff;
	border: 1px solid var( --cg-line );
	border-radius: var( --cgl-radius );
	box-shadow: var( --cgl-shadow );
}

.cgl__tool-cta .cgl__btn-note {
	color: var( --cg-text-soft );
}

.cgl__tool-embed .cg-diagnostic {
	box-shadow: var( --cgl-shadow );
}

/* ---------------------------------------------------------------------
 * Credibilidade
 * ------------------------------------------------------------------ */

.cgl__proof {
	display: grid;
	grid-template-columns: minmax( 0, 0.9fr ) minmax( 0, 1.1fr );
	gap: clamp( 28px, 4vw, 56px );
	align-items: center;
}

.cgl__stats {
	display: grid;
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	gap: 14px;
}

.cgl__stat {
	padding: 22px 20px;
	background: #fff;
	border-radius: var( --cgl-radius-sm );
	border: 1px solid var( --cg-line );
}

.cgl__stat strong {
	display: block;
	font-size: 32px;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var( --cg-primary );
	line-height: 1;
	margin-bottom: 6px;
}

.cgl__stat span {
	font-size: 13.5px;
	color: var( --cg-text-soft );
}

.cgl__services {
	display: grid;
	gap: 10px;
	margin-top: 22px;
}

.cgl__service {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	font-size: 15px;
	color: var( --cgl-ink );
}

.cgl__service svg {
	width: 19px;
	height: 19px;
	margin-top: 3px;
	color: var( --cg-success );
	flex: 0 0 auto;
}

/* ---------------------------------------------------------------------
 * Perguntas frequentes
 * ------------------------------------------------------------------ */

.cgl__faq {
	display: grid;
	gap: 12px;
}

.cgl__faq details {
	padding: 20px 22px;
	background: #fff;
	border: 1px solid var( --cg-line );
	border-radius: var( --cgl-radius-sm );
}

.cgl__faq details[open] {
	border-color: var( --cg-primary );
}

.cgl__faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	font-size: 16.5px;
	font-weight: 700;
	color: var( --cgl-ink );
	cursor: pointer;
	list-style: none;
}

.cgl__faq summary::-webkit-details-marker {
	display: none;
}

.cgl__faq summary::after {
	content: "+";
	flex: 0 0 auto;
	font-size: 22px;
	font-weight: 400;
	color: var( --cg-primary );
	line-height: 1;
	transition: transform 0.2s ease;
}

.cgl__faq details[open] summary::after {
	transform: rotate( 45deg );
}

.cgl__faq p {
	margin-top: 12px;
	font-size: 15px;
	color: var( --cg-text );
}

/* ---------------------------------------------------------------------
 * Chamada final
 * ------------------------------------------------------------------ */

.cgl__final {
	padding: clamp( 54px, 7vw, 86px ) 0;
	background: linear-gradient( var( --cgl-deep ) 60%, #000000 100% );
	color: #fff;
	text-align: center;
}

.cgl .cgl__final h2 {
	font-size: clamp( 27px, 3.6vw, 40px );
	font-weight: 600;
	color: #fff;
	margin-bottom: 14px;
}

.cgl__final p {
	font-size: 17px;
	color: var( --cg-text-invert );
	max-width: 54ch;
	margin: 0 auto 30px;
}

.cgl__final-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
}

/* ---------------------------------------------------------------------
 * Rodapé
 * ------------------------------------------------------------------ */

.cgl__footer {
	padding: 30px 0;
	background: #000000;
	border-top: 1px solid rgba( 255, 255, 255, 0.1 );
	color: rgba( 189, 199, 220, 0.75 );
	font-size: 13px;
}

.cgl__footer-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 26px;
	align-items: center;
	justify-content: space-between;
}

.cgl__footer a {
	color: var( --cg-text-invert );
	text-decoration: none;
}

.cgl__footer a:hover {
	color: #fff;
	text-decoration: underline;
}

.cgl__footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
}

/* ---------------------------------------------------------------------
 * Barra fixa em telemóvel
 * ------------------------------------------------------------------ */

.cgl__sticky {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 40;
	display: none;
	padding: 12px 16px calc( 12px + env( safe-area-inset-bottom ) );
	background: rgba( 1, 21, 51, 0.97 );
	backdrop-filter: blur( 8px );
	box-shadow: 0 -8px 28px -12px rgba( 13, 19, 45, 0.6 );
}

.cgl__sticky .cgl__btn {
	width: 100%;
	padding: 15px 20px;
	font-size: 16px;
}

/* ---------------------------------------------------------------------
 * Responsivo
 * ------------------------------------------------------------------ */

@media ( max-width: 900px ) {
	.cgl__hero-grid,
	.cgl__proof {
		grid-template-columns: minmax( 0, 1fr );
	}

}

@media ( max-width: 680px ) {
	.cgl__wrap {
		padding: 0 18px;
	}

	.cgl__logo img {
		width: 68px;
		height: 68px;
	}

	.cgl__brandbar-contact {
		display: none;
	}

	.cgl__hero-actions .cgl__btn {
		width: 100%;
	}

	.cgl__stats {
		grid-template-columns: 1fr 1fr;
	}

	.cgl__final-actions .cgl__btn {
		width: 100%;
	}

	.cgl__sticky {
		display: block;
	}

	.cgl--has-sticky {
		padding-bottom: 84px;
	}

	.cgl__footer-inner {
		justify-content: flex-start;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.cgl__btn:hover {
		transform: none;
	}

	.cgl__faq summary::after {
		transition: none;
	}
}

@media print {
	.cgl__sticky,
	.cgl__hero-actions,
	.cgl__final-actions {
		display: none !important;
	}
}

/* ---------------------------------------------------------------------
 * O que trava o crescimento
 * ------------------------------------------------------------------ */

.cgl__steps-action {
	margin-top: clamp( 28px, 4vw, 44px );
	text-align: center;
}

/* A promessa fecha a oferta: o que fica na mão de quem responde. */
.cgl__promise {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: clamp( 26px, 3vw, 38px ) 0 0;
	padding: 20px 24px;
	background: #fff;
	border: 1px solid var( --cg-line );
	border-left: 4px solid var( --cg-accent );
	border-radius: var( --cgl-radius-sm );
	font-weight: 600;
	color: var( --cg-navy );
}

.cgl__promise svg {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	color: var( --cg-success );
}

.cgl__problems {
	display: grid;
	grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
	gap: 18px;
	align-items: stretch;
}

.cgl__problem {
	padding: clamp( 22px, 1.9vw, 30px ) clamp( 18px, 1.7vw, 26px );
	background: #fff;
	border: 1px solid var( --cg-line );
	border-radius: var( --cgl-radius-sm );
	border-top: 3px solid var( --cg-accent );
}

.cgl__problem-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin-bottom: 15px;
	border-radius: 12px;
	background: rgba( 228, 172, 30, 0.16 );
	color: #9a710a;
}

.cgl__problem-icon svg {
	width: 21px;
	height: 21px;
}

.cgl__problem h3 {
	font-size: clamp( 16.5px, 1.3vw, 19px );
	font-weight: 800;
	margin-bottom: 8px;
}

.cgl__problem p {
	font-size: clamp( 14px, 1.05vw, 15.5px );
	color: var( --cg-text );
}

/* ---------------------------------------------------------------------
 * Serviços
 * ------------------------------------------------------------------ */

.cgl__services-grid {
	display: grid;
	grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
	gap: 16px;
	align-items: stretch;
}

.cgl__service-card {
	display: flex;
	flex-direction: column;
	padding: clamp( 22px, 1.9vw, 30px ) clamp( 18px, 1.7vw, 26px );
	background: #fff;
	border: 1px solid var( --cg-line );
	border-radius: var( --cgl-radius );
	box-shadow: 0 14px 40px -26px rgba( 13, 19, 45, 0.45 );
}

.cgl__service-card h3 {
	font-size: clamp( 17px, 1.35vw, 20px );
	font-weight: 600;
	line-height: 1.25;
	margin-bottom: 9px;
}

.cgl__service-card > p {
	font-size: clamp( 13.5px, 1.03vw, 15px );
	line-height: 1.55;
	color: var( --cg-text );
	margin-bottom: 16px;
}

.cgl__service-list {
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 9px;
}

.cgl__service-list li {
	position: relative;
	padding-left: 19px;
	font-size: clamp( 12.8px, 0.98vw, 14px );
	line-height: 1.45;
	font-weight: 600;
	color: var( --cgl-ink );
}

.cgl__service-list li::before {
	content: "";
	position: absolute;
	left: 3px;
	top: 8px;
	width: 7px;
	height: 7px;
	border-radius: 2px;
	background: var( --cg-primary );
}

.cgl__service-link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: auto;
	font-size: 13.5px;
	font-weight: 800;
	color: var( --cg-primary );
	text-decoration: none;
}

.cgl__service-link svg {
	width: 17px;
	height: 17px;
	transition: transform 0.18s ease;
}

.cgl__service-link:hover {
	color: var( --cg-accent );
}

.cgl__service-link:hover svg {
	transform: translateX( 3px );
}

/* ---------------------------------------------------------------------
 * Oferta do diagnóstico
 * ------------------------------------------------------------------ */

.cgl__offer {
	display: grid;
	grid-template-columns: minmax( 0, 1.05fr ) minmax( 0, 0.95fr );
	gap: clamp( 28px, 4vw, 54px );
	align-items: center;
	padding: clamp( 30px, 4vw, 44px );
	margin-bottom: clamp( 34px, 4vw, 52px );
	background: #fff;
	border: 1px solid var( --cg-line );
	border-radius: var( --cgl-radius );
	box-shadow: var( --cgl-shadow );
}

.cgl__eyebrow--offer {
	color: var( --cg-navy );
	background: var( --cg-accent );
	margin-bottom: 16px;
}

.cgl__offer-points {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 16px;
}

.cgl__offer-points li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.cgl__offer-points svg {
	width: 21px;
	height: 21px;
	margin-top: 2px;
	color: var( --cg-success );
	flex: 0 0 auto;
}

.cgl__offer-points strong {
	display: block;
	font-size: 15.5px;
	font-weight: 800;
	color: var( --cgl-ink );
	margin-bottom: 3px;
}

.cgl__offer-points span {
	font-size: 14.5px;
	color: var( --cg-text );
}

.cgl__head--tool {
	margin-top: clamp( 34px, 4vw, 54px );
	margin-bottom: 26px;
}

.cgl__tool-title {
	font-size: clamp( 22px, 2.6vw, 28px );
	font-weight: 800;
	margin-bottom: 10px;
}

@media ( max-width: 900px ) {
	.cgl__offer {
		grid-template-columns: minmax( 0, 1fr );
	}
}


/* ---------------------------------------------------------------------
 * Etiquetas da oferta no herói
 * ------------------------------------------------------------------ */

.cgl__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
	margin: 0 0 26px;
	padding: 0;
	list-style: none;
}

.cgl__chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
}

.cgl__chip svg {
	width: 18px;
	height: 18px;
	color: var( --cg-accent );
	flex: 0 0 auto;
}

/* ---------------------------------------------------------------------
 * Pré-visualização do relatório no herói
 * ------------------------------------------------------------------ */

/* ---------------------------------------------------------------------
 * Pré-visualização do relatório, no herói
 *
 * Percorre quatro secções reais do relatório com os mesmos gráficos que a
 * página apresenta mais abaixo. Tudo em CSS: a versão estática da landing não
 * leva JavaScript nenhum, e assim a animação também funciona lá.
 *
 * O ciclo dura 18 segundos, quatro ecrãs de 4,5. Cada elemento que se anima
 * dentro de um ecrã usa a mesma duração e o mesmo atraso do ecrã a que
 * pertence — é o que mantém o desenho sincronizado com a entrada.
 * ------------------------------------------------------------------ */

.cgl__preview {
	margin: 0;
	position: relative;
}

.cgl__deck {
	position: relative;
	overflow: hidden;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 40px 80px -30px rgba( 0, 0, 0, 0.6 ), 0 0 0 1px rgba( 255, 255, 255, 0.08 );
}

/* --- Cabeçalho --- */

.cgl__deck-top {
	padding: clamp( 16px, 1.5vw, 24px ) clamp( 18px, 1.6vw, 26px ) clamp( 14px, 1.3vw, 20px );
	background: linear-gradient( 150deg, var( --cg-navy ) 0%, var( --cgl-hero-from ) 190% );
	color: #fff;
}

.cgl__deck-live {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 10px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var( --cg-accent );
}

.cgl__deck-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var( --cg-success );
	box-shadow: 0 0 0 0 rgba( 46, 158, 107, 0.65 );
	animation: cgl-pulse 2.4s ease-out infinite;
}

@keyframes cgl-pulse {
	0%   { box-shadow: 0 0 0 0 rgba( 46, 158, 107, 0.65 ); }
	70%  { box-shadow: 0 0 0 9px rgba( 46, 158, 107, 0 ); }
	100% { box-shadow: 0 0 0 0 rgba( 46, 158, 107, 0 ); }
}

.cgl__deck-company {
	display: block;
	font-family: var( --cgl-heading );
	font-size: clamp( 16px, 1.25vw, 20px );
	font-weight: 700;
	line-height: 1.2;
}

.cgl__deck-meta {
	display: block;
	margin-top: 4px;
	font-size: 11.5px;
	color: rgba( 189, 199, 220, 0.85 );
}

/* --- Os três números que ficam sempre à vista --- */

.cgl__deck-kpis {
	display: grid;
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	border-bottom: 1px solid var( --cg-line );
}

.cgl__deck-kpi {
	padding: clamp( 12px, 1.1vw, 18px ) clamp( 8px, 0.8vw, 14px ) clamp( 11px, 1vw, 16px ) clamp( 12px, 1.2vw, 18px );
	border-left: 1px solid var( --cg-line );
}

.cgl__deck-kpi:first-child {
	border-left: 0;
}

.cgl__deck-kpi span {
	display: block;
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var( --cg-text-soft );
}

.cgl__deck-kpi strong {
	display: block;
	margin-top: 4px;
	font-family: var( --cgl-heading );
	font-size: clamp( 17px, 1.45vw, 23px );
	font-weight: 700;
	line-height: 1.05;
	color: var( --cg-navy );
}

.cgl__deck-kpi:nth-child(2) strong {
	color: var( --cg-success );
}

.cgl__deck-kpi small {
	display: block;
	margin-top: 2px;
	font-size: 10px;
	color: var( --cg-text-soft );
}

/* --- O palco onde as secções passam --- */

/* Os quatro ecrãs ocupam a mesma célula: o palco fica com a altura do mais
   alto, em qualquer largura, sem número nenhum escrito à mão. */
.cgl__deck-stage {
	display: grid;
	grid-template-columns: minmax( 0, 1fr );
}

.cgl__slide {
	grid-area: 1 / 1;
	min-width: 0;
	padding: clamp( 14px, 1.2vw, 20px ) clamp( 16px, 1.4vw, 24px ) clamp( 10px, 0.9vw, 16px );
	opacity: 0;
	animation: cgl-slide 18s cubic-bezier( 0.4, 0, 0.2, 1 ) infinite;
}

.cgl__slide--1 { animation-delay: 0s; }
.cgl__slide--2 { animation-delay: 4.5s; }
.cgl__slide--3 { animation-delay: 9s; }
.cgl__slide--4 { animation-delay: 13.5s; }

@keyframes cgl-slide {
	0%          { opacity: 0; transform: translateY( 9px ) scale( 0.99 ); }
	3%, 22%     { opacity: 1; transform: none; }
	25%, 100%   { opacity: 0; transform: translateY( -7px ) scale( 0.994 ); }
}

.cgl__slide-head {
	margin-bottom: 10px;
}

.cgl__slide-tag {
	display: block;
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var( --cg-primary );
}

.cgl__slide-title {
	display: block;
	margin-top: 3px;
	font-family: var( --cgl-heading );
	font-size: clamp( 14.5px, 1.15vw, 18px );
	font-weight: 700;
	color: var( --cg-navy );
}

.cgl__slide-body svg {
	display: block;
	width: 100%;
	height: auto;
}

/* --- O que se desenha dentro de cada secção --- */

.cgl-gauge {
	animation: cgl-gauge 18s cubic-bezier( 0.4, 0, 0.2, 1 ) infinite;
}

@keyframes cgl-gauge {
	0%, 2%    { stroke-dashoffset: 214; }
	16%, 100% { stroke-dashoffset: 55.6; }
}

.cgl-fill {
	transform-box: fill-box;
	transform-origin: left center;
	animation: cgl-fill 18s cubic-bezier( 0.4, 0, 0.2, 1 ) infinite;
}

@keyframes cgl-fill {
	0%, 3%    { transform: scaleX( 0 ); }
	17%, 100% { transform: scaleX( 1 ); }
}

.cgl__slide--2 .cgl-bloom {
	transform-box: fill-box;
	transform-origin: center;
	animation: cgl-bloom 18s cubic-bezier( 0.34, 1.3, 0.64, 1 ) infinite;
	animation-delay: 4.5s;
}

@keyframes cgl-bloom {
	0%, 2%    { opacity: 0; transform: scale( 0.4 ); }
	14%, 100% { opacity: 1; transform: scale( 1 ); }
}

.cgl__slide--3 .cgl-pop {
	transform-box: fill-box;
	transform-origin: center;
	animation: cgl-pop 18s cubic-bezier( 0.34, 1.5, 0.64, 1 ) infinite;
}

.cgl__slide--3 .cgl-pop--1 { animation-delay: 9.15s; }
.cgl__slide--3 .cgl-pop--2 { animation-delay: 9.35s; }
.cgl__slide--3 .cgl-pop--3 { animation-delay: 9.55s; }
.cgl__slide--3 .cgl-pop--4 { animation-delay: 9.75s; }

@keyframes cgl-pop {
	0%       { opacity: 0; transform: scale( 0.2 ); }
	7%, 100% { opacity: 1; transform: scale( 1 ); }
}

.cgl__slide--4 .cgl-grow {
	transform-box: fill-box;
	transform-origin: bottom;
	animation: cgl-grow 18s cubic-bezier( 0.4, 0, 0.2, 1 ) infinite;
	animation-delay: 13.5s;
}

@keyframes cgl-grow {
	0%, 2%    { transform: scaleY( 0 ); }
	16%, 100% { transform: scaleY( 1 ); }
}

.cgl__slide--4 .cgl-draw {
	stroke-dasharray: 460;
	animation: cgl-draw 18s cubic-bezier( 0.4, 0, 0.2, 1 ) infinite;
	animation-delay: 13.5s;
}

@keyframes cgl-draw {
	0%, 3%    { stroke-dashoffset: 460; }
	19%, 100% { stroke-dashoffset: 0; }
}

/* A linha acaba de se desenhar aos 16,9s; o ponto só aparece depois. */
.cgl__slide--4 .cgl-pop {
	transform-box: fill-box;
	transform-origin: center;
	animation: cgl-pop 18s cubic-bezier( 0.34, 1.5, 0.64, 1 ) infinite;
	animation-delay: 16.9s;
}

/* --- Indicador de secção --- */

.cgl__deck-steps {
	display: flex;
	gap: 6px;
	padding: 0 clamp( 16px, 1.4vw, 24px ) clamp( 14px, 1.3vw, 20px );
}

.cgl__deck-step {
	height: 3px;
	flex: 1 1 0;
	border-radius: 2px;
	background: var( --cg-line );
	overflow: hidden;
	position: relative;
}

.cgl__deck-step::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 2px;
	background: var( --cg-primary );
	transform-origin: left center;
	transform: scaleX( 0 );
	animation: cgl-step 18s linear infinite;
}

.cgl__deck-step--1::after { animation-delay: 0s; }
.cgl__deck-step--2::after { animation-delay: 4.5s; }
.cgl__deck-step--3::after { animation-delay: 9s; }
.cgl__deck-step--4::after { animation-delay: 13.5s; }

@keyframes cgl-step {
	0%        { transform: scaleX( 0 ); }
	25%       { transform: scaleX( 1 ); }
	25.01%    { transform: scaleX( 0 ); }
	100%      { transform: scaleX( 0 ); }
}

/* Quem pede menos movimento fica com o primeiro ecrã, parado e completo. */
@media ( prefers-reduced-motion: reduce ) {
	.cgl__slide {
		animation: none;
		opacity: 0;
	}

	.cgl__slide--1 {
		opacity: 1;
		position: relative;
	}

	.cgl__deck-dot,
	.cgl-gauge,
	.cgl-fill,
	.cgl-bloom,
	.cgl-pop,
	.cgl-grow,
	.cgl-draw,
	.cgl__deck-step::after {
		animation: none;
	}

	.cgl__deck-step--1::after {
		transform: scaleX( 1 );
	}
}

/* ---------------------------------------------------------------------
 * Secções do relatório, em linhas alternadas
 * ------------------------------------------------------------------ */

.cgl__report {
	display: grid;
	gap: clamp( 40px, 5vw, 72px );
}

.cgl__row {
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) minmax( 0, 1.05fr );
	gap: clamp( 28px, 4vw, 60px );
	align-items: center;
}

.cgl__row--flip .cgl__row-text {
	order: 2;
}

.cgl__row-tag {
	display: inline-block;
	margin-bottom: 12px;
	padding: 5px 12px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var( --cg-primary );
	background: rgba( 69, 145, 206, 0.12 );
	border-radius: 999px;
}

.cgl__row-text h3 {
	font-size: clamp( 21px, 2.4vw, 27px );
	font-weight: 600;
	margin-bottom: 12px;
}

.cgl__row-text > p {
	font-size: 16px;
	color: var( --cg-text );
	margin-bottom: 18px;
}

.cgl__row-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 10px;
}

.cgl__row-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14.5px;
	font-weight: 600;
	color: var( --cgl-ink );
}

.cgl__row-list svg {
	width: 19px;
	height: 19px;
	margin-top: 2px;
	color: var( --cg-success );
	flex: 0 0 auto;
}

.cgl__row-visual {
	padding: 22px;
	background: #fff;
	border: 1px solid var( --cg-line );
	border-radius: var( --cgl-radius );
	box-shadow: 0 20px 50px -30px rgba( 13, 19, 45, 0.5 );
}

.cgl__row-visual svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

/* ---------------------------------------------------------------------
 * Quebras das grelhas de cartões
 *
 * Declaradas num sítio só, para as três secções quebrarem ao mesmo tempo e
 * nenhuma ficar com um cartão órfão na linha de baixo.
 * ------------------------------------------------------------------ */

@media ( max-width: 999px ) {
	.cgl__problems,
	.cgl__services-grid {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}
}

@media ( max-width: 820px ) {
	.cgl__steps {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}
}

@media ( max-width: 640px ) {
	.cgl__problems,
	.cgl__services-grid,
	.cgl__steps {
		grid-template-columns: minmax( 0, 1fr );
	}
}

@media ( max-width: 860px ) {
	.cgl__row {
		grid-template-columns: minmax( 0, 1fr );
		gap: 22px;
	}

	.cgl__row--flip .cgl__row-text {
		order: 0;
	}
}

@media ( max-width: 680px ) {
	.cgl__chips {
		gap: 8px 16px;
	}

	.cgl__chip {
		font-size: 13px;
	}

	.cgl__row-visual {
		padding: 14px;
	}
}

/* ---------------------------------------------------------------------
 * Uniformidade com a identidade Consenso Plus
 *
 * O diagnóstico embebido traz a sua própria paleta. Dentro da landing,
 * alinhamo-la com a da página para que os dois blocos leiam como um só.
 * ------------------------------------------------------------------ */

.cgl .cg-diagnostic {
	border-color: #d4e6f7;
}

.cgl .cg-title,
.cgl .cg-question__title,
.cgl .cg-report__title,
.cgl .cg-report__company {
	font-family: var( --cgl-heading );
	font-weight: 600;
}

/* O herói já tem o seu próprio radial: o halo extra tornava-o turvo. */

.cgl__hero::after {
	display: none;
}