/* HOME · Finanças · Kit D · Fintech */

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

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

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

.nx-d-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
	margin-bottom: 24px;
}

.nx-d-head__text {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.nx-d-head__text p {
	max-width: 640px;
	font-size: 17px;
	line-height: 1.65;
	color: var(--nx-muted);
}

.nx-d-head .nx-link {
	align-self: flex-start;
	flex-shrink: 0;
}

.nx-d-meta {
	font-size: 13px;
	line-height: 1.5;
	color: var(--nx-muted);
}

/* Topo ----------------------------------------------------------------- */
.nx-hero {
	padding: 40px 0 48px;
	background: radial-gradient(800px 420px at 85% 30%, color-mix(in oklab, var(--nx-accent) 40%, var(--fx-navy)) 0%, var(--fx-navy) 70%);
}

.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: 60px;
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -.035em;
	text-wrap: balance;
}

.nx-hero__mark {
	color: var(--fx-gold);
}

.nx-hero__lead {
	max-width: 540px;
	font-size: 19px;
	line-height: 1.6;
	color: var(--fx-dark-ink);
}

.nx-hero__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Números embaixo dos botões. */
.nx-hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
	padding: 8px 0 0;
	list-style: none;
}

.nx-hero__stats li {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 14px 18px;
	border: 0;
	background: rgba(255, 255, 255, .06);
	border-radius: 14px;
}

.nx-hero__stats strong {
	font-family: var(--fx-display);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
}

.nx-hero__stats span {
	font-size: 13px;
	color: var(--fx-dark-muted);
}

/* Ilustração do topo: gráfico, cartão, moedas e selos (em tons do fundo escuro). */
.nx-hero__art {
	position: relative;
	justify-self: end;
	width: 560px;
	max-width: 100%;
	aspect-ratio: 560 / 440;
}

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

.nx-hero__glow {
	inset: 7% 2% 7% 12.5%;
	border-radius: 48px;
	background: radial-gradient(closest-side, rgba(255, 255, 255, .1), transparent);
}

.nx-hero__chart,
.nx-hero__card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 22px 24px;
	border-radius: 20px;
}

.nx-hero__chart {
	left: 12.5%;
	top: 8.2%;
	width: 59%;
	height: 52%;
	border: 0;
	box-shadow: var(--float);
	background: rgba(255, 255, 255, .08);
}

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

.nx-hero__row--start {
	justify-content: flex-start;
}

.nx-hero__row i {
	display: block;
	width: var(--w);
	height: 9px;
	border-radius: 5px;
	background: rgba(255, 255, 255, .22);
}

.nx-hero__row i.is-accent {
	background: var(--nx-accent);
}

.nx-hero__bars {
	display: flex;
	align-items: flex-end;
	gap: 12px;
	height: 110px;
}

.nx-hero__bars i {
	width: 26px;
	height: var(--h);
	border-radius: 6px;
	background: color-mix(in oklab, var(--nx-accent) var(--p), var(--fx-navy));
}

/* Medidas de cada barrinha do desenho (largura das linhas, altura e tom das barras). */
.nx-hero__chart > .nx-hero__row:first-child i:nth-child(1) { --w: 110px; }
.nx-hero__chart > .nx-hero__row:first-child i:nth-child(2) { --w: 46px; }
.nx-hero__row--start i:nth-child(1) { --w: 70px; }
.nx-hero__row--start i:nth-child(2) { --w: 40px; }
.nx-hero__card > .nx-hero__row:last-child i:nth-child(1) { --w: 120px; }
.nx-hero__card > .nx-hero__row:last-child i:nth-child(2) { --w: 44px; }

.nx-hero__bars i:nth-child(1) { --h: 38px; --p: 28%; }
.nx-hero__bars i:nth-child(2) { --h: 56px; --p: 40%; }
.nx-hero__bars i:nth-child(3) { --h: 46px; --p: 52%; }
.nx-hero__bars i:nth-child(4) { --h: 74px; --p: 64%; }
.nx-hero__bars i:nth-child(5) { --h: 64px; --p: 76%; }
.nx-hero__bars i:nth-child(6) { --h: 96px; --p: 100%; }

