/* =========================================================
   JS Digital Business · Sistema visual v2
   Base do projeto: tokens, tipografia e componentes.
   Ajustes pontuais vão em jsdb.css (carregado por último).
   ========================================================= */

/* ---------- Tokens · tema light (padrão) ---------- */
:root,
[data-theme="light"] {
	--bg: #FFFFFF;
	/* Janela de navegador desenhada: cores oficiais do macOS (iguais nos dois temas) */
	--mac-red: #FF5F57;
	--mac-yellow: #FEBC2E;
	--mac-green: #28C840;
	--surface: #F7F7F8;
	--border: #E6E6EA;
	--border-strong: #CFCFD6;
	--text: #131313;
	--text-2: #6B6B76;
	--accent: #624895;
	--accent-hover: #473572;
	--on-accent: #FFFFFF;
	--header-bg: rgba(255, 255, 255, .78);
	--logo: #624895;
	color-scheme: light;
}

/* ---------- Tokens · tema dark ---------- */
[data-theme="dark"] {
	--bg: #0A0A0C;
	--surface: #131316;
	--border: #26262C;
	--border-strong: #3A3A42;
	--text: #F5F5F7;
	--text-2: #9A9AA5;
	--accent: #F9FF00;
	--accent-hover: #E5EB00;
	--on-accent: #131313;
	--header-bg: rgba(10, 10, 12, .72);
	--logo: #FFFFFF;
	color-scheme: dark;
}

/* Sem JS: segue o aparelho */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0A0A0C;
		--surface: #131316;
		--border: #26262C;
		--border-strong: #3A3A42;
		--text: #F5F5F7;
		--text-2: #9A9AA5;
		--accent: #F9FF00;
		--accent-hover: #E5EB00;
		--on-accent: #131313;
		--header-bg: rgba(10, 10, 12, .72);
		color-scheme: dark;
	}
}

/* ---------- Constantes ---------- */
:root {
	--font-title: "Poppins", system-ui, sans-serif;
	--font-text: "Roboto", system-ui, sans-serif;
	--font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

	/* Botões: Poppins 500, escrita normal (aprovado) */
	--btn-font: var(--font-title);
	--btn-weight: 500;
	--btn-size: 15px;
	--btn-spacing: -0.005em;
	--btn-case: none;

	--logo-h: 48px; /* altura do logo no topo e do símbolo no rodapé */
	--radius: 14px;
	--radius-sm: 10px;
	--container: 1200px;
	--gutter: 20px;
	--section: 72px;
	--ease: .25s ease;
}

@media (min-width: 768px) {
	:root { --gutter: 32px; --section: 104px; }
}
@media (min-width: 1200px) {
	:root { --section: 140px; }
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-text);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	transition: background-color var(--ease), color var(--ease);
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }

/* ---------- Quebra de linha ----------
   Títulos: linhas equilibradas (sem palavra órfã sobrando sozinha).
   Parágrafos: evita a última linha com uma palavra só.
   Quebra manual por sentido: <br class="br-desk"> (só a partir de tablet)
   ou <br class="br-mob"> (só no celular). */
h1, h2, h3, .t-display, .t-h2, .t-h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

.br-desk { display: none; }
@media (min-width: 768px) {
	.br-desk { display: inline; }
	.br-mob { display: none; }
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection { background: var(--accent); color: var(--on-accent); }

/* ---------- Layout ---------- */
.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.section { padding: var(--section) 0; }

/* Dobras separadas só pelo espaço (sem linha). Como não há linha no meio,
   a dobra seguinte não repete o espaço de cima: fica um espaçamento padrão. */
.section + .section { padding-top: 0; }
.divider { border-top: 1px solid var(--border); }
/* Linha pontual entre dobras: marca o começo de um novo bloco da página */
.section.has-rule { border-top: 1px solid var(--border); padding-top: var(--section); }

.divider { border: 0; height: 0; margin: 0; }

/* ---------- Tipografia · 6 níveis ---------- */

/* 1. Display (hero) · 56 / 36px */
.t-display {
	font-family: var(--font-title);
	font-weight: 400;
	font-size: clamp(36px, 2.8vw + 16px, 56px);
	line-height: 1.08;
	letter-spacing: -0.03em;
}

/* 2. H2 (seção) · 34 / 28px */
.t-h2 {
	font-family: var(--font-title);
	font-weight: 400;
	font-size: clamp(28px, 0.9vw + 21px, 34px);
	line-height: 1.15;
	letter-spacing: -0.02em;
}

/* 3. H3 (card) */
.t-h3 {
	font-family: var(--font-title);
	font-weight: 500;
	font-size: 20px;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

/* 4. Texto grande (subheadline / abertura de seção) */
.t-lead {
	font-family: var(--font-text);
	font-weight: 300;
	font-size: 17px;
	line-height: 1.6;
	color: var(--text-2);
	/* Largura acompanha o título: linhas longas e equilibradas */
	max-width: 46em;
	text-wrap: balance;
}

/* 5. Texto padrão */
.t-body {
	font-family: var(--font-text);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.6;
}

/* 6. Etiqueta (único uso da Geist Mono, sempre caixa alta) */
.t-label {
	font-family: var(--font-mono);
	font-weight: 500;
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: .08em;
	text-transform: uppercase;
}

@media (min-width: 768px) {
	.t-h3 { font-size: 22px; }
	.t-lead { font-size: 18px; }
	.t-label { font-size: 13px; }
}

/* Palavra de destaque no título */
.hl {
	font-weight: 600;
	color: var(--accent);
	transition: color var(--ease);
}

.text-2 { color: var(--text-2); }

/* ---------- Etiqueta de seção ---------- */
.eyebrow {
	display: block;
	font-family: var(--font-mono);
	font-weight: 500;
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--text-2);
	margin-bottom: 20px;
}

/* ---------- Botões ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 26px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: var(--btn-font);
	font-weight: var(--btn-weight);
	font-size: var(--btn-size);
	letter-spacing: var(--btn-spacing);
	text-transform: var(--btn-case);
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}

/* Pequeno (topo): 13px para ficar no mesmo peso visual do menu */
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 13px; }

/* Principal: sempre o diagnóstico */
.btn-primary {
	background: var(--accent);
	color: var(--on-accent);
}
.btn-primary:hover,
.btn-primary.is-hover { background: var(--accent-hover); }

/* Secundário: contato */
.btn-secondary {
	background: transparent;
	border-color: var(--border-strong);
	color: var(--text);
}
.btn-secondary:hover,
.btn-secondary.is-hover { border-color: var(--text); }

.btn .arrow { transition: transform var(--ease); }
.btn:hover .arrow,
.btn.is-hover .arrow { transform: translateX(3px); }

.btn-group {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.microcopy {
	font-family: var(--font-text);
	font-size: 13px;
	color: var(--text-2);
	margin-top: 14px;
}

/* Link de texto com seta */
.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-title);
	font-weight: 500;
	font-size: 15px;
	letter-spacing: -0.005em;
	color: var(--text);
	border-bottom: 1px solid var(--border-strong);
	padding-bottom: 4px;
	transition: border-color var(--ease);
}
.link-arrow:hover { border-color: var(--text); }

/* ---------- Card ---------- */
.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 28px;
	transition: border-color var(--ease), background-color var(--ease);
}
.card:hover { border-color: var(--border-strong); }

.card .icon {
	width: 28px;
	height: 28px;
	color: var(--text);
	margin-bottom: 28px;
}
.card .t-h3 { margin-bottom: 8px; }
.card p { color: var(--text-2); }

/* Card de serviço: título em 1 linha, descrição sempre em 2 linhas */
.card-service { padding: 24px; }
.card-service .icon { margin-bottom: 24px; }
.card-service .t-h3 { font-size: 18px; white-space: nowrap; }
.card-service p { font-size: 15px; line-height: 1.5; min-height: 3em; }

/* ---------- Selo (badge) ---------- */
.badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 7px 14px;
	border: 1px solid var(--border);
	border-radius: 999px;
	font-family: var(--font-mono);
	font-weight: 500;
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--text);
	transition: border-color var(--ease);
}
a.badge:hover { border-color: var(--border-strong); }

.badge .dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent);
	flex-shrink: 0;
}
.badge .sep { color: var(--text-2); }

/* ---------- Número grande ---------- */
.stat .num {
	display: block;
	font-family: var(--font-title);
	font-weight: 300;
	font-size: clamp(48px, 3vw + 32px, 72px);
	line-height: 1;
	letter-spacing: -0.04em;
}
.stat .cap {
	display: block;
	margin-top: 12px;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--text-2);
}

/* ---------- Lista com linhas (estilo news) ---------- */
.list-rows { list-style: none; padding: 0; border-top: 1px solid var(--border); }
.list-rows li { border-bottom: 1px solid var(--border); }
.list-rows a {
	display: grid;
	gap: 6px;
	padding: 24px 0;
	transition: color var(--ease);
}
.list-rows .meta {
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--text-2);
}
.list-rows .title {
	font-family: var(--font-title);
	font-weight: 400;
	font-size: 18px;
	line-height: 1.35;
	letter-spacing: -0.01em;
}
.list-rows a:hover .title { color: var(--text-2); }

@media (min-width: 768px) {
	.list-rows a {
		grid-template-columns: 220px 1fr auto;
		align-items: baseline;
		gap: 32px;
	}
	.list-rows .title { font-size: 20px; }
}

