/* =============================================================================
   Site Coletur — BASE: reset, tipografia e componentes reutilizáveis.
   Só usa tokens (tokens.css). Mobile-first: estilos base = celular.
   ========================================================================== */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--altura-topo) + var(--esp-4)); }
body {
    min-height: 100vh;
    font-family: var(--fonte);
    font-size: var(--texto-base);
    line-height: var(--altura-linha);
    color: var(--cor-texto);
    background: var(--cor-fundo);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
input, button { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--cor-link); text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color var(--dur-rapida) ease; }
a:hover { color: var(--cor-link-hover); }
h1, h2, h3 { font-family: var(--fonte-titulo); font-weight: var(--peso-titulo); line-height: var(--altura-linha-titulo); letter-spacing: var(--espacamento-titulo); color: var(--cor-texto-titulo); text-wrap: balance; }
p { text-wrap: pretty; }
address { font-style: normal; }
strong { font-weight: var(--peso-titulo); }
figure { margin: 0; }
main:focus { outline: none; }

/* ---- Foco visível (teclado) ---- */
:focus-visible {
    outline: 3px solid var(--cor-foco);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---- Utilidades ---- */
.conteiner { width: 100%; max-width: calc(var(--largura-max) + 2 * var(--margem-lateral)); margin-inline: auto; padding-inline: var(--margem-lateral); }
.visualmente-oculto { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lista-limpa { list-style: none; padding: 0; }
.texto-2 { color: var(--cor-texto-2); }
.quebra { overflow-wrap: anywhere; }

.pular {
    position: absolute; left: var(--esp-4); top: -100px; z-index: var(--z-pular);
    padding: var(--esp-3) var(--esp-5); border-radius: var(--raio-sm);
    background: var(--cor-estrutura-3); color: var(--cor-texto-inverso); font-weight: var(--peso-titulo); text-decoration: none;
    transition: top var(--dur-media) var(--curva);
}
.pular:focus { top: var(--esp-3); color: var(--cor-texto-inverso); }

/* ---- Marcador de conteúdo pendente ---- */
.pendente {
    display: inline-block;
    padding: 0 .45em;
    border: 1px dashed var(--pendente-borda);
    border-radius: 6px;
    background: var(--pendente-fundo);
    color: var(--pendente-texto);
    font-size: .8125em;
    font-weight: var(--peso-titulo);
    line-height: 1.5;
    letter-spacing: 0;
}

/* ---- Ícones ---- */
.icone { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.icone--inline { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -.2em; }
.icone--grande { width: 2.5rem; height: 2.5rem; color: var(--cor-estrutura); }

/* ---- Assinatura: as quatro barras ---- */
.barras { display: flex; gap: var(--barras-vao); pointer-events: none; }
.barras i { display: block; width: var(--barras-largura); background: var(--barras-cor); border-radius: 2px; }

/* ---- Tipografia de seção ---- */
.sobretitulo {
    display: inline-flex; align-items: center; gap: var(--esp-2);
    margin-bottom: var(--esp-3);
    color: var(--cor-acento-texto);
    font-size: var(--texto-xs); font-weight: var(--peso-forte);
    letter-spacing: var(--espacamento-sobretitulo); text-transform: uppercase;
}
.sobretitulo::before {
    content: ""; width: 14px; height: 12px; flex-shrink: 0;
    background: linear-gradient(90deg, currentColor 0 2px, transparent 2px 4px, currentColor 4px 6px, transparent 6px 8px, currentColor 8px 10px, transparent 10px 12px, currentColor 12px 14px);
    opacity: .9;
}
.sobretitulo--claro { color: var(--laranja-200); }
.titulo-secao { font-size: var(--titulo-md); margin-bottom: var(--esp-4); }
.titulo-secao--menor { font-size: var(--titulo-sm); }
.titulo-cartao { font-size: var(--texto-xl); margin-bottom: var(--esp-2); }
.subtitulo-cartao { font-size: var(--texto-base); margin: var(--esp-5) 0 var(--esp-3); }
.texto-destaque { font-size: var(--texto-lg); color: var(--cor-texto-2); max-width: var(--largura-texto); }

/* ---- Botões ---- */
.botao {
    --botao-fundo: transparent; --botao-texto: var(--cor-botao-2); --botao-borda: transparent;
    display: inline-flex; align-items: center; justify-content: center; gap: var(--esp-2);
    min-height: 44px; padding: .625rem 1.25rem;
    border: 1.5px solid var(--botao-borda); border-radius: var(--raio-sm);
    background: var(--botao-fundo); color: var(--botao-texto);
    font-size: var(--texto-base); font-weight: var(--peso-titulo); line-height: 1.2; text-align: center; text-decoration: none;
    transition: background-color var(--dur-media) ease, border-color var(--dur-media) ease, color var(--dur-media) ease, box-shadow var(--dur-media) ease, transform var(--dur-rapida) ease;
}
.botao:hover { color: var(--botao-texto); }
.botao:active { transform: translateY(1px); }
.botao .icone { width: 1.15em; height: 1.15em; }

.botao--primario { --botao-fundo: var(--cor-botao); --botao-texto: var(--cor-botao-texto); box-shadow: var(--sombra-1); }
.botao--primario:hover { --botao-fundo: var(--cor-botao-hover); box-shadow: var(--sombra-2); }
.botao--marca { --botao-fundo: var(--cor-estrutura); --botao-texto: var(--cor-texto-inverso); }
.botao--marca:hover { --botao-fundo: var(--cor-estrutura-3); }
.botao--secundario { --botao-borda: var(--cor-botao-2); }
.botao--secundario:hover { --botao-fundo: var(--cor-botao-2-hover); }
.botao--claro { --botao-fundo: var(--n-0); --botao-texto: var(--cor-estrutura-3); }
.botao--claro:hover { --botao-fundo: var(--petroleo-50); }
.botao--contorno-claro { --botao-borda: rgba(255, 255, 255, .55); --botao-texto: var(--cor-texto-inverso); }
.botao--contorno-claro:hover { --botao-fundo: rgba(255, 255, 255, .1); --botao-borda: var(--n-0); }
.botao--grande { min-height: 52px; padding: .8rem 1.5rem; font-size: var(--texto-lg); }
.botao--pequeno { min-height: 40px; padding: .5rem 1rem; font-size: var(--texto-sm); }
.botao--largo { width: 100%; }

.grupo-botoes { display: flex; flex-wrap: wrap; gap: var(--esp-3); margin-top: var(--esp-6); }
.grupo-botoes--centro { justify-content: center; }

.link-seta { display: inline-flex; align-items: center; gap: var(--esp-2); margin-top: var(--esp-4); font-weight: var(--peso-titulo); text-decoration: none; }
.link-seta .icone { transition: transform var(--dur-media) var(--curva); }
.link-seta:hover .icone { transform: translateX(3px); }

/* ---- Campo ---- */
.campo {
    width: 100%; min-height: 48px; padding: .7rem 1rem;
    border: 1.5px solid var(--cor-borda-forte); border-radius: var(--raio-sm);
    background: var(--cor-superficie); color: var(--cor-texto);
    font-size: var(--texto-base);
    transition: border-color var(--dur-media) ease, box-shadow var(--dur-media) ease;
}
.campo::placeholder { color: var(--n-500); }
.campo:hover { border-color: var(--n-400); }
.campo:focus { outline: none; border-color: var(--cor-estrutura); box-shadow: 0 0 0 4px var(--cor-marca-suave-2); }

/* ---- Selo ---- */
.selo {
    display: inline-flex; align-items: center; padding: .15rem .6rem; border-radius: var(--raio-pilula);
    font-size: var(--texto-xs); font-weight: var(--peso-forte); letter-spacing: .02em;
}
.selo--marca { background: var(--cor-marca-suave); color: var(--cor-estrutura); }

/* ---- Cartões ---- */
.cartao {
    position: relative;
    padding: var(--esp-6);
    border: 1px solid var(--cor-borda);
    border-radius: var(--raio-md);
    background: var(--cor-superficie);
    box-shadow: var(--sombra-1);
}
.cartao--amplo { padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); border-radius: var(--raio-lg); }
.cartao--clicavel, .cartao--link { transition: border-color var(--dur-media) ease, box-shadow var(--dur-media) ease, transform var(--dur-media) var(--curva); }
.cartao--clicavel:hover, .cartao--link:hover { border-color: var(--petroleo-200); box-shadow: var(--sombra-3); transform: translateY(-2px); }
.cartao--clicavel:focus-within { border-color: var(--petroleo-300); box-shadow: var(--sombra-3); }
/* O link do título cobre o cartão inteiro (área de toque grande, um só link para leitores de tela). */
.link-cartao { color: inherit; text-decoration: none; }
.link-cartao::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.link-cartao:focus-visible { outline: none; }
.link-cartao:focus-visible::after { outline: 3px solid var(--cor-foco); outline-offset: 2px; }
.cartao--link { display: flex; align-items: center; gap: var(--esp-4); color: var(--cor-texto); text-decoration: none; }
.cartao--link:hover { color: var(--cor-texto); }
.cartao__seta { margin-left: auto; color: var(--cor-estrutura); }
.cartao--destaque { background: linear-gradient(160deg, var(--cor-superficie) 55%, var(--cor-fundo-marca-suave)); }

/* ---- Item com ícone ---- */
.item-icone { display: flex; gap: var(--esp-4); align-items: flex-start; }
.item-icone__icone {
    display: inline-grid; place-items: center; flex-shrink: 0;
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--cor-marca-suave); color: var(--cor-estrutura);
}
.item-icone__icone .icone { width: 22px; height: 22px; }
.item-icone__icone--acento { background: var(--cor-acento-suave); color: var(--cor-acento-texto); }
.item-icone__titulo { font-size: var(--texto-lg); margin-bottom: var(--esp-1); }
.lista-itens { list-style: none; padding: 0; display: grid; gap: var(--esp-5); margin-top: var(--esp-6); }

/* ---- Grades ---- */
.grade { display: grid; gap: var(--esp-4); }
@media (min-width: 40em) {
    .grade { gap: var(--esp-5); }
    .grade--2, .grade--3, .grade--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64em) {
    .grade--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grade--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---- Passos numerados ---- */
.passos { display: grid; gap: var(--esp-4); margin-top: var(--esp-5); counter-reset: passo; }
.passo { display: flex; gap: var(--esp-4); align-items: flex-start; }
.passo__numero {
    display: inline-grid; place-items: center; flex-shrink: 0;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--cor-estrutura); color: var(--cor-texto-inverso);
    font-weight: var(--peso-forte); font-size: var(--texto-sm);
}
.passo p { padding-top: .2rem; }

/* ---- Nota ---- */
.nota {
    display: flex; gap: var(--esp-3); align-items: flex-start;
    margin-top: var(--esp-8); padding: var(--esp-4) var(--esp-5);
    border-radius: var(--raio-md); background: var(--cor-fundo-marca-suave); border: 1px solid var(--cor-marca-suave-2);
    color: var(--cor-texto-2); font-size: var(--texto-sm);
}
.nota .icone { color: var(--cor-estrutura); margin-top: .15rem; }
.nota--suave { margin: 0 0 var(--esp-8); }

/* ---- Animação de entrada (respeita prefers-reduced-motion) ---- */
@media (prefers-reduced-motion: no-preference) {
    .entrada { animation: entrar var(--dur-lenta) var(--curva) both; animation-duration: 520ms; }
    .entrada--2 { animation-delay: 120ms; }
    .revelar { opacity: 0; transform: translateY(14px); transition: opacity 520ms var(--curva), transform 520ms var(--curva); }
    .revelar.visivel { opacity: 1; transform: none; }
}
/* Só deslocamento (sem opacidade): se a animação não rodar, o conteúdo continua visível. */
@keyframes entrar { from { transform: translateY(14px); } to { transform: none; } }