.nx-hero__card {
	right: 0;
	top: 44.5%;
	width: 53.5%;
	height: 42.3%;
	background: linear-gradient(135deg, var(--nx-accent) 0%, var(--fx-panel) 100%);
	color: #fff;
	box-shadow: var(--fx-shadow);
}

.nx-hero__card .nx-hero__row i {
	background: rgba(255, 255, 255, .45);
}

.nx-hero__chip {
	width: 42px;
	height: 32px;
	border-radius: 7px;
	background: var(--fx-gold);
}

.nx-hero__card b {
	font-size: 13px;
	letter-spacing: .12em;
	opacity: .85;
}

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

.nx-hero__digits i {
	width: 40px;
	height: 8px;
	border-radius: 4px;
	background: rgba(255, 255, 255, .55);
}

.nx-hero__coins {
	left: 1%;
	bottom: 6%;
	width: 74px;
	height: 64px;
}

.nx-hero__coins i {
	position: absolute;
	left: 0;
	width: 74px;
	height: 22px;
	border-radius: 50%;
	background: var(--fx-gold);
	box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .12);
}

.nx-hero__coins i:nth-child(1) { bottom: 0; }
.nx-hero__coins i:nth-child(2) { bottom: 13px; }
.nx-hero__coins i:nth-child(3) { bottom: 26px; }
.nx-hero__coins i:nth-child(4) { bottom: 39px; }

.nx-hero__badge {
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--fx-shadow);
}

.nx-hero__badge--trend {
	left: 8%;
	top: 3%;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: var(--nx-accent);
	color: #fff;
}

.nx-hero__badge--pct {
	right: 4.6%;
	top: 9%;
	width: 50px;
	height: 50px;
	border-radius: 14px;
	background: var(--fx-gold);
	color: var(--fx-navy);
	font-size: 18px;
	font-weight: 800;
}

.nx-hero__badge--shield {
	left: 42%;
	bottom: 1.4%;
	width: 46px;
	height: 46px;
	border: 0;
	box-shadow: var(--float-sm);
	border-radius: 50%;
	background: #fff;
	color: color-mix(in oklab, var(--nx-accent) 80%, #000);
}

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

.nx-d-trilha {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 26px;
	border: 0;
	box-shadow: var(--float);
	border-radius: 20px;
	background: var(--nx-white);
	color: var(--nx-ink) !important;
	text-decoration: none;
	transition: border-color .15s, box-shadow .15s;
}

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

.nx-d-trilha__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-size: 13px;
	color: var(--nx-muted);
}

.nx-d-trilha__top b {
	font-family: var(--fx-display);
	font-size: 15px;
	color: var(--fx-ink);
}

.nx-d-trilha strong {
	font-family: var(--fx-display);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.03em;
}

.nx-d-trilha__text {
	font-size: 15px;
	line-height: 1.55;
	color: var(--nx-muted);
}

.nx-d-trilha__foot {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: auto;
}

.nx-d-trilha__bar {
	display: block;
	height: 6px;
	border-radius: 3px;
	background: var(--nx-soft);
}

.nx-d-trilha__bar i {
	display: block;
	width: 6%;
	height: 100%;
	border-radius: 3px;
	background: var(--nx-accent);
}

.nx-d-trilha__go {
	font-size: 13px;
	font-weight: 700;
	color: var(--fx-ink);
}

/* Últimos artigos ------------------------------------------------------ */
.nx-d-artigos {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: start;
	gap: 32px;
}

.nx-d-artigos.is-single {
	grid-template-columns: minmax(0, 760px);
}

.nx-d-destaque {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 14px 14px 26px;
	border-radius: 22px;
	background: var(--nx-soft);
	color: var(--nx-ink) !important;
	text-decoration: none;
}