/* ---------- Marcador de dado a confirmar ---------- */
.confirm {
	display: inline-block;
	padding: 2px 8px;
	border: 1px dashed currentColor;
	border-radius: 6px;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: .02em;
	color: #B42318;
	background: rgba(180, 35, 24, .06);
}
[data-theme="dark"] .confirm { color: #FDA29B; background: rgba(253, 162, 155, .08); }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--header-bg);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: background-color var(--ease), border-color var(--ease);
}
/* Linha de baixo só aparece depois que a página rola */
.site-header.is-scrolled { border-bottom-color: var(--border); }
.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: 72px;
}

/* Menu do topo: Poppins 400, mesma família dos botões */
.site-nav { display: none; gap: 28px; }
.site-nav a {
	font-family: var(--font-title);
	font-weight: 400;
	font-size: 14px;
	color: var(--text-2);
	transition: color var(--ease);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--text); }
@media (min-width: 1024px) { .site-nav { display: flex; } }

/* Logo: troca automática por tema (42px = +24% sobre o site atual, em teste) */
.logo { display: inline-flex; align-items: center; }
.logo img { height: 42px; width: auto; }
.logo .logo-on-dark { display: none; }
/* Logo em SVG: a cor vem do tema (roxo no light, branco no dark) */
.logo { color: var(--logo); transition: color var(--ease); }
.logo svg { display: block; height: var(--logo-h); width: auto; }
.logo .logo-mark { display: none; }
/* Celular: só o símbolo JS no topo */
@media (max-width: 767px) {
	.site-header .logo .logo-full { display: none; }
	.site-header .logo .logo-mark { display: block; }
}
[data-theme="dark"] .logo .logo-on-light { display: none; }
[data-theme="dark"] .logo .logo-on-dark { display: block; }

/* ---------- Toggle de tema ---------- */
.theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: transparent;
	color: var(--text);
	cursor: pointer;
	transition: border-color var(--ease), color var(--ease);
}
.theme-toggle:hover { border-color: var(--border-strong); }
/* Versão só ícone (rodapé): sem borda */
.theme-toggle.is-plain { width: auto; height: auto; padding: 4px; border: 0; color: var(--text-2); }
.theme-toggle.is-plain:hover { color: var(--text); }
.theme-toggle.is-plain svg { width: 20px; height: 20px; }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* ---------- Rodapé ---------- */
.site-footer {
	border-top: 1px solid var(--border);
	padding: 72px 0 32px;
	font-size: 14px;
}
.footer-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 48px 24px;
}
.footer-brand { grid-column: 1 / -1; max-width: 340px; }
.footer-brand .logo svg { height: var(--logo-h); }
.footer-brand p { color: var(--text-2); margin: 20px 0 24px; }

/* Título da coluna: mesma fonte dos links, só mais encorpado */
.footer-col h3 {
	font-family: var(--font-text);
	font-weight: 500;
	font-size: 14px;
	line-height: 1.5;
	color: var(--text);
	margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 7px; }
.footer-col li { line-height: 1.5; }
.footer-col a { color: var(--text-2); transition: color var(--ease); }
.footer-col a:hover { color: var(--text); }

/* Redes sociais: ícones de linha pequenos */
.social { display: flex; gap: 14px; margin-top: 16px; }
.social a {
	display: inline-flex;
	color: var(--text-2);
	transition: color var(--ease);
}
.social a:hover { color: var(--accent); }
.social svg { width: 18px; height: 18px; }
.footer-col .tag {
	margin-left: 6px;
	padding: 2px 7px;
	border: 1px solid var(--border);
	border-radius: 999px;
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--text-2);
	vertical-align: 2px;
}
.footer-col .plain { color: var(--text-2); }

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 32px;
	margin-top: 72px;
	padding-top: 24px;
	border-top: 1px solid var(--border);
	font-family: var(--font-text);
	font-size: 13px;
	color: var(--text-2);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-bottom a { transition: color var(--ease); }
.footer-bottom a:hover { color: var(--text); }

@media (min-width: 768px) {
	.footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
	.site-footer { padding-top: 104px; }
	.footer-grid { grid-template-columns: 2fr repeat(4, 1fr); gap: 32px; }
	.footer-brand { grid-column: auto; }
}

/* ---------- Hero centralizado ---------- */
.hero {
	padding: 72px 0 56px;
	text-align: center;
}
.hero .badge { margin-bottom: 28px; }
.hero h1 { max-width: 17em; margin: 0 auto; }
.hero .t-lead { margin: 24px auto 0; max-width: 34em; }
.hero .btn-group { justify-content: center; margin-top: 36px; }
.hero .microcopy { margin-top: 16px; }
@media (min-width: 768px) {
	.hero { padding: 112px 0 80px; }
}
@media (max-width: 479px) {
	.hero .btn-group .btn,
	.page-hero .btn-group .btn { width: 100%; }
}

/* Headline rotativa: frases empilhadas na mesma célula (altura fixa = maior frase) */
.rotator { display: grid; }
.rotator > span {
	grid-area: 1 / 1;
	align-self: center;
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .6s ease, transform .6s ease;
	pointer-events: none;
}
.rotator > span.is-active {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}
.rotator > span.is-leaving { opacity: 0; transform: translateY(-14px); }

/* Variação: headline com digitação (início e fim fixos, meio digitado) */
.typer .typed-line { display: block; min-height: 1.08em; }
.typer .caret {
	display: inline-block;
	width: 3px;
	height: .9em;
	margin-left: 4px;
	vertical-align: -0.08em;
	background: var(--accent);
	animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.sr-only {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Faixa de serviços (bento 3 + 2) ---------- */
.bento {
	display: grid;
	gap: 12px;
}
@media (min-width: 768px) {
	.bento { grid-template-columns: repeat(6, 1fr); }
	.bento .tile { grid-column: span 2; }
	.bento .tile.wide { grid-column: span 3; }
}
.tile {
	display: flex;
	flex-direction: column;
	min-height: 300px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	overflow: hidden;
	transition: border-color var(--ease), background-color var(--ease);
}
.tile:hover { border-color: var(--border-strong); }
.tile-screen {
	position: relative;
	flex: 1;
	min-height: 200px;
	padding: 20px 20px 0;
	overflow: hidden;
}
.tile-foot {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px 16px;
	padding: 18px 20px 20px;
}
.tile-foot > div { flex: 1 1 220px; }
.tile-foot h3 {
	font-family: var(--font-title);
	font-weight: 500;
	font-size: 16px;
	line-height: 1.3;
}
.tile-foot p { font-size: 14px; color: var(--text-2); margin-top: 2px; }
.tile-foot .more {
	flex-shrink: 0;
	font-family: var(--font-title);
	font-weight: 500;
	font-size: 14px;
	color: var(--text);
	white-space: nowrap;
}
.tile-foot .more span { display: inline-block; transition: transform var(--ease); }
.tile:hover .tile-foot .more span { transform: translateX(3px); }

/* Modelo B: imagem ocupa o bloco inteiro, só nome + seta por cima */
.bento-media { gap: 16px; }
@media (min-width: 1024px) { .bento-media { gap: 20px; } }
.tile-media {
	position: relative;
	display: block;
	min-height: 260px;
	border-radius: 16px;
	overflow: hidden;
	background: var(--bg);
	border: 0;
	isolation: isolate;
}
.tile-media[data-theme="dark"] { background: #131316; }
/* Bloco sem imagem (fundo neutro do tema): nome em cor de texto, sem escurecimento */
.tile-media.is-plain { background: var(--surface); }
.tile-media.is-plain::after { display: none; }
.tile-media.is-plain .tile-label { color: var(--text); }
/* Print de sistema "espiando" dentro do bloco (estilo linear.app) */
.tile-media.is-shot > img {
	inset: 24px auto auto 24px;
	width: 170%;
	max-width: none;
	height: calc(100% - 84px);
	border: 1px solid var(--border);
	border-radius: 10px;
	object-fit: cover;
	object-position: left top;
	transform-origin: left top;
}
.tile-media.is-shot:hover > img { transform: translate(-6px, -4px); }
/* Na conversa do bloco de IA, as respostas da IA usam a cor de destaque */
.tile-media .msg.out,
.tile-media .msg.typing,
.mock-frame .msg.out,
.mock-frame .msg.typing { background: var(--accent); color: var(--on-accent); }
.tile-media .msg.typing span,
.mock-frame .msg.typing span { background: var(--on-accent); }
@media (min-width: 768px) { .tile-media { min-height: 320px; } }
.tile-media > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s ease;
}
.tile-media:hover > img { transform: scale(1.03); }
/* Leve escurecimento só no rodapé, para o nome ficar legível sobre qualquer imagem */
.tile-media::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 40%;
	background: linear-gradient(to top, rgba(0, 0, 0, .42), rgba(0, 0, 0, 0));
	pointer-events: none;
	z-index: 1;
}
.tile-media .tile-label {
	position: absolute;
	left: 20px;
	right: 20px;
	bottom: 18px;
	z-index: 2;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: var(--font-title);
	font-weight: 500;
	font-size: 16px;
	color: #FFFFFF;
}
.tile-media .tile-label span { transition: transform var(--ease); }
.tile-media:hover .tile-label span { transform: translateX(3px); }
.tile-media .chat {
	position: absolute;
	inset: 24px 24px 64px;
	max-width: none;
	height: auto;
}
/* Mensagens presas embaixo: as novas empurram as antigas para cima */
.tile-media .chat-body {
	flex: 1;
	min-height: 0;
	overflow: hidden;
	justify-content: flex-end;
}
.tile-media .msg:not(.show):not(.typing) { display: none; }
.tile-media .msg.show { animation: msg-in .35s ease; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 767px) {
	.bento-media .tile.wide { min-height: 340px; }
}
/* Fluxo: versão horizontal no computador, vertical no celular */
.flow-mob { display: none; }
@media (max-width: 639px) {
	.flow-desk { display: none; }
	.flow-mob { display: block; }
}
.tile-media .g-ph-dark {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-size: 13px;
	color: var(--text-2);
	text-align: center;
}

/* Mini tela: fluxo de automação (organograma com setas) */
.flow {
	position: absolute;
	inset: 20px 20px 56px;
	width: calc(100% - 40px);
	height: calc(100% - 76px);
}
.flow .node rect {
	fill: var(--bg);
	stroke: var(--border-strong);
	stroke-width: 1;
	animation: flow-lit 7s infinite;
}
.flow .node .t { font: 500 14px var(--font-title); fill: var(--text); }
.flow .node .s { font: 400 11px var(--font-text); fill: var(--text-2); }
.flow .link {
	fill: none;
	stroke: var(--text-2);
	stroke-width: 1.2;
	stroke-dasharray: 4 4;
	animation: flow-dash 1.2s linear infinite;
}
.flow .arrow { fill: var(--text-2); }
.flow .n2 rect { animation-delay: 1.2s; }
.flow .n3 rect { animation-delay: 2.4s; }
.flow .n4 rect { animation-delay: 3.6s; }
.flow .n5 rect { animation: flow-done 7s infinite; animation-delay: 4.8s; }
.flow .n5 .t { animation: flow-done-text 7s infinite; animation-delay: 4.8s; }
@keyframes flow-dash { to { stroke-dashoffset: -16; } }
@keyframes flow-lit {
	0%, 100% { stroke: var(--border-strong); stroke-width: 1; }
	6%, 22% { stroke: var(--accent); stroke-width: 2; }
	30% { stroke: var(--border-strong); stroke-width: 1; }
}
@keyframes flow-done {
	0%, 100% { fill: var(--bg); stroke: var(--border-strong); }
	6%, 26% { fill: var(--accent); stroke: var(--accent); }
	34% { fill: var(--bg); stroke: var(--border-strong); }
}
@keyframes flow-done-text {
	0%, 100% { fill: var(--text); }
	6%, 26% { fill: var(--on-accent); }
	34% { fill: var(--text); }
}

/* Mini tela: conversa com IA */
.chat {
	display: flex;
	flex-direction: column;
	height: 100%;
	max-width: 440px;
	margin: 0 auto;
}
.chat-head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-bottom: 12px;
	margin-bottom: 14px;
	border-bottom: 1px solid var(--border);
	font-size: 13px;
	color: var(--text-2);
}
.chat-head .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.chat-head strong { color: var(--text); font-weight: 500; }
.chat-body { display: flex; flex-direction: column; gap: 8px; }
.msg {
	max-width: 82%;
	padding: 9px 13px;
	border-radius: 14px;
	font-size: 14px;
	line-height: 1.45;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .35s ease, transform .35s ease;
}
.msg.show { opacity: 1; transform: none; }
.msg.in {
	align-self: flex-start;
	background: var(--bg);
	border: 1px solid var(--border);
	border-bottom-left-radius: 4px;
}
.msg.out {
	align-self: flex-end;
	background: var(--text);
	color: var(--bg);
	border-bottom-right-radius: 4px;
}
.msg.typing {
	display: none;
	align-self: flex-end;
	gap: 4px;
	padding: 12px 14px;
	background: var(--text);
	border-bottom-right-radius: 4px;
}
.msg.typing.show { display: inline-flex; }
.msg.typing span {
	width: 6px; height: 6px; border-radius: 50%;
	background: var(--bg);
	animation: typing 1s infinite ease-in-out;
}
.msg.typing span:nth-child(2) { animation-delay: .15s; }
.msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing {
	0%, 60%, 100% { opacity: .3; transform: none; }
	30% { opacity: 1; transform: translateY(-2px); }
}

