/* 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__mark {
	color: var(--fx-gold);
}

@keyframes nx-hero-flutua {
	0%, 100% { transform: translateY(0) scale(1); }
	50% { transform: translateY(-8px) scale(1.02); }
}

@keyframes nx-hero-brilho {
	0%, 55% { left: -60%; }
	85%, 100% { left: 130%; }
}

/* 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-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-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-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;
	}
}

/* Comparação de cartões (UpCards) ------------------------------------------ */
.nx-cmp {
	padding: 48px 0 56px;
	background: radial-gradient(900px 520px at 30% 50%, var(--fx-panel) 0%, var(--fx-navy) 72%);
	color: #fff;
}

.nx-cmp__grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	align-items: center;
	gap: 44px;
}

.nx-cmp__arte {
	display: flex;
	justify-content: center;
}

/* Painel escuro com tudo dentro */
.nx-cmp__painel {
	width: 100%;
	max-width: 520px;
	padding: 24px 22px 20px;
	border: 1px solid rgba(255, 255, 255, .10);
	border-radius: 26px;
	background: var(--fx-panel);
	box-shadow: 0 30px 60px rgba(0, 0, 0, .30);
}

.nx-cmp__painel-topo {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 12px;
	padding-bottom: 16px;
}

.nx-cmp__painel-topo strong {
	font: 700 20px/1.2 var(--fx-display);
	color: #fff;
}

.nx-cmp__painel-topo span {
	padding: 6px 12px;
	border-radius: 999px;
	background: color-mix(in oklab, var(--nx-accent) 22%, transparent);
	color: color-mix(in oklab, var(--nx-accent) 45%, #fff);
	font-size: 12px;
	font-weight: 700;
}

/* Dois cartões lado a lado e o "VS" no meio */
.nx-cmp__cartoes {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
}

.nx-cmp__cartao {
	flex: 1;
	min-width: 0;
	max-width: 230px;
}

.nx-cmp__vs {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--nx-accent);
	color: var(--nx-on-accent);
	font-size: 15px;
	font-weight: 800;
}

/* Linhas */
.nx-cmp__linha {
	display: grid;
	grid-template-columns: 108px minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	padding: 7px 0;
	border-top: 1px solid rgba(255, 255, 255, .10);
}

.nx-cmp__linha--nomes {
	padding: 18px 0 8px;
	border-top: 0;
	font-size: 13px;
	color: #fff;
}

.nx-cmp__linha--nomes strong {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.nx-cmp__rotulo {
	font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .62);
}

.nx-cmp__v {
	justify-self: start;
	padding: 2px 0;
	font-size: 13px;
	font-weight: 500;
	color: #fff;
}

