/* HOME · Finanças · Kit E · Controle */

/* Seção genérica ------------------------------------------------------- */
.nx-e-sec {
	padding: 48px 0;
}

.nx-e-sec--soft {
	background: var(--nx-soft);
}

/* Duas seções brancas seguidas: sem o espaço repetido entre elas. */
.nx-e-sec:not(.nx-e-sec--soft) + .nx-e-sec:not(.nx-e-sec--soft) {
	padding-top: 0;
}

/* Topo: fundo quadriculado, texto à esquerda e dois cartões à direita ---- */
.nx-hero {
	padding: 48px 0 56px;
	background-color: var(--nx-white);
	background-image: var(--fx-grade);
	background-size: 64px 64px;
}

.nx-hero__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: center;
	gap: 40px;
}

.nx-hero__text {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.nx-hero__title {
	font-family: var(--fx-display);
	font-size: 58px;
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -.04em;
	text-wrap: balance;
}

/* No topo, o itálico fica na cor do texto (só "credit cards" vai na cor do site). */
.nx-hero__title em {
	color: inherit;
}

.nx-hero__lead {
	max-width: 560px;
	font-size: 18px;
	line-height: 1.65;
	color: var(--nx-muted);
}

.nx-hero__btn {
	align-self: flex-start;
	font-weight: 600;
	box-shadow: 0 10px 24px color-mix(in srgb, var(--nx-accent) 28%, transparent);
}

/* Desenho: círculo verde-claro e dois cartões inclinados. */
.nx-hero__art {
	position: relative;
	justify-self: center;
	width: 520px;
	max-width: 100%;
	aspect-ratio: 520 / 440;
}

.nx-hero__art > * {
	position: absolute;
}

.nx-hero__circle {
	left: 16.3%;
	top: 10.2%;
	width: 67.3%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--fx-chip);
}

.nx-hero__card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 57.7%;
	aspect-ratio: 300 / 186;
	padding: 24px 26px;
	border-radius: 18px;
	box-shadow: var(--fx-shadow);
}

.nx-hero__card--escuro {
	left: 7.7%;
	top: 15.9%;
	z-index: 1;
	background: linear-gradient(135deg, color-mix(in oklab, var(--fx-navy) 88%, #fff) 0%, var(--fx-navy) 100%);
	transform: rotate(-12deg);
}

.nx-hero__card--cor {
	left: 36.5%;
	top: 47.7%;
	z-index: 2;
	background: linear-gradient(135deg, var(--nx-accent) 0%, var(--fx-mark) 100%);
	transform: rotate(-5deg);
}

.nx-hero__card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.nx-hero__chip {
	width: 40px;
	height: 30px;
	border-radius: 7px;
	background: rgba(255, 255, 255, .55);
}

.nx-hero__rings {
	display: flex;
}

.nx-hero__rings i {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .7);
}

.nx-hero__rings i + i {
	margin-left: -10px;
	background: rgba(255, 255, 255, .4);
}

.nx-hero__digits {
	display: flex;
	gap: 14px;
}

.nx-hero__digits i {
	width: 26px;
	height: 6px;
	border-radius: 3px;
	background: rgba(255, 255, 255, .55);
}

.nx-hero__digits i:last-child {
	width: 34px;
	background: rgba(255, 255, 255, .9);
}

.nx-hero__name {
	width: 110px;
	height: 8px;
	border-radius: 4px;
	background: rgba(255, 255, 255, .5);
}

/* 4 destaques ---------------------------------------------------------- */
.nx-e-destaques {
	padding: 40px 0;
	background: var(--nx-soft);
}

.nx-e-destaques__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.nx-e-destaque {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 26px 28px;
	border: 0;
	box-shadow: var(--float);
	border-radius: var(--fx-radius);
	background: var(--nx-white);
}

.nx-e-destaque__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
}

.nx-e-destaque h3 {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -.02em;
}

.nx-e-destaque p {
	font-size: 15px;
	line-height: 1.65;
	color: var(--nx-muted);
}