/* ---------- Cards de post (4 colunas) ---------- */
.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
	margin-bottom: 40px;
}
.posts {
	display: grid;
	gap: 32px 20px;
}
@media (min-width: 640px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .posts { grid-template-columns: repeat(4, 1fr); } }
.post-card { display: block; }
.post-card .thumb {
	aspect-ratio: 16 / 10;
	border-radius: 12px;
	border: 1px solid var(--border);
	overflow: hidden;
	background: var(--surface);
}
.post-card .thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}
.post-card:hover .thumb img { transform: scale(1.03); }
.post-card .meta {
	display: block;
	margin: 16px 0 8px;
	font-family: var(--font-mono);
	font-weight: 500;
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--text-2);
}
.post-card .title {
	font-family: var(--font-title);
	font-weight: 400;
	font-size: 17px;
	line-height: 1.4;
	letter-spacing: -0.01em;
	text-wrap: balance;
	transition: color var(--ease);
}
.post-card:hover .title { color: var(--text-2); }

/* ---------- Formulários ---------- */
.form { display: grid; gap: 20px; }
.form-row { display: grid; gap: 20px; }
@media (min-width: 640px) {
	.form-row { grid-template-columns: 1fr 1fr; }
}
.field { display: grid; gap: 8px; }
.field label,
.field .label {
	font-size: 14px;
	font-weight: 500;
	color: var(--text);
}
.field label small { font-weight: 400; color: var(--text-2); }
.input {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	background: var(--bg);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	color: var(--text);
	font: 400 16px/1.4 var(--font-text);
	transition: border-color var(--ease), background-color var(--ease);
}
.input::placeholder { color: var(--text-2); opacity: .8; }
.input:hover { border-color: var(--text-2); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
textarea.input { min-height: 120px; resize: vertical; }
.form-note { font-size: 13px; color: var(--text-2); }
.hp { position: absolute; left: -9999px; }

/* Barra de progresso em etapas */
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.progress span { height: 4px; border-radius: 4px; background: var(--border); overflow: hidden; }
.progress span i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }

/* Alternativas (resposta única) */
.choices { display: grid; gap: 8px; }
.choice {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	font-size: 15px;
	cursor: pointer;
	transition: border-color var(--ease);
}
.choice:hover { border-color: var(--border-strong); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .radio {
	flex-shrink: 0;
	width: 18px; height: 18px;
	border: 1px solid var(--border-strong);
	border-radius: 50%;
	display: grid;
	place-items: center;
	transition: border-color var(--ease), background-color var(--ease);
}
.choice:has(input:checked) { border-color: var(--accent); }
.choice:has(input:checked) .radio { border-color: var(--accent); background: var(--accent); }
.choice:has(input:checked) .radio::after {
	content: "";
	width: 6px; height: 6px;
	border-radius: 50%;
	background: var(--on-accent);
}
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Contato (modelo x.ai/contact) ---------- */
.channels {
	display: grid;
	gap: 12px;
	margin-top: 48px;
}
@media (min-width: 768px) { .channels { grid-template-columns: repeat(2, 1fr); } }
.channel {
	padding: 28px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	transition: border-color var(--ease);
}
.channel:hover { border-color: var(--border-strong); }
.channel h2,
.channel h3 {
	font-family: var(--font-title);
	font-weight: 500;
	font-size: 20px;
	line-height: 1.3;
	letter-spacing: -0.01em;
}
.channel p { margin: 6px 0 20px; font-size: 15px; color: var(--text-2); }

.split {
	display: grid;
	gap: 32px;
	margin-top: 72px;
	padding-top: 56px;
	border-top: 1px solid var(--border);
}
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1.6fr; gap: 64px; } }

.link-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.link-list a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px 20px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 12px;
	font-family: var(--font-title);
	font-weight: 500;
	font-size: 16px;
	transition: border-color var(--ease);
}
.link-list a:hover { border-color: var(--border-strong); }
.link-list span { font-family: var(--font-text); font-weight: 400; font-size: 14px; color: var(--text-2); }
.link-list i { margin-left: auto; font-style: normal; color: var(--text-2); }

