/* HOME · Finanças · Kit C · Crescimento (busca em destaque) */

/* Seções -------------------------------------------------------------- */
.nx-c-sec {
	padding: 48px 0;
}

.nx-c-sec--soft {
	background: var(--nx-soft);
}

.nx-c-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 28px;
}

.nx-c-head > div {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Topo: busca --------------------------------------------------------- */
.nx-c-hero {
	padding: 48px 0;
	background: radial-gradient(900px 380px at 50% 0%, color-mix(in oklab, var(--nx-accent) 16%, #fff) 0%, var(--fx-mint) 55%, #fff 100%);
	text-align: center;
}

.nx-c-hero .nx-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
}

.nx-c-hero .nx-eyebrow {
	align-self: center;
}

.nx-c-hero__title {
	max-width: 900px;
	font-size: 60px;
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -.03em;
	text-wrap: balance;
}

.nx-c-hero__search {
	display: flex;
	gap: 8px;
	width: 100%;
	max-width: 760px;
	padding: 8px;
	border: 0;
	border-radius: 16px;
	background: var(--nx-white);
	box-shadow: 0 16px 40px rgba(10, 58, 34, .10);
}

.nx-c-hero__search:focus-within {
	border-color: var(--nx-accent);
}

.nx-c-hero__search input {
	flex-grow: 1;
	min-width: 0;
	height: 52px;
	padding: 0 16px;
	border: 0;
	background: transparent;
	color: var(--nx-ink);
	font: 17px var(--nx-font);
	outline: none;
}

.nx-c-hero__search button {
	height: 52px;
	padding: 0 28px;
	border: 0;
	border-radius: 10px;
	background: var(--nx-accent);
	color: var(--nx-on-accent);
	font: 800 16px var(--nx-font);
	cursor: pointer;
}

.nx-c-hero__temas {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.nx-c-hero__temas a {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 42px;
	padding: 0 16px;
	border: 0;
	box-shadow: var(--float-sm);
	border-radius: 10px;
	background: var(--nx-white);
	color: var(--nx-ink);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: box-shadow .2s, transform .2s;
}

.nx-c-hero__temas a:hover {
	box-shadow: var(--float);
	transform: translateY(-1px);
}

.nx-c-hero__temas span {
	display: flex;
	color: var(--fx-ink);
}

.nx-c-hero__tools {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	width: 100%;
	padding-top: 8px;
	text-align: left;
}

.nx-c-tool {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
	border: 0;
	border-radius: 14px;
	background: var(--nx-white);
	color: var(--nx-ink) !important;
	text-decoration: none;
	box-shadow: var(--fx-shadow);
	transition: box-shadow .2s, transform .2s;
}

.nx-c-tool:hover {
	box-shadow: var(--float-hover);
	transform: translateY(-3px);
}

.nx-c-tool__ico {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: var(--nx-accent);
	color: var(--nx-on-accent);
}

.nx-c-tool__text {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	gap: 2px;
}

.nx-c-tool__text strong {
	font-size: 16px;
}

.nx-c-tool__text span {
	font-size: 13px;
	color: var(--nx-muted);
}

.nx-c-tool__go {
	color: var(--fx-ink);
	font-weight: 800;
}

/* Três passos --------------------------------------------------------- */
.nx-c-passos {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.nx-c-passo {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 28px;
	border: 0;
	box-shadow: var(--float);
	border-radius: 14px;
	background: var(--nx-white);
}

.nx-c-passo__num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--fx-navy);
	color: #fff;
	font-size: 17px;
	font-weight: 800;
}

.nx-c-passo strong {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -.02em;
}

.nx-c-passo p {
	font-size: 15px;
	line-height: 1.65;
	color: var(--nx-muted);
}

.nx-c-passo__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin-top: auto;
	padding-top: 4px;
}

.nx-c-passo__guia {
	color: var(--nx-ink);
	font-size: 15px;
	font-weight: 700;
}

/* Calculadoras + ferramentas do app ----------------------------------- */
.nx-c-calcs {
	display: grid;
	grid-template-columns: 8fr 4fr;
	gap: 20px;
}

.nx-c-calcs.is-single {
	grid-template-columns: 1fr;
}

.nx-c-calcs__grade {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.nx-c-calc {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px;
	border: 0;
	box-shadow: var(--float);
	border-radius: 14px;
	background: var(--nx-white);
	color: var(--nx-ink) !important;
	text-decoration: none;
	transition: box-shadow .2s, transform .2s;
}

.nx-c-calc:hover {
	box-shadow: var(--float-hover);
	transform: translateY(-3px);
}

.nx-c-calc .nx-ico {
	width: 42px;
	height: 42px;
	border-radius: 12px;
}

.nx-c-calc strong {
	font-size: 16px;
	line-height: 1.3;
}

.nx-c-calc > span:last-child {
	font-size: 14px;
	line-height: 1.5;
	color: var(--nx-muted);
}

.nx-c-app {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 26px;
	border-radius: 14px;
	background: var(--fx-navy);
	color: #fff;
}

.nx-c-app__tag {
	font-size: 13px;
	font-weight: 800;
	color: var(--fx-gold);
}

.nx-c-app a {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px;
	border-radius: 12px;
	background: rgba(255, 255, 255, .08);
	color: #fff !important;
	text-decoration: none;
}

.nx-c-app a:hover {
	background: rgba(255, 255, 255, .14);
}

.nx-c-app strong {
	font-size: 17px;
}

.nx-c-app a span {
	font-size: 14px;
	line-height: 1.5;
	color: rgba(255, 255, 255, .78);
}

.nx-c-app b {
	font-size: 14px;
	color: var(--fx-gold);
}

.nx-home > .nx-ad {
	margin: 8px auto;
}

/* Ranking ------------------------------------------------------------- */
.nx-c-ranking-sec {
	padding: 0 0 48px;
}

.nx-c-ranking {
	display: grid;
	grid-template-columns: 6fr 5fr;
	align-items: center;
	gap: 48px;
	padding: 48px 56px;
	border-radius: 20px;
	background: var(--fx-navy);
	color: #fff;
}

.nx-c-ranking.is-single {
	grid-template-columns: 1fr;
}

.nx-c-ranking__text {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.nx-c-ranking__tag {
	align-self: flex-start;
	padding: 5px 10px;
	border-radius: 6px;
	background: rgba(255, 255, 255, .14);
	font-size: 13px;
	font-weight: 800;
}

.nx-c-ranking .nx-h2 {
	color: #fff;
}

.nx-c-ranking__text p {
	font-size: 17px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .8);
}

.nx-c-ranking__btn {
	align-self: flex-start;
	background: var(--fx-gold);
	color: var(--nx-ink) !important;
}

.nx-c-ranking__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nx-c-ranking__list li {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 16px;
	padding: 14px 0;
	border-top: 1px solid rgba(255, 255, 255, .14);
}

.nx-c-ranking__list strong {
	font-size: 18px;
	color: var(--fx-gold);
}

.nx-c-ranking__list span {
	font-size: 16px;
	font-weight: 700;
}

.nx-c-ranking__list em {
	font-size: 14px;
	font-style: normal;
	color: rgba(255, 255, 255, .78);
}

/* Como trabalhamos + segurança ---------------------------------------- */
.nx-c-seguro {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 20px;
	padding: 20px 24px;
	border: 0;
	box-shadow: var(--float);
	border-radius: 14px;
	background: var(--nx-white);
}

.nx-c-seguro__ico {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--nx-accent);
	color: var(--nx-on-accent);
}

.nx-c-seguro p {
	font-size: 16px;
	line-height: 1.55;
}

/* Responsivo ---------------------------------------------------------- */
@media (max-width: 1024px) {
	.nx-c-hero__title {
		font-size: 46px;
	}

	.nx-c-hero__tools,
	.nx-c-passos {
		grid-template-columns: 1fr;
	}

	.nx-c-calcs,
	.nx-c-ranking {
		grid-template-columns: 1fr;
	}

	.nx-c-calcs__grade {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.nx-c-hero {
		padding: 32px 0 40px;
	}

	.nx-c-hero__title {
		font-size: 34px;
	}

	.nx-c-hero__search button {
		padding: 0 18px;
	}

	.nx-c-hero__search input {
		font-size: 15px;
	}

	.nx-c-sec {
		padding: 40px 0;
	}

	.nx-c-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.nx-c-calcs__grade {
		grid-template-columns: 1fr;
	}

	.nx-c-ranking {
		padding: 28px 22px;
	}

	.nx-c-ranking__list li {
		grid-template-columns: 28px minmax(0, 1fr);
	}

	.nx-c-ranking__list em {
		grid-column: 2;
	}
}

/* Cartões "How we work" (os mesmos itens do Compromisso). */
.nx-pilares {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.nx-pilar {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 28px;
	border: 0;
	box-shadow: var(--float);
	border-radius: 14px;
	background: var(--nx-white);
}

.nx-pilar strong {
	font-size: 20px;
	font-weight: 800;
}

.nx-pilar span:last-child {
	font-size: 15px;
	line-height: 1.6;
	color: var(--nx-muted);
}

@media (max-width: 1024px) {
	.nx-pilares {
		grid-template-columns: 1fr;
	}
}

/* Comparação de cartões (UpCards) ------------------------------------------ */
.nx-cmp {
	padding: 48px 0 56px;
	background: linear-gradient(180deg, var(--nx-soft) 0%, var(--nx-white) 100%);
}

.nx-cmp__grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	align-items: center;
	gap: 44px;
}

.nx-cmp__arte {
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Dois cartões retos, lado a lado, com "VS" em texto entre eles */
.nx-cmp__cartoes {
	display: flex;
	align-items: center;
	gap: 22px;
	width: 100%;
	max-width: 400px;
}

.nx-cmp__cartao {
	flex: 1;
	min-width: 0;
}

.nx-cmp__vs {
	flex-shrink: 0;
	font-size: 15px;
	font-weight: 800;
	color: var(--nx-accent);
}

/* Placar com barras */
.nx-cmp__tabela {
	width: 100%;
	max-width: 440px;
	margin-top: 18px;
	padding: 14px 16px 12px;
	border: 1px solid var(--nx-line);
	border-radius: 14px;
	background: var(--nx-white);
}

.nx-cmp__tabela-topo {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 12px;
	padding-bottom: 8px;
}

.nx-cmp__tabela-topo strong {
	font-size: 16px;
	font-weight: 800;
	color: var(--nx-ink);
}

.nx-cmp__legenda {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
}

.nx-cmp__legenda span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	color: var(--nx-ink);
}

.nx-cmp__legenda i {
	width: 10px;
	height: 10px;
	border-radius: 3px;
}

.nx-cmp__barras {
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	padding: 9px 0;
	border-top: 1px solid var(--nx-line);
}

.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: var(--nx-muted);
}

.nx-cmp__barra {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.nx-cmp__trilho {
	flex-grow: 1;
	min-width: 24px;
	height: 6px;
	overflow: hidden;
	border-radius: 3px;
	background: var(--fx-mint);
}

.nx-cmp__trilho i {
	display: block;
	height: 100%;
	border-radius: 4px;
	animation: nx-cmp-barra 1.2s ease-out both;
}

@keyframes nx-cmp-barra {
	from { width: 0; }
}

.nx-cmp__barra b {
	flex-shrink: 0;
	min-width: 34px;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
	color: var(--nx-ink);
}

.nx-cmp__melhor {
	padding-top: 10px;
	border-top: 1px solid var(--nx-line);
	font-size: 13px;
	color: var(--nx-muted);
}

.nx-cmp__melhor strong {
	color: var(--nx-accent);
}

/* 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: var(--fx-ink);
}

.nx-cmp__titulo {
	margin: 0;
	font-size: 38px;
	font-weight: 800;
	letter-spacing: -.035em;
	line-height: 1.06;
	color: var(--nx-ink);
}

.nx-cmp__titulo span {
	color: var(--nx-accent);
}

.nx-cmp__lead {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--nx-muted);
}

.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: 10px;
	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: var(--nx-accent);
}

.nx-cmp__nota {
	font-size: 13px;
	color: var(--nx-muted);
}

@media (prefers-reduced-motion: reduce) {
	.nx-cmp__trilho i {
		animation: none;
	}
}

@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__cartoes {
		gap: 10px;
	}

	.nx-cmp__vs {
		font-size: 14px;
	}

	.nx-cmp__tabela {
		padding: 16px 14px 12px;
	}

	.nx-cmp__barras {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.nx-cmp__barras .nx-cmp__rotulo {
		grid-column: 1 / -1;
	}

	.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);
}
