/* ==========================================================================
   Base: reset leve, tipografia, utilitários de layout
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 88px; /* compensa o topo fixo nas âncoras */
}

body {
	margin: 0;
	background: var(--lp-fundo);
	color: var(--lp-texto);
	font-family: var(--lp-fonte-texto);
	font-size: var(--lp-fs-base);
	line-height: var(--lp-lh-base);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

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

h1,
h2,
h3,
h4 {
	margin: 0 0 var(--lp-esp-4);
	font-family: var(--lp-fonte-display);
	font-weight: 600;
	line-height: var(--lp-lh-tight);
	letter-spacing: -0.01em;
	text-wrap: balance;
}

h1 { font-size: var(--lp-fs-4xl); }
h2 { font-size: var(--lp-fs-3xl); }
h3 { font-size: var(--lp-fs-xl); line-height: var(--lp-lh-snug); }

p {
	margin: 0 0 var(--lp-esp-4);
	text-wrap: pretty;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

ul {
	margin: 0;
	padding: 0;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

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

::selection {
	background: var(--lp-vermelho);
	color: var(--lp-branco);
}

/* ---- Utilitários ------------------------------------------------------ */

.lp-container {
	width: 100%;
	max-width: calc(var(--lp-largura) + var(--lp-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--lp-gutter);
}

.lp-secao {
	padding-block: var(--lp-secao);
}

.lp-secao--alt {
	background: var(--lp-fundo-alt);
}

.lp-secao--escura {
	background: var(--lp-fundo-escuro);
	color: var(--lp-texto-invertido);
}

.lp-secao__cabecalho {
	max-width: var(--lp-largura-texto);
	margin-bottom: var(--lp-esp-7);
}

.lp-secao__cabecalho--centro {
	margin-inline: auto;
	text-align: center;
}

.lp-secao__intro {
	color: var(--lp-texto-suave);
	font-size: var(--lp-fs-lg);
}

.lp-secao--escura .lp-secao__intro {
	color: rgb(255 255 255 / 0.75);
}

.screen-reader-text,
.lp-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.lp-pular {
	position: absolute;
	left: var(--lp-esp-4);
	top: -100px;
	z-index: 200;
	padding: var(--lp-esp-3) var(--lp-esp-4);
	background: var(--lp-branco);
	color: var(--lp-preto);
	border-radius: var(--lp-raio-sm);
	font-weight: 700;
}

.lp-pular:focus {
	top: var(--lp-esp-4);
}

/* Conteúdo de páginas comuns (Etapa 3 refina) */
.lp-conteudo {
	max-width: var(--lp-largura-texto);
	margin-inline: auto;
	padding-block: calc(var(--lp-secao) + 40px) var(--lp-secao);
}