.split-lead { margin-top: 12px; font-size: 16px; }
.split-place { margin-top: 48px; }
.form-note a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.form-alert {
	padding: 14px 16px;
	border: 1px solid #B42318;
	border-radius: 12px;
	font-size: 15px;
	color: #B42318;
	background: rgba(180, 35, 24, .06);
}
.form-alert a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
[data-theme="dark"] .form-alert { border-color: #FDA29B; color: #FDA29B; background: rgba(253, 162, 155, .08); }

/* ---------- Obrigado ---------- */
.hero-thanks { padding-bottom: var(--section); }
.thanks-back { margin-top: 40px; }
.thanks-back .more {
	font-family: var(--font-title);
	font-weight: 500;
	font-size: 15px;
	color: var(--text-2);
	transition: color var(--ease);
}
.thanks-back .more:hover { color: var(--text); }

/* ---------- Menu do celular ---------- */
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn-secondary { display: none; }
@media (min-width: 640px) { .header-actions .btn-secondary { display: inline-flex; } }
.menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: transparent;
	color: var(--text);
	cursor: pointer;
}
.menu-toggle svg { width: 16px; height: 16px; }
.menu-toggle .i-close { display: none; }
.site-header.is-open .menu-toggle .i-open { display: none; }
.site-header.is-open .menu-toggle .i-close { display: block; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.mobile-menu {
	display: none;
	border-top: 1px solid var(--border);
	padding: 12px 0 24px;
}
.site-header.is-open .mobile-menu { display: block; }
.site-header.is-open { border-bottom-color: var(--border); background: var(--bg); }
.mobile-menu ul { list-style: none; padding: 0; }
.mobile-menu li a {
	display: block;
	padding: 14px 0;
	border-bottom: 1px solid var(--border);
	font-family: var(--font-title);
	font-size: 18px;
}
.mobile-menu .btn-group { margin-top: 20px; }
.mobile-menu .btn-group .btn { flex: 1; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

/* ---------- Cabeça de seção ---------- */
.section-intro { max-width: 46em; margin-bottom: 48px; }
.section-intro .t-lead { margin-top: 16px; }
.section-intro.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- As 3 frentes ---------- */
.fronts { display: grid; gap: 40px; }
@media (min-width: 900px) {
	.fronts { grid-template-columns: repeat(3, 1fr); gap: 0; }
	.front { padding: 0 32px; border-left: 1px solid var(--border); }
	.front:first-child { padding-left: 0; border-left: 0; }
	.front:last-child { padding-right: 0; }
}
.front { display: flex; flex-direction: column; }
.front .eyebrow { margin-bottom: 16px; }
.front h3 { margin-bottom: 12px; }
.front p { color: var(--text-2); }
.front .tags {
	list-style: none;
	padding: 0;
	margin: 20px 0 28px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.front .tags li {
	padding: 4px 10px;
	border: 1px solid var(--border);
	border-radius: 999px;
	font-size: 13px;
	color: var(--text-2);
}
.front .link-arrow { margin-top: auto; align-self: flex-start; }
.fronts-foot { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.fronts-foot p { color: var(--text-2); }

/* ---------- Produto (texto + print grande) ---------- */
.product { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .product { grid-template-columns: 1fr 1.35fr; gap: 64px; } }
.checklist { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; }
.checklist svg { width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }
.product-shot {
	aspect-ratio: 16 / 10;
	border: 1px solid var(--border);
	border-radius: 16px;
	background: var(--surface);
	overflow: hidden;
	display: grid;
	place-items: center;
}
.product-shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.product-next { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 14px; color: var(--text-2); }
.pill-tag {
	padding: 2px 8px;
	border: 1px solid var(--border);
	border-radius: 999px;
	font-family: var(--font-mono);
	font-weight: 500;
	font-size: 10px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--text-2);
}

/* ---------- Números (estilo x.ai, com divisórias) ---------- */
.stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}
/* Números: as linhas de cima e de baixo envolvem o conteúdo */
/* Números: sem espaço em cima (a dobra anterior já dá o espaço) */
.section.section-stats { padding-top: 0; }
.stats .stat { padding: 32px 20px 32px 0; }
.stats .stat:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--border); }
.stats .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
@media (min-width: 900px) {
	.stats { grid-template-columns: repeat(4, 1fr); }
	.stats .stat { padding: 40px 24px; border-left: 1px solid var(--border); }
	.stats .stat:first-child { padding-left: 0; border-left: 0; }
	.stats .stat:nth-child(n+3) { border-top: 0; }
}