/* O melhor da linha ganha o selo na cor de destaque */
.nx-cmp__v.is-melhor {
	padding: 2px 9px;
	border-radius: 999px;
	background: color-mix(in oklab, var(--nx-accent) 24%, transparent);
	color: color-mix(in oklab, var(--nx-accent) 45%, #fff);
	font-weight: 700;
}

.nx-cmp__melhor {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding-top: 10px;
	border-top: 1px solid rgba(255, 255, 255, .10);
	font-size: 13px;
	color: rgba(255, 255, 255, .72);
}

.nx-cmp__melhor strong {
	color: color-mix(in oklab, var(--nx-accent) 45%, #fff);
}

.nx-cmp__marca {
	font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
	font-size: 11px;
	letter-spacing: .1em;
}

/* Texto */
.nx-cmp__texto {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.nx-cmp__eyebrow {
	font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: color-mix(in oklab, var(--nx-accent) 45%, #fff);
}

.nx-cmp__titulo {
	margin: 0;
	font: 700 38px/1.06 var(--fx-display);
	letter-spacing: -.04em;
	color: #fff;
}

.nx-cmp__titulo span {
	color: color-mix(in oklab, var(--nx-accent) 45%, #fff);
}

.nx-cmp__lead {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .76);
}

.nx-cmp__botoes {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
	padding-top: 6px;
}

.nx-cmp__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 46px;
	padding: 0 24px;
	border-radius: 999px;
	background: var(--nx-accent);
	color: var(--nx-on-accent) !important;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .18s ease, transform .18s ease;
}

.nx-cmp__btn:hover {
	background: var(--nx-accent-hover);
	color: var(--nx-on-accent-hover) !important;
	transform: translateY(-2px);
}

.nx-cmp__link {
	font-size: 15px;
	font-weight: 600;
	color: #fff !important;
}

.nx-cmp__nota {
	font-size: 13px;
	color: rgba(255, 255, 255, .76);
}

@media (max-width: 1024px) {
	.nx-cmp {
		padding: 56px 0 64px;
	}

	.nx-cmp__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 36px;
	}

	.nx-cmp__texto {
		order: -1;
	}

	.nx-cmp__titulo {
		font-size: 36px;
	}
}

@media (max-width: 640px) {
	.nx-cmp__painel {
		padding: 18px 14px 14px;
		border-radius: 20px;
	}

	.nx-cmp__cartoes {
		gap: 8px;
	}

	.nx-cmp__vs {
		width: 34px;
		height: 34px;
		font-size: 12px;
	}

	.nx-cmp__linha {
		grid-template-columns: 88px minmax(0, 1fr) minmax(0, 1fr);
		gap: 8px;
	}

	.nx-cmp__titulo {
		font-size: 30px;
	}

	.nx-cmp__lead {
		font-size: 16px;
	}
}

/* Desenho do cartão (rocket_financas_home_comparador_placa): degradê da API, chip, aproximação, nome e bandeira. */
.nx-hc-placa {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 244 / 154;
	overflow: hidden;
	border-radius: 16px;
	background:
		radial-gradient(120% 110% at 100% 0%, rgba(255, 255, 255, .30) 0%, rgba(255, 255, 255, 0) 50%),
		radial-gradient(90% 130% at 0% 100%, rgba(0, 0, 0, .42) 0%, rgba(0, 0, 0, 0) 62%),
		repeating-linear-gradient(118deg, rgba(255, 255, 255, .035) 0 1px, rgba(255, 255, 255, 0) 1px 6px),
		linear-gradient(145deg, var(--g1) 0%, var(--g2) 100%);
	box-shadow: 0 18px 40px rgba(12, 32, 51, .22), 0 3px 8px rgba(12, 32, 51, .12), inset 0 0 0 1px rgba(255, 255, 255, .14);
	color: #fff;
}

/* Foto do cartão (API do UpCards): cobre o desenho; o chip e a aproximação somem, nome e bandeira ficam por cima. */
.nx-hc-placa__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nx-hc-placa.tem-img .nx-hc-placa__chip,
.nx-hc-placa.tem-img .nx-hc-placa__nfc {
	display: none;
}

.nx-hc-placa__nome,
.nx-hc-placa__bandeira {
	z-index: 1;
}

.nx-hc-placa__chip {
	position: absolute;
	left: 9%;
	top: 39%;
	width: 13%;
	height: 21%;
	border-radius: 22% / 28%;
	background:
		linear-gradient(90deg, transparent 0 30%, rgba(92, 68, 22, .38) 30% 34%, transparent 34% 66%, rgba(92, 68, 22, .38) 66% 70%, transparent 70%),
		linear-gradient(180deg, transparent 0 45%, rgba(92, 68, 22, .38) 45% 55%, transparent 55%),
		linear-gradient(135deg, #F6E7B0 0%, #D7B866 52%, #A8873E 100%);
	box-shadow: inset 0 0 0 1px rgba(92, 68, 22, .32);
}

.nx-hc-placa__nfc {
	position: absolute;
	left: 25%;
	top: 40%;
	width: 8%;
	height: 19%;
	color: rgba(255, 255, 255, .78);
}

.nx-hc-placa__nome {
	position: absolute;
	bottom: 9%;
	left: 7%;
	right: 7%;
	overflow: hidden;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.nx-hc-placa__bandeira {
	position: absolute;
	right: 7%;
	top: 9%;
	left: 7%;
	overflow: hidden;
	font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
	font-size: 8px;
	font-weight: 600;
	letter-spacing: .08em;
	text-align: right;
	text-transform: uppercase;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: rgba(255, 255, 255, .86);
}