.nx-d-destaque__media {
	height: 340px;
	overflow: hidden;
	border-radius: 16px;
}

.nx-d-destaque__media img,
.nx-d-item__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nx-d-destaque__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 0 12px;
}

.nx-d-destaque__title {
	font-family: var(--fx-display);
	font-size: 32px;
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -.035em;
	text-wrap: balance;
}

.nx-d-destaque:hover .nx-d-destaque__title {
	color: var(--fx-ink);
}

.nx-d-destaque__body p {
	font-size: 16px;
	line-height: 1.65;
	color: var(--nx-muted);
}

.nx-d-lista {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.nx-d-item {
	display: grid;
	grid-template-columns: 168px minmax(0, 1fr);
	align-items: center;
	gap: 18px;
}

.nx-d-item__media {
	height: 112px;
	overflow: hidden;
	border-radius: 12px;
}

.nx-d-item__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.nx-d-item h3 {
	font-family: var(--fx-display);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -.035em;
	text-wrap: balance;
}

.nx-d-item h3 a {
	color: var(--nx-ink);
	text-decoration: none;
}

.nx-d-item h3 a:hover {
	color: var(--fx-ink);
}

/* Calculadoras (fundo escuro) ------------------------------------------ */
.nx-d-calcs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.nx-d-calc {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px;
	border: 0;
	box-shadow: var(--float);
	border-radius: 20px;
	background: var(--fx-panel);
	color: #fff !important;
	text-decoration: none;
	transition: border-color .15s, box-shadow .2s, transform .2s;
}

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

.nx-d-calc__ico {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: rgba(255, 255, 255, .12);
}

.nx-d-calc__tag {
	align-self: flex-start;
	padding: 4px 9px;
	border-radius: 6px;
	background: var(--fx-gold);
	color: #0B1F24;
	font-size: 12px;
	font-weight: 700;
}

.nx-d-calc strong {
	font-family: var(--fx-display);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -.03em;
}

.nx-d-calc__text {
	font-size: 15px;
	line-height: 1.55;
	color: var(--fx-dark-ink);
}

.nx-d-calc__go {
	margin-top: auto;
	font-size: 15px;
	font-weight: 700;
}

/* Segurança ------------------------------------------------------------ */
.nx-d-seguro {
	display: grid;
	grid-template-columns: 5fr 6fr;
	align-items: center;
	gap: 32px 72px;
}

.nx-d-seguro.is-single {
	grid-template-columns: minmax(0, 760px);
}

.nx-d-seguro__text {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.nx-d-seguro__text p {
	font-size: 17px;
	line-height: 1.65;
	color: var(--nx-muted);
}

.nx-d-seguro__itens {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.nx-d-pilar {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 22px 26px;
	border: 0;
	box-shadow: var(--float);
	border-radius: 20px;
	background: var(--nx-soft);
}

.nx-d-pilar strong {
	font-family: var(--fx-display);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -.03em;
}

.nx-d-pilar > span:last-child {
	font-size: 15px;
	line-height: 1.6;
	color: var(--nx-muted);
}

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

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

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

	.nx-hero__art {
		justify-self: center;
	}

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

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

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

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

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

	.nx-hero__buttons .nx-btn {
		width: 100%;
	}

	.nx-hero__stats li {
		flex: 1 1 0;
		min-width: 0;
		padding: 12px 14px;
	}

	.nx-hero__art {
		display: none;
	}

	.nx-d-head {
		flex-direction: column;
		align-items: flex-start;
	}

	.nx-d-trilhas,
	.nx-d-calcs {
		grid-template-columns: 1fr;
	}

	.nx-d-destaque__media {
		height: 220px;
	}

	.nx-d-destaque__title {
		font-size: 26px;
	}

	.nx-d-item {
		grid-template-columns: 112px minmax(0, 1fr);
		gap: 14px;
	}

	.nx-d-item__media {
		height: 84px;
	}
}