/* ---------- Depoimentos ---------- */
.quote-feature { max-width: 52em; margin-bottom: 56px; }
.quote-feature blockquote {
	margin: 0;
	font-family: var(--font-title);
	font-weight: 400;
	font-size: clamp(21px, 0.9vw + 16px, 28px);
	line-height: 1.45;
	letter-spacing: -0.01em;
	text-wrap: pretty;
}
.quote-author { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.quote-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.quote-author strong { display: block; font: 500 15px/1.3 var(--font-title); }
.quote-author span { font-size: 14px; color: var(--text-2); }
/* Trilho horizontal: desliza no dedo/trackpad, setas no computador, sem rolagem automática */
.quotes {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 82%;
	gap: 16px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding-bottom: 4px;
}
.quotes::-webkit-scrollbar { display: none; }
.quotes > * { scroll-snap-align: start; }
@media (min-width: 640px) { .quotes { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (min-width: 1024px) { .quotes { grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; } }
.slider-nav { display: flex; gap: 8px; }
.slider-nav button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--border-strong);
	border-radius: 50%;
	background: transparent;
	color: var(--text);
	cursor: pointer;
	transition: border-color var(--ease), opacity var(--ease);
}
.slider-nav button:hover { border-color: var(--text); }
.slider-nav button:disabled { opacity: .35; cursor: default; border-color: var(--border); }
.slider-nav svg { width: 16px; height: 16px; }
@media (max-width: 639px) { .slider-nav { display: none; } }
.quote-card {
	display: flex;
	flex-direction: column;
	padding: 28px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
}
.quote-card blockquote { margin: 0; font-size: 15px; line-height: 1.6; }
.quote-card .quote-author { margin-top: auto; padding-top: 24px; }
.quote-card .quote-author img { width: 40px; height: 40px; }

/* ---------- CTA final (dois caminhos, estilo x.ai) ---------- */
.choose { display: grid; gap: 16px; }
@media (min-width: 768px) { .choose { grid-template-columns: 1fr 1fr; } }
.choose-card {
	display: flex;
	flex-direction: column;
	padding: 32px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
}
.choose-card h3 { font-family: var(--font-title); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; }
.choose-card > p { margin-top: 6px; color: var(--text-2); }
.choose-card .checklist { margin: 24px 0 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.choose-card .checklist svg { color: var(--text-2); }
.choose-card .btn { width: 100%; margin-top: auto; }
.choose-card .microcopy { text-align: center; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 40;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	/* Verde oficial do WhatsApp: única cor fora da paleta, pelo reconhecimento imediato */
	background: #25D366;
	color: #FFFFFF;
	transition: transform var(--ease), bottom var(--ease), background-color var(--ease);
}
.wa-float:hover { transform: translateY(-2px); background: #1EBE5A; }
.wa-float svg { width: 28px; height: 28px; }
body.has-cookie-banner .wa-float { bottom: 172px; }
@media (min-width: 640px) { body.has-cookie-banner .wa-float { bottom: 20px; } }

/* ---------- Aviso de cookies ---------- */
.cookie-banner {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 60;
	padding: 20px;
	background: var(--bg);
	border: 1px solid var(--border-strong);
	border-radius: 14px;
	font-size: 14px;
	color: var(--text-2);
}
@media (min-width: 640px) { .cookie-banner { right: auto; max-width: 400px; } }
.cookie-banner a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner .btn-group { margin-top: 16px; }

/* ---------- Lista de soluções (estilo x.ai/solutions) ---------- */
.sol-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .sol-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sol-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.sol-card {
	display: flex;
	flex-direction: column;
	padding: 32px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	transition: border-color var(--ease);
}
.sol-card:hover { border-color: var(--border-strong); }
.sol-card h2 {
	font-family: var(--font-title);
	font-weight: 500;
	font-size: 22px;
	line-height: 1.3;
	letter-spacing: -0.01em;
}
.sol-card p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.sol-card .more {
	margin-top: auto; /* alinha o link na base quando um card da linha é mais alto */
	padding-top: 24px;
	font-family: var(--font-title);
	font-weight: 500;
	font-size: 14px;
	color: var(--text-2);
	transition: color var(--ease);
}
.sol-card .more span { display: inline-block; transition: transform var(--ease); }
.sol-card:hover .more { color: var(--text); }
.sol-card:hover .more span { transform: translateX(3px); }
.sol-card.is-dashed { background: transparent; border-style: dashed; border-color: var(--border-strong); }
@media (max-width: 699px) {
	.sol-card { padding: 28px; }
}
.sol-card.is-dashed .more { color: var(--accent); }

/* ---------- Página de solução (estilo x.ai/grok/business) ---------- */
.page-hero { padding: 64px 0 0; }
@media (min-width: 768px) { .page-hero { padding-top: 96px; } }
.page-hero-split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .page-hero-split { grid-template-columns: 1fr 1.1fr; gap: 64px; } }
.page-hero h1 { margin: 4px 0 24px; }
.page-hero .btn-group { margin-top: 32px; }
.crumb a { color: var(--text-2); transition: color var(--ease); }
.crumb a:hover { color: var(--text); }
.seals { list-style: none; padding: 0; margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.seals li { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-2); }
.seals svg { width: 14px; height: 14px; }

.feature-head { display: grid; gap: 16px; margin-bottom: 40px; }
@media (min-width: 900px) { .feature-head { grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; } }
.feature-cards { display: grid; gap: 16px; }
@media (min-width: 900px) { .feature-cards { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.feature-card {
	display: flex;
	flex-direction: column;
	min-height: 340px;
	padding: 28px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
}
.feature-card h3 { font-family: var(--font-title); font-weight: 500; font-size: 18px; line-height: 1.35; }
.feature-card p { margin-top: 6px; color: var(--text-2); }
.feature-card .illus { margin-top: auto; padding-top: 24px; display: grid; place-items: center; height: 170px; }
.feature-card .illus svg { width: 100%; max-width: 240px; height: 140px; color: var(--text-2); }
@media (max-width: 899px) {
	.feature-card { min-height: 0; }
	.feature-card .illus { height: 150px; padding-top: 20px; }
}
.illus .ln { fill: none; stroke: var(--border-strong); stroke-width: 1.2; }
.illus .ln-dash { fill: none; stroke: var(--text-2); stroke-width: 1.2; stroke-dasharray: 3 4; animation: flow-dash 1.4s linear infinite; }
.illus .dot { fill: var(--bg); stroke: var(--border-strong); stroke-width: 1.2; }
.illus .dot-on { fill: var(--accent); }
.illus .box { fill: var(--bg); stroke: var(--border-strong); stroke-width: 1.2; }
.illus .bar { fill: var(--border-strong); }
.illus .bar-on { fill: var(--accent); }
.illus .pulse { transform-box: fill-box; transform-origin: center; animation: illus-pulse 2.4s ease-in-out infinite; }
@keyframes illus-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

.alt-rows { display: grid; gap: 96px; }
.alt-row { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) {
	.alt-row { grid-template-columns: 1fr 1.15fr; gap: 64px; }
	.alt-row.reverse > :first-child { order: 2; }
}
.alt-row .t-lead { margin-top: 16px; }
.alt-row .checklist { margin-bottom: 0; }
.mock-frame {
	position: relative;
	padding: 24px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	min-height: 340px;
}
.mock-frame .chat { position: static; max-width: none; height: 300px; }
.mock-frame .chat-body { flex: 1; min-height: 0; overflow: hidden; justify-content: flex-end; }
.mock-frame .msg:not(.show):not(.typing) { display: none; }
.mock-frame .msg.show { animation: msg-in .35s ease; }
.mock-frame .msg.note { max-width: 100%; align-self: stretch; display: flex; gap: 10px; align-items: flex-start; }
.mock-frame .msg.note.show { display: flex; }
.mock-frame .msg.note svg { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; color: var(--accent); }

/* Painel de exemplo desenhado em código (sem dados reais) */
.mock-dash { display: grid; gap: 12px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpi { padding: 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; }
.mock-kpi small { display: block; font-size: 11px; color: var(--text-2); }
.mock-kpi b { display: block; margin-top: 8px; height: 12px; width: 70%; border-radius: 4px; background: var(--text); opacity: .85; }
.mock-kpi:nth-child(2) b { width: 55%; }
.mock-kpi:nth-child(3) b { width: 40%; background: var(--accent); opacity: 1; }
.mock-chart {
	display: flex;
	align-items: flex-end;
	gap: 6%;
	height: 180px;
	padding: 18px 18px 14px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 10px;
}
.mock-chart .pair { flex: 1; display: flex; align-items: flex-end; gap: 4px; height: 100%; }
.mock-chart i {
	flex: 1;
	border-radius: 4px 4px 0 0;
	background: var(--text);
	transform-origin: bottom;
	animation: bar-grow 1.2s ease both;
}
.mock-chart i + i { background: var(--border-strong); }
.mock-chart .pair:last-child i:first-child { background: var(--accent); }
@keyframes bar-grow { from { transform: scaleY(0); } }
.mock-legend { display: flex; gap: 16px; font-size: 12px; color: var(--text-2); }
.mock-legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 2px; background: var(--text); }
.mock-legend span + span::before { background: var(--border-strong); }

/* Ícone nos cards da lista de soluções */
.sol-card .icon { width: 28px; height: 28px; margin-bottom: 28px; color: var(--text); }
.sol-card.is-dashed .icon { color: var(--accent); }

/* Dobra "planilhas espalhadas → uma interface" */
.merge {
	display: grid;
	gap: 24px;
	align-items: center;
	padding: 32px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
}
@media (min-width: 900px) { .merge { grid-template-columns: 1fr 140px 1.15fr; gap: 0; padding: 48px; } }
.merge-files { display: grid; gap: 10px; justify-items: start; }
.merge-file {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 10px;
	font-size: 13px;
	color: var(--text-2);
	animation: file-send 7.5s ease-in-out infinite;
}
.merge-file svg { width: 16px; height: 16px; color: var(--text-2); flex-shrink: 0; }
@media (min-width: 900px) {
	.merge-files { justify-items: end; }
	.merge-file:nth-child(1) { margin-right: 24px; }
	.merge-file:nth-child(3) { margin-right: 36px; }
	.merge-file:nth-child(5) { margin-right: 12px; }
}
@keyframes file-send {
	0%, 100% { opacity: 1; transform: none; border-color: var(--border); }
	8%, 16% { transform: translateX(10px); border-color: var(--accent); }
	24% { opacity: .45; transform: none; border-color: var(--border); }
	88% { opacity: .45; }
}
.merge-arrows { display: none; }
@media (min-width: 900px) { .merge-arrows { display: block; width: 100%; height: 260px; } }
.merge-arrows path { fill: none; stroke: var(--text-2); stroke-width: 1.2; stroke-dasharray: 4 4; animation: flow-dash 1.2s linear infinite; }
.merge-arrows circle { fill: var(--accent); }
.merge-down { justify-self: center; width: 16px; height: 16px; color: var(--text-2); }
@media (min-width: 900px) { .merge-down { display: none; } }
.merge-app {
	display: grid;
	grid-template-columns: 132px 1fr;
	min-height: 260px;
	background: var(--bg);
	border: 1px solid var(--border-strong);
	border-radius: 12px;
	overflow: hidden;
}
.merge-app aside { padding: 14px 10px; border-right: 1px solid var(--border); display: grid; align-content: start; gap: 4px; }
.merge-app aside strong { font: 500 12px var(--font-title); padding: 2px 8px 10px; }
.merge-app aside span {
	padding: 7px 8px;
	border-radius: 7px;
	font-size: 12px;
	color: var(--text-2);
	animation: app-lit 7.5s ease-in-out infinite;
}
@keyframes app-lit {
	0%, 6%, 100% { background: transparent; color: var(--text-2); }
	12%, 22% { background: var(--accent); color: var(--on-accent); }
	30% { background: var(--surface); color: var(--text); }
	90% { background: var(--surface); color: var(--text); }
}
.merge-file:nth-child(2), .merge-app aside span:nth-of-type(2) { animation-delay: 1.2s; }
.merge-file:nth-child(3), .merge-app aside span:nth-of-type(3) { animation-delay: 2.4s; }
.merge-file:nth-child(4), .merge-app aside span:nth-of-type(4) { animation-delay: 3.6s; }
.merge-file:nth-child(5), .merge-app aside span:nth-of-type(5) { animation-delay: 4.8s; }
.merge-app main { padding: 16px; display: grid; gap: 10px; align-content: start; }
.merge-app main .row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.merge-app main .cell { height: 44px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.merge-app main .line { height: 8px; border-radius: 4px; background: var(--border); }
.merge-app main .line.w60 { width: 60%; }
.merge-app main .line.w80 { width: 80%; }
.merge-app main .line.w40 { width: 40%; }
@media (max-width: 479px) { .merge-app { grid-template-columns: 110px 1fr; } .merge { padding: 20px; } }

.checklist-row { margin: 28px 0 0; }
@media (min-width: 900px) { .checklist-row { grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 40px; } }

/* CTA no meio da página: faixa discreta, sem fundo colorido */
.cta-strip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 32px;
	/* mesmo espaço padrão entre dobras, em cima e embaixo */
	margin-top: var(--section);
	padding: 28px 32px;
	border: 1px solid var(--border);
	border-radius: 16px;
}
.cta-strip-title { font-family: var(--font-title); font-weight: 500; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
.cta-strip-text { margin-top: 4px; color: var(--text-2); }
@media (max-width: 599px) {
	.cta-strip { padding: 24px; }
	.cta-strip .btn { width: 100%; }
}

/* ---------- Visuais das páginas de solução ---------- */
.visual-box {
	padding: 28px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
}
@media (min-width: 900px) { .visual-box { padding: 48px; } }

/* Busca no Google: "Sua empresa" sobe para o primeiro resultado */
.serp { max-width: 600px; margin: 0 auto; }
.serp-box {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	margin-bottom: 20px;
	background: var(--bg);
	border: 1px solid var(--border-strong);
	border-radius: 999px;
	font-size: 14px;
	color: var(--text-2);
}
.serp-box svg { width: 16px; height: 16px; flex-shrink: 0; }
.serp-list { position: relative; height: 288px; }
.serp-item {
	position: absolute;
	left: 0;
	right: 0;
	height: 64px;
	padding: 12px 16px;
	display: grid;
	align-content: center;
	gap: 8px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 12px;
	animation: serp-down 8s ease-in-out infinite;
}
.serp-item:nth-child(1) { top: 0; }
.serp-item:nth-child(2) { top: 72px; }
.serp-item:nth-child(3) { top: 144px; }
.serp-item i { display: block; height: 8px; border-radius: 4px; background: var(--border); }
.serp-item i:first-child { width: 55%; height: 10px; background: var(--border-strong); }
.serp-item i:last-child { width: 80%; }
.serp-item.you {
	top: 216px;
	z-index: 1;
	border-color: var(--accent);
	animation: serp-up 8s ease-in-out infinite;
}
.serp-item.you strong { font: 500 15px var(--font-title); color: var(--accent); }
.serp-item.you span { font-size: 12px; color: var(--text-2); }
@keyframes serp-up {
	0%, 18% { top: 216px; }
	42%, 86% { top: 0; }
	100% { top: 216px; }
}
@keyframes serp-down {
	0%, 18% { transform: none; }
	42%, 86% { transform: translateY(72px); }
	100% { transform: none; }
}

/* Funil (kanban): o cliente anda de etapa em etapa */
.kanban { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .kanban { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
.kcol {
	display: grid;
	align-content: start;
	gap: 8px;
	min-height: 220px;
	padding: 12px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 12px;
}
.kcol h3 { font: 500 13px var(--font-title); color: var(--text-2); margin-bottom: 4px; }
.kcard { height: 40px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.kcard.live {
	display: flex;
	align-items: center;
	padding: 0 12px;
	font-size: 13px;
	color: var(--text);
	border-color: var(--accent);
	opacity: 0;
	animation: kan-step 8s ease-in-out infinite;
}
.kcol:nth-child(2) .kcard.live { animation-delay: 2s; }
.kcol:nth-child(3) .kcard.live { animation-delay: 4s; }
.kcol:nth-child(4) .kcard.live { animation-delay: 6s; background: var(--accent); color: var(--on-accent); }
@keyframes kan-step {
	0% { opacity: 0; transform: translateX(-10px); }
	4%, 22% { opacity: 1; transform: none; }
	26%, 100% { opacity: 0; transform: none; }
}

/* Site de exemplo com botão de contato pulsando */
.mock-site { position: relative; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.ms-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-bottom: 1px solid var(--border); }
.ms-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
/* Pontos da janela nas cores do macOS (vale para .ms-bar e .browser-bar) */
.ms-bar i:nth-child(1), .browser-bar .dots i:nth-child(1) { background: var(--mac-red); }
.ms-bar i:nth-child(2), .browser-bar .dots i:nth-child(2) { background: var(--mac-yellow); }
.ms-bar i:nth-child(3), .browser-bar .dots i:nth-child(3) { background: var(--mac-green); }
.ms-body { display: grid; gap: 12px; padding: 22px; }
.ms-hero { height: 96px; border-radius: 8px; background: var(--surface); }
.ms-line { height: 8px; border-radius: 4px; background: var(--border); }
.ms-line.w60 { width: 60%; } .ms-line.w80 { width: 80%; } .ms-line.w40 { width: 40%; }
.ms-btn { width: 132px; height: 32px; border-radius: 999px; background: var(--accent); animation: ms-pulse 2.4s ease-in-out infinite; }
.ms-wa {
	position: absolute;
	right: 16px;
	bottom: 16px;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #25D366;
	color: #FFFFFF;
	animation: wa-pulse 2.4s ease-in-out infinite;
}
.ms-wa svg { width: 22px; height: 22px; }
@keyframes wa-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); transform: none; }
	50% { box-shadow: 0 0 0 10px rgba(37, 211, 102, .22); transform: scale(1.06); }
}
@keyframes ms-pulse {
	0%, 100% { box-shadow: 0 0 0 0 transparent; transform: none; }
	50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 18%, transparent); transform: scale(1.04); }
}

/* Vitrine de loja virtual */
.mock-shop-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mock-shop-top .search { flex: 1; height: 30px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); }
.mock-shop-top .cart { position: relative; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: var(--bg); color: var(--text); }
.mock-shop-top .cart svg { width: 16px; height: 16px; }
.mock-shop-top .cart b {
	position: absolute; top: -4px; right: -4px;
	min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 999px; background: var(--accent); color: var(--on-accent);
	font: 500 11px/18px var(--font-text); text-align: center;
	animation: cart-pop 3s ease-in-out infinite;
}
@keyframes cart-pop { 0%, 60%, 100% { transform: none; } 70% { transform: scale(1.3); } }
.mock-shop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mp { display: grid; gap: 8px; padding: 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; }
.mp .img { aspect-ratio: 1; border-radius: 6px; background: var(--surface); }
.mp .l { height: 7px; border-radius: 4px; background: var(--border); width: 80%; }
.mp .price { height: 9px; border-radius: 4px; background: var(--text); width: 45%; opacity: .8; }
.mp .add { height: 24px; border: 1px solid var(--border); border-radius: 999px; }
.mp.is-added .add { background: var(--accent); border-color: var(--accent); animation: ms-pulse 3s ease-in-out infinite; }

.mock-frame .flow { inset: 24px; width: calc(100% - 48px); height: calc(100% - 48px); }

/* Cases relacionados: 2 colunas */
@media (min-width: 640px) { .posts.cols-2 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}

/* =========================================================
   Portfólio (lista estilo vercel.com/customers + página de case)
   ========================================================= */
.section.section-list { padding-top: 56px; }

/* Filtros */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	padding: 0 16px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: transparent;
	color: var(--text-2);
	font-family: var(--font-title);
	font-weight: 500;
	font-size: 14px;
	cursor: pointer;
	transition: border-color var(--ease), color var(--ease), background var(--ease);
}
.chip span { font-family: var(--font-mono); font-size: 11px; color: var(--text-2); }
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip[aria-pressed="true"] { border-color: var(--text); color: var(--text); background: var(--surface); }
.chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Cards de case */
.work-grid { display: grid; gap: 48px 20px; }
@media (min-width: 640px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .work-grid { grid-template-columns: repeat(3, 1fr); gap: 48px 24px; } }
/* Case em destaque no topo do Portfólio */
.work-card.is-featured .meta { margin-top: 18px; }
.work-card.is-featured .title { font-size: 24px; }
.work-card .title .arrow { display: inline-block; color: var(--text-2); transition: transform var(--ease), color var(--ease); }
.work-card:hover .title .arrow { transform: translateX(5px); color: var(--accent); }
.work-card { display: block; }
.work-card[hidden] { display: none; }
.work-card .thumb {
	aspect-ratio: 4 / 3;
	border: 1px solid var(--border);
	border-radius: 16px;
	overflow: hidden;
	background: var(--surface);
}
.work-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.work-card:hover .thumb img { transform: scale(1.03); }
.work-card .meta {
	display: block;
	margin: 20px 0 8px;
	font-family: var(--font-mono);
	font-weight: 500;
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--text-2);
}
.work-card .title {
	font-family: var(--font-title);
	font-weight: 500;
	font-size: 22px;
	line-height: 1.3;
	letter-spacing: -0.01em;
	transition: color var(--ease);
}
.work-card p { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.work-card:hover .title { color: var(--text-2); }

/* Página de case */
@media (min-width: 1024px) { .case-intro { max-width: none; } .case-intro h1 { max-width: 20em; } .case-intro .t-lead { max-width: 40em; } }
.case-cover {
	margin-top: 8px;
	aspect-ratio: 4 / 3; /* mesma proporção das capas (1920x1440): imagem inteira, sem corte */
	border: 1px solid var(--border);
	border-radius: 16px;
	overflow: hidden;
	background: var(--surface);
}
.case-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }

