/* NICHO Finanças · KIT D · Fintech */

:root {
	/* Visual "flutuando": sombras suaves no lugar das linhas de borda. */
	--float: 0 1px 2px rgba(12, 32, 51, .04), 0 10px 30px rgba(12, 32, 51, .08);
	--float-hover: 0 2px 4px rgba(12, 32, 51, .05), 0 20px 44px rgba(12, 32, 51, .13);
	--float-sm: 0 1px 2px rgba(12, 32, 51, .05), 0 4px 12px rgba(12, 32, 51, .07);
	--nx-ink: #0B1F24;
	--nx-muted: #4B5F65;
	--nx-line: #D8E5E5;
	--nx-bg: #FFFFFF;
	--nx-soft: #F1F7F7;
	--nx-white: #FFFFFF;
	--nx-font: 'DM Sans', Arial, sans-serif;
	--nx-gutter: 96px;
	--fx-display: 'Sora', Arial, sans-serif;
	--fx-display-weight: 700;
	--fx-display-tracking: -.035em;
	--fx-radius: 16px;
	/* Verde-petróleo escuro das áreas escuras, o painel um pouco mais claro e o coral de apoio. */
	--fx-navy: #062A30;
	--fx-panel: #0B3D45;
	--fx-gold: #F07A55;
	--fx-dark-ink: #C2D6D8;
	--fx-dark-muted: #A9C2C4;
	--fx-dark-line: rgba(255, 255, 255, .14);
	/* Tom mais escuro da Cor destaque, para texto e ícones em fundo claro. */
	--fx-ink: color-mix(in oklab, var(--nx-accent) 80%, #000);
	--fx-tint-8: color-mix(in oklab, var(--nx-accent) 8%, #fff);
	--fx-tint-10: color-mix(in oklab, var(--nx-accent) 10%, #fff);
	--fx-tint-11: color-mix(in oklab, var(--nx-accent) 11%, #fff);
	--fx-tint-16: color-mix(in oklab, var(--nx-accent) 16%, #fff);
	--fx-wash: color-mix(in oklab, var(--nx-accent) 9%, #fff);
	--fx-gradient: linear-gradient(135deg, var(--nx-accent) 0%, var(--fx-panel) 100%);
	--fx-shadow: 0 30px 60px rgba(8, 24, 48, .16), 0 6px 16px rgba(8, 24, 48, .08);
}

/* Cor destaque preenchida em Definições: o verde-petróleo escuro vira um tom escuro dela. */
.nx-cor-destaque {
	--fx-navy: color-mix(in oklab, var(--nx-accent) 30%, #000);
	--fx-panel: color-mix(in oklab, var(--nx-accent) 42%, #000);
}

/* Áreas escuras: textos, linhas e etiquetas trocam de cor sozinhos. */
.nx-hero,
.nx-d-sec--dark,
.nx-list-head,
.nx-art-head,
.nx-sobre-head,
.nx-contato-head,
.nx-legal-head,
.nx-pagina-head,
.nx-404__hero,
.nx-sobre-fale,
.nx-footer {
	--nx-ink: #FFFFFF;
	--nx-muted: var(--fx-dark-ink);
	--nx-line: var(--fx-dark-line);
	--fx-ink: #BFE9E6;
	--fx-eyebrow-line: rgba(255, 255, 255, .28);
	background: var(--fx-navy);
	color: #FFFFFF;
}

:is(.nx-hero, .nx-d-sec--dark, .nx-list-head, .nx-art-head, .nx-sobre-head, .nx-contato-head, .nx-legal-head, .nx-pagina-head, .nx-404__hero, .nx-sobre-fale, .nx-footer) a:not(.nx-btn) {
	color: inherit;
}

:is(.nx-hero, .nx-d-sec--dark, .nx-list-head, .nx-art-head, .nx-sobre-head, .nx-contato-head, .nx-legal-head, .nx-pagina-head, .nx-404__hero, .nx-sobre-fale, .nx-footer) .nx-btn--ghost {
	border-color: rgba(255, 255, 255, .6);
	background: transparent;
	color: #FFFFFF !important;
}

:is(.nx-hero, .nx-d-sec--dark, .nx-list-head, .nx-art-head, .nx-sobre-head, .nx-contato-head, .nx-legal-head, .nx-pagina-head, .nx-404__hero, .nx-sobre-fale, .nx-footer) .nx-btn--ghost:hover {
	background: rgba(255, 255, 255, .1);
}

/* Campo de busca em área escura: o campo continua branco, com texto escuro. */
:is(.nx-hero, .nx-d-sec--dark, .nx-list-head, .nx-art-head, .nx-sobre-head, .nx-contato-head, .nx-legal-head, .nx-pagina-head, .nx-404__hero, .nx-sobre-fale, .nx-footer) .nx-input {
	color: #0B1F24;
}

/* Logo ------------------------------------------------------------------ */
.nx-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	color: var(--nx-header-ink, #FFFFFF) !important;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.nx-logo img {
	display: block;
	width: auto;
	max-height: 44px;
}

.nx-logo__mark {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--nx-accent), var(--fx-gold));
	color: #FFFFFF;
}

.nx-logo__name {
	font-family: var(--fx-display);
	font-size: 21px;
	font-weight: 800;
	letter-spacing: -.03em;
}

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

.nx-logo--footer {
	color: #FFFFFF !important;
}

.nx-logo--footer .nx-logo__mark {
	width: 31px;
	height: 31px;
}

.nx-logo--footer .nx-logo__name {
	font-size: 22px;
}

.nx .nx-logo-by {
	font-family: 'Schibsted Grotesk', Inter, Arial, sans-serif;
	font-size: 12px;
	font-weight: 600;
	color: var(--nx-header-ink, #FFFFFF);
	opacity: .72;
}

.nx-footer .nx-logo-by {
	color: #FFFFFF;
}

/* Botão redondo de ícone (busca e menu do cabeçalho). */
.nx-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	box-shadow: var(--float-sm);
	border-radius: 50%;
	background: transparent;
	color: var(--nx-header-ink, #FFFFFF);
	cursor: pointer;
}

.nx-icon-btn:hover,
.nx-icon-btn[aria-expanded="true"] {
	box-shadow: var(--float);
	transform: translateY(-1px);
	background: color-mix(in srgb, var(--nx-header-ink, #FFFFFF) 10%, transparent);
}

/* Cabeçalho ------------------------------------------------------------- */
.nx-header {
	position: relative;
	z-index: 20;
	background: var(--nx-header-bg, var(--fx-navy));
	box-shadow: 0 1px 0 rgba(12, 32, 51, .04), 0 6px 20px rgba(12, 32, 51, .06);
}

.nx-header__inner {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 84px;
}

.nx-nav {
	display: flex;
	align-items: center;
	gap: 2px;
	margin-left: auto;
}

.nx-nav a {
	padding: 9px 14px;
	border-radius: 999px;
	color: color-mix(in srgb, var(--nx-header-ink, #FFFFFF) 78%, transparent);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.nx-nav a:hover,
.nx-nav a[aria-current="page"] {
	background: color-mix(in srgb, var(--nx-header-ink, #FFFFFF) 12%, transparent);
	color: var(--nx-header-ink, #FFFFFF);
}

.nx-header__actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.nx-header__menu {
	display: none;
}

.nx-search {
	padding: 16px 0;
	background: var(--nx-header-bg, var(--fx-navy));
}

.nx-search__form {
	display: flex;
	gap: 10px;
}

/* Rodapé ---------------------------------------------------------------- */
.nx-footer {
	background: var(--nx-footer-bg, var(--fx-navy));
	color: var(--nx-footer-ink, #FFFFFF);
}

.nx-footer > .nx-wrap {
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding-top: 40px;
	padding-bottom: 28px;
}

/* Faixa que leva às trilhas da home. */
.nx-footer__cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px 32px;
	padding: 36px 40px;
	border: 0;
	box-shadow: var(--float-sm);
	border-radius: 24px;
	background: var(--fx-panel);
}

.nx-footer__cta-text {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.nx-footer__cta-text strong {
	font-family: var(--fx-display);
	font-size: 30px;
	font-weight: 700;
	letter-spacing: -.03em;
	line-height: 1.15;
}

.nx-footer__cta-text > span:last-child {
	font-size: 16px;
	color: var(--fx-dark-ink);
}

.nx-footer__top {
	display: grid;
	grid-template-columns: 5fr 6fr;
	gap: 40px 80px;
}

.nx-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.nx-footer__brand p {
	max-width: 380px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--fx-dark-ink);
}

.nx-footer__cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.nx-footer__col {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nx-footer__head {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #8FB3B6;
}

.nx-footer__col a {
	font-size: 15px;
	text-decoration: none;
}

.nx-footer__col a:hover {
	text-decoration: underline;
}

.nx-footer__bottom {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 22px;
}

.nx-footer__aviso {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nx-footer__aviso p,
.nx-footer__copy {
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
	color: var(--fx-dark-muted);
}

/* Responsivo ------------------------------------------------------------ */
@media (max-width: 1200px) {
	:root {
		--nx-gutter: 48px;
	}

	.nx-header__inner {
		gap: 18px;
	}

	.nx-nav a {
		padding: 9px 10px;
	}
}

@media (max-width: 1024px) {
	.nx-header__inner {
		gap: 16px;
		min-height: 72px;
	}

	.nx-header__actions {
		margin-left: auto;
	}

	.nx-header__menu {
		display: inline-flex;
	}

	/* Menu vira painel embaixo do cabeçalho. */
	.nx-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
		margin: 0;
		padding: 8px var(--nx-gutter) 16px;
		background: var(--nx-header-bg, var(--fx-navy));
		box-shadow: 0 16px 32px rgba(0, 0, 0, .2);
	}

	.nx-nav.is-open {
		display: flex;
	}

	.nx-nav a {
		padding: 12px 14px;
	}

	.nx-footer__top {
		grid-template-columns: 1fr;
	}

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

@media (max-width: 640px) {
	:root {
		--nx-gutter: 20px;
	}

	.nx-header .nx-header__cta {
		display: none;
	}

	.nx-logo__name {
		font-size: 19px;
	}

	.nx-footer > .nx-wrap {
		gap: 32px;
		padding-top: 32px;
	}

	.nx-footer__cta {
		padding: 28px 24px;
	}

	.nx-footer__cta-text strong {
		font-size: 24px;
	}

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

	.nx-search__form .nx-btn {
		padding: 0 18px;
	}
}