/* Temas que abrem e fecham --------------------------------------------- */
.nx-e-temas {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.nx-e-tema {
	padding: 22px 28px;
	border: 0;
	box-shadow: var(--float);
	border-radius: 16px;
	background: var(--nx-white);
}

.nx-e-tema summary {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 32px;
	align-items: center;
	gap: 16px;
	cursor: pointer;
	list-style: none;
}

.nx-e-tema summary::-webkit-details-marker {
	display: none;
}

.nx-e-tema__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.nx-e-tema__text strong {
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -.01em;
}

.nx-e-tema__text span {
	font-size: 14px;
	line-height: 1.55;
	color: var(--nx-muted);
}

.nx-e-tema__mais {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 0;
	box-shadow: var(--float-sm);
	border-radius: 50%;
	background: var(--fx-chip);
	color: var(--fx-ink);
	font-size: 18px;
	font-weight: 600;
	transition: transform .15s;
}

.nx-e-tema[open] .nx-e-tema__mais {
	transform: rotate(45deg);
}

.nx-e-tema .nx-e-mais {
	margin: 14px 0 0 60px;
}

/* Ferramentas ---------------------------------------------------------- */
.nx-e-tools {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.nx-e-tool {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px;
	border: 0;
	box-shadow: var(--float);
	border-radius: var(--fx-radius);
	background: var(--nx-white);
	color: var(--nx-ink) !important;
	text-decoration: none;
	transition: border-color .15s, box-shadow .2s, transform .2s;
}

.nx-e-tool:hover {
	box-shadow: var(--float-hover);
	transform: translateY(-3px);
}

.nx-e-tool__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.nx-e-tool strong {
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -.01em;
}

.nx-e-tool__text {
	font-size: 14px;
	line-height: 1.55;
	color: var(--nx-muted);
}

.nx-e-tool__go {
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--nx-line);
	color: var(--fx-ink);
	font-size: 14px;
	font-weight: 600;
}

/* Alcance: texto + mapa de pontinhos na cor do site -------------------- */
.nx-e-alcance {
	display: grid;
	grid-template-columns: 5fr 7fr;
	align-items: center;
	gap: 40px;
}

.nx-e-alcance .nx-e-head {
	margin-bottom: 0;
}

.nx-e-mapa {
	justify-self: end;
	width: 100%;
	max-width: 660px;
	aspect-ratio: 660 / 364;
	background: color-mix(in oklab, var(--nx-accent) 28%, #fff);
	-webkit-mask: url("../img/mapa-eua.svg") center / contain no-repeat;
	mask: url("../img/mapa-eua.svg") center / contain no-repeat;
}

/* Responsivo ----------------------------------------------------------- */
@media (max-width: 1200px) {
	.nx-hero__title {
		font-size: 50px;
	}

	.nx-e-tools {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 1024px) {
	.nx-hero__grid,
	.nx-e-alcance {
		grid-template-columns: 1fr;
	}

	.nx-hero__art {
		width: 420px;
	}

	.nx-e-mapa {
		justify-self: center;
	}
}

@media (max-width: 640px) {
	.nx-e-sec {
		padding: 36px 0;
	}

	.nx-hero {
		padding: 32px 0 40px;
	}

	.nx-hero__title {
		font-size: 36px;
	}

	.nx-hero__lead {
		font-size: 16px;
	}

	.nx-hero__btn {
		align-self: stretch;
	}

	.nx-hero__art {
		display: none;
	}

	.nx-e-destaques {
		padding: 28px 0;
	}

	.nx-e-destaques__grid,
	.nx-e-tools {
		grid-template-columns: 1fr;
	}

	.nx-e-tema {
		padding: 18px 20px;
	}

	.nx-e-tema summary {
		grid-template-columns: 28px minmax(0, 1fr) 32px;
		gap: 12px;
	}

	.nx-e-tema .nx-e-mais {
		margin-left: 40px;
	}
}