.case-body { display: grid; gap: 48px; }
@media (min-width: 1024px) {
	.case-body { grid-template-columns: 280px 1fr; gap: 80px; align-items: start; }
	.case-facts { position: sticky; top: 112px; }
}
.case-facts dl { margin: 0 0 28px; display: grid; }
.case-facts dl > div { padding: 14px 0; border-top: 1px solid var(--border); }
.case-facts dl > div:last-child { border-bottom: 1px solid var(--border); }
.case-facts dt {
	font-family: var(--font-mono);
	font-weight: 500;
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--text-2);
}
.case-facts dd { margin: 4px 0 0; font-size: 16px; }

.case-story { display: grid; gap: 56px; max-width: 46em; }
.case-block > p { font-size: 18px; line-height: 1.65; color: var(--text-2); }
.case-block > p + p { margin-top: 16px; }
.case-block .t-h3 { margin-bottom: 16px; }
.case-block .checklist { margin: 0; }
.case-block .checklist li { font-size: 17px; }
.case-stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	margin-top: 32px;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}
.case-stats .stat { padding: 28px 20px 28px 0; }
.case-stats .stat + .stat { padding-left: 20px; border-left: 1px solid var(--border); }
.case-stats .cap { color: var(--text-2); }

/* Página inteira dentro de uma janela com rolagem */
.case-scroll {
	border: 1px solid var(--border);
	border-radius: 16px;
	overflow: hidden;
	background: var(--surface);
}
.browser-bar {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--border);
}
.browser-bar .dots { display: flex; gap: 6px; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.browser-bar .url {
	flex: 0 1 320px;
	margin: 0 auto;
	padding: 4px 14px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--bg);
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--text-2);
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.browser-bar::after { content: ""; width: 42px; } /* equilibra os pontos e centraliza o endereço */
.browser-bar .browser-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.browser-bar .browser-progress b { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.case-scroll-view { max-height: 720px; overflow-y: auto; overscroll-behavior: contain; }
.case-scroll-view:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.case-scroll-view img { display: block; width: 100%; height: auto; }
@media (max-width: 767px) { .case-scroll-view { max-height: 520px; } }

/* Próximo projeto (fim do case) */
.next-case {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 28px 0;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}
.next-text { display: grid; gap: 6px; }
.next-text .eyebrow { margin: 0; }
.next-name {
	font-family: var(--font-title);
	font-weight: 400;
	font-size: clamp(28px, 1.5vw + 20px, 40px);
	line-height: 1.15;
	letter-spacing: -0.02em;
}
.next-name .arrow { display: inline-block; color: var(--text-2); transition: transform var(--ease), color var(--ease); }
.next-case:hover .next-name .arrow { transform: translateX(6px); color: var(--accent); }
.next-kind { font-size: 15px; color: var(--text-2); }
.next-thumb {
	flex: 0 0 auto;
	width: 200px;
	aspect-ratio: 4 / 3;
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
	background: var(--surface);
}
.next-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.next-case:hover .next-thumb img { transform: scale(1.04); }
@media (max-width: 639px) { .next-thumb { width: 104px; } }
.next-all { margin-top: 24px; }
.case-stats.is-single { grid-template-columns: 1fr; }

/* Depoimento dentro do case */
.case-quote { margin: 32px 0 0; padding: 28px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.case-quote blockquote {
	margin: 0;
	font-family: var(--font-title);
	font-weight: 400;
	font-size: 20px;
	line-height: 1.5;
	letter-spacing: -0.01em;
	text-wrap: pretty;
}
.case-quote .quote-author { margin-top: 24px; }

/* Galeria de artes (cases de redes sociais) */
.case-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .case-gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .case-gallery { grid-template-columns: repeat(5, 1fr); } }
.case-gallery .g-item {
	aspect-ratio: 4 / 5;
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
	background: var(--surface);
}
.case-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.case-gallery .g-item:hover img { transform: scale(1.03); }

/* Lightbox da galeria */
.case-gallery .g-item { display: block; cursor: zoom-in; }
.case-gallery .g-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lightbox {
	width: 100vw;
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #F5F5F7;
}
.lightbox::backdrop { background: rgba(10, 10, 12, .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 14px; }
.lightbox img {
	max-width: min(92vw, 720px);
	max-height: calc(100dvh - 140px);
	width: auto;
	height: auto;
	border-radius: 12px;
	user-select: none;
	-webkit-user-drag: none;
}
.lightbox figcaption { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: #9A9AA5; }
.lightbox button {
	position: absolute;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 50%;
	background: rgba(255, 255, 255, .06);
	color: #F5F5F7;
	cursor: pointer;
	transition: background var(--ease), border-color var(--ease);
}
.lightbox button:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .4); }
.lightbox button:focus-visible { outline: 2px solid #F5F5F7; outline-offset: 2px; }
.lightbox button svg { width: 20px; height: 20px; }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
@media (max-width: 767px) {
	.lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 20px; transform: none; }
	.lightbox .lb-prev { left: calc(50% - 60px); }
	.lightbox .lb-next { right: calc(50% - 60px); }
	.lightbox img { max-height: calc(100dvh - 180px); }
}

/* =========================================================
   Blog (lista estilo x.ai/news + post)
   ========================================================= */
.posts.is-blog { gap: 48px 24px; }
@media (min-width: 1024px) { .posts.is-blog { grid-template-columns: repeat(3, 1fr); } }
.posts.is-blog .thumb { aspect-ratio: 3 / 2; }
.posts.is-blog .title { font-size: 19px; }
.post-card[hidden], .blog-feature[hidden] { display: none; }

/* Post em destaque */
.blog-feature { display: grid; gap: 24px; margin-bottom: 64px; padding-bottom: 64px; border-bottom: 1px solid var(--border); }
@media (min-width: 1024px) { .blog-feature { grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; } }
.blog-feature .thumb { aspect-ratio: 3 / 2; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); }
.blog-feature .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.blog-feature:hover .thumb img { transform: scale(1.03); }
.blog-feature .meta { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.blog-feature .title { margin: 14px 0 14px; font-family: var(--font-title); font-weight: 400; font-size: clamp(26px, 1.4vw + 18px, 36px); line-height: 1.2; letter-spacing: -0.02em; transition: color var(--ease); }
.blog-feature:hover .title { color: var(--text-2); }
.blog-feature p { color: var(--text-2); line-height: 1.6; }
.blog-feature .link-arrow { margin-top: 24px; }

/* Post */
.post-head { max-width: 720px; margin: 0 auto; } /* mesma coluna do texto (.prose) */
.post-title {
	margin: 4px 0 24px;
	font-family: var(--font-title);
	font-weight: 400;
	font-size: clamp(30px, 1.8vw + 20px, 44px);
	line-height: 1.15;
	letter-spacing: -0.025em;
}
.post-meta { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-2); }
.post-meta img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.post-meta strong { font-weight: 500; color: var(--text); }
.post-meta .sep { margin: 0 8px; }
.post-cover {
	max-width: 1040px;
	margin: 40px auto 0;
	aspect-ratio: 3 / 2;
	border: 1px solid var(--border);
	border-radius: 16px;
	overflow: hidden;
	background: var(--surface);
}
.post-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.section.post-section { padding-top: 64px; }

/* Texto do post (leitura longa) */
.prose { max-width: 720px; margin: 0 auto; font-size: 18px; line-height: 1.75; color: var(--text); }
.prose > * + * { margin-top: 20px; }
.prose p { text-wrap: pretty; }
.prose h2 { margin-top: 48px; font-family: var(--font-title); font-weight: 500; font-size: clamp(22px, 1vw + 18px, 28px); line-height: 1.3; letter-spacing: -0.015em; }
.prose h3 { margin-top: 32px; font-family: var(--font-title); font-weight: 500; font-size: 20px; line-height: 1.35; }
.prose h2 + *, .prose h3 + * { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 0; list-style: none; display: grid; gap: 10px; }
.prose li { position: relative; padding-left: 24px; }
.prose li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 500; }
.prose blockquote { margin: 32px 0; padding-left: 20px; border-left: 2px solid var(--accent); color: var(--text-2); }
.prose .post-note { font-size: 14px; color: var(--text-2); }
.prose .post-video { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin: 32px 0; }
.prose .post-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose .post-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 32px; }
@media (min-width: 768px) { .prose .post-gallery { grid-template-columns: repeat(3, 1fr); } }
.prose .post-gallery .g-item { display: block; aspect-ratio: 4 / 5; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); cursor: zoom-in; }
.prose .post-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.prose .post-gallery .g-item:hover img { transform: scale(1.03); }

/* Compartilhar + CTA do post */
.post-share { max-width: 720px; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.post-share .eyebrow { margin: 0 8px 0 0; }
.post-share a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 50%; color: var(--text-2); transition: border-color var(--ease), color var(--ease); }
.post-share a:hover { border-color: var(--border-strong); color: var(--accent); }
.post-share svg { width: 18px; height: 18px; }
.cta-strip.post-cta { max-width: 720px; margin: 40px auto 0; }
.cta-strip-link { margin-top: 14px; }

/* =========================================================
   Sobre (modelo x.ai/company)
   ========================================================= */
/* Pessoa logo depois do topo: o topo já dá o espaço de cima */
.section.section-person { padding-top: 16px; }

/* Cabeçalho à esquerda, conteúdo à direita */
.split-head { display: grid; gap: 40px; }
@media (min-width: 1024px) { .split-head { grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: start; } }
.split-head .t-lead { margin-top: 16px; }

/* Linha do tempo */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: 24px;
	align-items: baseline;
	padding: 22px 0;
	border-top: 1px solid var(--border);
}
.timeline li:last-child { border-bottom: 1px solid var(--border); }
.timeline .year { font-family: var(--font-title); font-weight: 300; font-size: 32px; line-height: 1; letter-spacing: -0.03em; }
.timeline p { font-size: 17px; line-height: 1.55; color: var(--text-2); }
.timeline .confirm { margin-left: 6px; vertical-align: 1px; }

/* Quem está por trás */
.person { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .person { grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: stretch; } .person-text { align-self: center; } }

/* Cartão de perfil: foto (preenche a altura do texto) + faixa com nome e redes */
.person-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--border);
	border-radius: 16px;
	background: var(--surface);
	overflow: hidden;
}
.person-photo {
	position: relative;
	flex: 1;
	min-height: 360px;
	aspect-ratio: 4 / 5;
	display: grid;
	place-items: center;
	overflow: hidden;
}
@media (min-width: 900px) { .person-photo { aspect-ratio: auto; } }
.person-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; } /* foco no rosto */
.person-mark { width: 38%; height: auto; color: var(--logo, var(--accent)); opacity: .9; }
.person-photo .confirm { position: absolute; left: 16px; bottom: 16px; }
.person-card-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 20px;
	border-top: 1px solid var(--border);
	background: var(--surface); /* mesmo cinza dos cards (depoimentos, soluções) */
}
.person-card-foot strong { display: block; font-family: var(--font-title); font-weight: 500; font-size: 16px; }
.person-card-foot span { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.person-text .t-h2 { margin-top: 4px; }
.person-role { margin: 6px 0 24px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.person-text > p:not(.person-role) { font-size: 18px; line-height: 1.7; color: var(--text-2); }
.person-text > p + p { margin-top: 16px; }
.person-text .link-arrow { margin-top: 28px; }

/* Princípios */
.principles { display: grid; gap: 32px; }
@media (min-width: 640px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
	.principles { grid-template-columns: repeat(4, 1fr); gap: 0; }
	.principle { padding: 0 28px; border-left: 1px solid var(--border); }
	.principle:first-child { padding-left: 0; border-left: 0; }
	.principle:last-child { padding-right: 0; }
}
.principle .eyebrow { margin-bottom: 16px; }
.principle .t-h3 { margin-bottom: 10px; }
.principle p { color: var(--text-2); }
/* Intro com texto de apoio em linhas longas (ex.: Como trabalhamos, no Sobre) */
.section-intro.is-wide { max-width: none; }
.section-intro.is-wide .t-lead { max-width: 58em; text-wrap: balance; }

/* Política de privacidade */
.legal-date { margin-top: 16px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.post-head .t-lead { margin-top: -8px; }

/* Página 404 */
.hero.hero-404 { padding-bottom: var(--section); }
.links-404 { max-width: 560px; margin: 56px auto 0; text-align: left; }

/* =========================================================
   Landing pages de anúncio (lp-*)
   ========================================================= */
.lp-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lp-header .logo { display: inline-flex; }

/* Formulário no hero */
.lp-form {
	padding: 28px;
	border: 1px solid var(--border);
	border-radius: 16px;
	background: var(--surface);
	gap: 16px;
	scroll-margin-top: 96px;
}
.lp-form-title { font-family: var(--font-title); font-weight: 500; font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; }
.lp-form-text { margin-top: 4px; font-size: 15px; color: var(--text-2); }
.lp-form .input { background: var(--bg); }
.lp-form textarea.lp-msg { min-height: 84px; }
.lp-form .btn { width: 100%; }
.lp-form .form-note a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1024px) { .lp-hero .page-hero-split { align-items: start; } .lp-hero .page-hero-split > div:first-child { padding-top: 32px; } }

/* Princípios em 3 colunas (dor da LP) */
@media (min-width: 1024px) { .principles.cols-3 { grid-template-columns: repeat(3, 1fr); } }

/* O que está incluído */
.lp-grid { display: grid; gap: 28px 40px; }
@media (min-width: 768px) { .lp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .lp-grid { grid-template-columns: repeat(3, 1fr); } }
.lp-item { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding-top: 24px; border-top: 1px solid var(--border); }
.lp-item svg { width: 20px; height: 20px; margin-top: 3px; color: var(--accent); }
.lp-item h3 { font-family: var(--font-title); font-weight: 500; font-size: 18px; line-height: 1.35; }
.lp-item p { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--text-2); }

/* Perguntas frequentes */
.faq { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 0;
	font-family: var(--font-title);
	font-weight: 500;
	font-size: 17px;
	cursor: pointer;
	list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex-shrink: 0; font-weight: 300; font-size: 24px; line-height: 1; color: var(--text-2); transition: transform var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.faq-item p { padding: 0 32px 22px 0; color: var(--text-2); line-height: 1.65; }
.split-head .t-lead a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* CTA final e rodapé da LP */
.lp-final { text-align: center; }
.lp-final .t-display { max-width: 16em; margin: 0 auto; }
.lp-final .btn-group { justify-content: center; margin-top: 36px; }
.lp-final .microcopy { margin-top: 18px; }
.lp-final .microcopy a { text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 1024px) { .lp-hero .page-hero-split { grid-template-columns: 1fr 420px; gap: 72px; } }

/* LP no modo diagnóstico: card com os passos no lugar do formulário */
.lp-diag { display: grid; gap: 20px; }
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; }
.lp-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--border); }
.lp-steps li:last-child { border-bottom: 1px solid var(--border); }
.lp-steps li { grid-template-columns: 22px 1fr; }
.lp-steps svg { width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.lp-steps strong { font-family: var(--font-title); font-weight: 500; font-size: 16px; }
.lp-steps p { margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
/* Grade de cases com 2 itens */
@media (min-width: 1024px) { .work-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }

/* Texto jurídico (política de privacidade): títulos discretos, cara de documento */
.prose-legal { font-size: 16px; line-height: 1.7; }
.prose-legal > * + * { margin-top: 14px; }
.prose-legal h2 { margin-top: 36px; font-size: 17px; font-weight: 500; letter-spacing: 0; }
.prose-legal h2:first-child { margin-top: 0; }
.prose-legal h2 + * { margin-top: 8px; }
.prose-legal p { color: var(--text-2); }
.prose-legal li { color: var(--text-2); }
.prose-legal strong { color: var(--text); }
/* Título da história acompanha a rolagem enquanto a linha do tempo passa */
@media (min-width: 1024px) { .split-head > div:first-child { position: sticky; top: 112px; } }
.timeline p a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   Diagnóstico PRO 360° (uma pergunta por tela)
   ========================================================= */
.diag { padding: 56px 0 var(--section); }
@media (min-width: 768px) { .diag { padding-top: 88px; } }
.diag-wrap { max-width: 720px; }
.diag-screen { display: none; }
.diag-screen.is-active { display: block; animation: diag-in .35s ease both; }
@keyframes diag-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .diag-screen.is-active { animation: none; } }

/* Abertura */
.diag-screen[data-screen="intro"] .badge { margin-bottom: 20px; }
.diag-screen[data-screen="intro"] .t-lead { margin-top: 20px; }
.diag-screen[data-screen="intro"] .btn-group { margin-top: 32px; }
.diag-screen[data-screen="intro"] .form-note { margin-top: 16px; }

/* Pergunta */
.diag-progress i { width: 0; transition: width .35s ease; }
.diag-meta { display: flex; justify-content: space-between; gap: 12px; margin: 14px 0 40px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.diag-q { border: 0; padding: 0; margin: 0; min-width: 0; }
.diag-question {
	display: block;
	width: 100%;
	padding: 0;
	margin-bottom: 28px;
	font-family: var(--font-title);
	font-weight: 400;
	font-size: clamp(24px, 1.6vw + 16px, 32px);
	line-height: 1.25;
	letter-spacing: -0.02em;
	text-wrap: balance;
	outline: none;
}
.diag-options { display: grid; gap: 10px; }
.diag-options .choice { padding: 18px 20px; font-size: 16px; }
.diag-back { margin-top: 28px; padding: 0; border: 0; background: none; font-family: var(--font-title); font-weight: 500; font-size: 15px; color: var(--text-2); cursor: pointer; }
.diag-back:hover { color: var(--text); }

/* Transição de etapa */
.diag-stage-done { text-align: center; padding: 48px 0; }
.diag-check { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); }
.diag-check svg { width: 24px; height: 24px; }
.diag-stage-done .t-h2 { margin-top: 8px; }
.diag-stage-done .t-lead { margin: 12px auto 0; }
.diag-stage-done .btn-group { justify-content: center; margin-top: 28px; }

/* Status (semáforo discreto: ponto colorido + texto) */
.diag-status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.diag-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.diag-status.is-critico::before { background: #E5484D; }
.diag-status.is-desenvolvendo::before { background: #F5A524; }
.diag-status.is-estruturado::before { background: #30A46C; }

/* Resultado */
.diag-result > .diag-status { padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); }
.diag-result > .t-display { margin-top: 20px; }
.diag-result > .t-lead { margin-top: 16px; }
.diag-score { display: grid; gap: 32px; margin-top: 48px; padding: 32px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
@media (min-width: 640px) { .diag-score { grid-template-columns: 180px 1fr; gap: 40px; align-items: center; } }
.diag-score .num { display: flex; align-items: baseline; gap: 4px; }
.diag-score .num small { font-size: .4em; color: var(--text-2); letter-spacing: 0; }
.diag-score .cap { color: var(--text-2); }
.diag-areas { display: grid; gap: 20px; }
.diag-area-head { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.diag-area-head strong { font-family: var(--font-title); font-weight: 500; }
.diag-area-head .pts { font-family: var(--font-mono); font-size: 13px; color: var(--text-2); }
.diag-bar { height: 6px; margin: 8px 0 8px; border-radius: 6px; background: var(--border); overflow: hidden; }
.diag-bar i { display: block; width: 0; height: 100%; border-radius: 6px; background: var(--accent); transition: width .8s ease; }
.diag-area .diag-status { font-size: 11px; }

.diag-start { margin-top: 48px; }
.diag-start .t-h3 { margin-bottom: 8px; }
.diag-start-item { padding: 20px 0; border-bottom: 1px solid var(--border); }
.diag-start-item strong { font-family: var(--font-title); font-weight: 500; }
.diag-start-item p { margin-top: 4px; color: var(--text-2); }
.diag-start-item .links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 12px; }

.diag-form, .diag-sent { margin-top: 48px; }
.diag-sent { padding: 28px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.diag-sent a { text-decoration: underline; text-underline-offset: 3px; }
.diag-again { margin-top: 24px; text-align: center; }
.person-card-foot .social { margin-top: 0; flex-shrink: 0; }

/* Projetos próprios (Sobre): mesmo padrão dos cards do portfólio, com números e links */
.project-card .thumb { aspect-ratio: 4 / 3; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); display: grid; place-items: center; }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-card .meta { display: block; margin: 20px 0 8px; font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.project-card .title { font-family: var(--font-title); font-weight: 500; font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; }
.project-card p { margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.project-stat { display: flex; align-items: baseline; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.project-stat b { font-family: var(--font-title); font-weight: 300; font-size: 28px; letter-spacing: -0.02em; }
.project-stat span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.project-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 20px; }
/* números e links alinhados pela base, mesmo com textos de tamanhos diferentes */
.project-card { display: flex; flex-direction: column; }
.project-card p { margin-bottom: 20px; }
.project-stat { margin-top: auto; }

/* =========================================================
   Página da bio do Instagram (links.html · /links)
   ========================================================= */
/* Topo fixo no lugar (não acompanha a rolagem) e com respiro acima do logo */
.links-header { position: static; }
.links-header .container { justify-content: center; height: auto; padding-top: 40px; }
@media (min-width: 768px) { .links-header .container { padding-top: 56px; } }
.links-header .logo .logo-full { display: block; }
.links-header .logo .logo-mark { display: none; }
.links-hero { padding-top: 48px; }
@media (min-width: 1024px) { .links-hero h1 { max-width: none; } }
@media (min-width: 768px) { .links-hero { padding-top: 72px; } }
.is-links .blog-feature { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.links-sol { gap: 10px; }
@media (min-width: 768px) { .links-sol { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px) {
	.links-sol a { flex-wrap: wrap; row-gap: 2px; }
	.links-sol span { order: 3; flex-basis: 100%; }
}
