/* rapfin — estilos do site (landing e lista de espera)
   Tokens do Design System RapFin. Sem degradês, sem sombras pesadas, sem emoji. */

:root {
  --petroleo: #0B4F4A;
  --petroleo-escuro: #083B37;
  --lima: #C6F432;
  --coral: #FF6B4A;
  --coral-ink: #B23A1E;
  --coral-tint: #FBE9E4;
  --ground: #F7F4EC;
  --surface: #FFFFFF;
  --ink: #1C2321;
  --ink-soft: #3A4542;
  --muted: #5B6663;
  --brand-ink: #0B4F4A;
  --petroleo-tint: #E6EFEC;
  --on-brand-muted: #CFE3E0;
  --hairline: #E4DFD2;

  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --font: "Plus Jakarta Sans", Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1200px;
  --gutter: 24px;
}

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

[hidden] { display: none !important; }
[tabindex="-1"]:focus { outline: none; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

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

a { color: var(--brand-ink); }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--petroleo); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.pular {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--petroleo); color: var(--ground);
  padding: 12px 18px; border-radius: var(--radius-pill); font-weight: 700;
}
.pular:focus { top: 16px; }

.container { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Tipografia ---------- */

.eyebrow {
  margin: 0;
  font-size: 0.875rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--brand-ink);
}
.eyebrow--lima { color: var(--lima); }

h1, h2, h3 { margin: 0; }

.titulo-hero {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.02; font-weight: 800; letter-spacing: -0.04em;
}
.titulo-secao {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.06; font-weight: 800; letter-spacing: -0.035em;
}
.titulo-card { font-size: 1.375rem; line-height: 1.25; font-weight: 700; }

.lead { margin: 0; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 36em; }
.texto { margin: 0; color: var(--ink-soft); }
.pequeno { font-size: 0.875rem; color: var(--muted); }
.exemplo { font-size: 0.8125rem; font-weight: 600; color: var(--muted); }

/* ---------- Botões e chips ---------- */

.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border-radius: var(--radius-pill); border: 1.5px solid transparent;
  font: inherit; font-size: 1rem; font-weight: 700; text-decoration: none;
  cursor: pointer; transition: transform .12s ease, background-color .12s ease;
}
.botao:hover { transform: translateY(-1px); }
.botao:active { transform: translateY(0); }
.botao--lima { background: var(--lima); color: var(--ink); font-weight: 800; }
.botao--lima:hover { color: var(--ink); background: #B9E82A; }
.botao--petroleo { background: var(--petroleo); color: var(--ground); }
.botao--petroleo:hover { color: var(--ground); background: #0D5D57; }
.botao--contorno { background: transparent; color: var(--petroleo); border-color: var(--petroleo); }
.botao--grande { min-height: 56px; padding: 0 30px; font-size: 1.125rem; }
.botao[disabled] { opacity: .6; cursor: progress; transform: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--radius-pill);
  background: var(--petroleo-tint); color: var(--brand-ink);
  font-size: 0.875rem; font-weight: 600;
}
.chip--claro { background: var(--ground); color: var(--ink); font-weight: 500; }
.selo {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 0.75rem; font-weight: 700; white-space: nowrap;
}
.selo--lima { background: var(--lima); color: var(--ink); }
.selo--coral { background: var(--coral-tint); color: var(--coral-ink); }

/* ---------- Cabeçalho ---------- */

.topo {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 20px;
}
.marca { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.marca svg { width: 30px; height: 24px; }
.marca span { font-size: 1.625rem; font-weight: 800; letter-spacing: -0.04em; }
.marca:hover { color: var(--ink); }
.menu { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.menu a:not(.botao) { color: var(--ink-soft); font-weight: 600; font-size: 0.9375rem; text-decoration: none; }
.menu a:not(.botao):hover { color: var(--ink); }

/* ---------- Seções ---------- */

.secao { padding-block: 96px; }
.secao--branca { background: var(--surface); }
.secao--sem-topo { padding-top: 0; }
.cabeca-secao { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: 40px; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-block: 48px 96px; }
.hero__texto { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero__texto strong { color: var(--ink); }
.hero__acoes { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero__visual {
  flex: 1 1 480px; min-width: 0; position: relative;
  background: var(--petroleo); border-radius: var(--radius-lg); padding: 40px 32px 32px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; justify-content: center;
}
.hero__visual .exemplo { position: absolute; top: 18px; right: 24px; color: var(--on-brand-muted); }
.hero__batida { width: 170px; flex: 0 0 auto; }

.card-app {
  flex: 1 1 260px; max-width: 320px; margin-top: 24px;
  background: var(--ground); border-radius: var(--radius-md); padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
}
.card-app__saudacao { font-size: 0.875rem; color: var(--muted); }
.card-app__rotulo { font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); }
.card-app__valor { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.04em; color: var(--petroleo); line-height: 1.1; }
.card-app__linha {
  background: var(--surface); border-radius: var(--radius-sm); padding: 12px 14px;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-size: 0.8125rem; line-height: 1.4;
}

/* Orçamento pronto */
.orcamento { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.painel { background: var(--ground); border-radius: var(--radius-lg); padding: 28px; }
.painel--extrato { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.painel--batida {
  flex: 0 1 220px; min-width: 200px; background: var(--petroleo);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
}
.painel--batida svg { width: 150px; }
.painel--orcamento { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.rotulo-painel {
  margin: 0 0 8px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted);
}
.extrato { list-style: none; margin: 0; padding: 0; }
.extrato li {
  display: flex; justify-content: space-between; gap: 12px;
  padding-block: 12px; border-bottom: 1px solid var(--hairline); font-size: 0.9375rem;
}
.extrato li:last-child { border-bottom: none; }
.balao {
  background: var(--ground); color: var(--ink); border-radius: var(--radius-md);
  padding: 14px 16px; font-size: 0.875rem; line-height: 1.45; margin: 0;
}
.categoria { display: flex; flex-direction: column; gap: 6px; }
.categoria__linha { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9375rem; font-weight: 600; }
.barra { height: 10px; border-radius: var(--radius-pill); background: var(--hairline); overflow: hidden; }
.barra > span { display: block; height: 100%; border-radius: var(--radius-pill); background: var(--petroleo); }
.categoria__nota { font-size: 0.8125rem; color: var(--muted); }
.acoes { display: flex; flex-wrap: wrap; gap: 10px; }
.painel__topo { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }

/* Gastos do ano */
.grafico-ano { background: var(--surface); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.grafico-ano__topo { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.grafico-ano__titulo { margin: 0; font-size: 1.125rem; font-weight: 700; }
.legenda { display: flex; flex-wrap: wrap; gap: 18px; font-size: 0.875rem; color: var(--ink-soft); margin: 0; padding: 0; list-style: none; }
.legenda li { display: inline-flex; align-items: center; gap: 8px; }
.legenda i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.legenda .l-coral { background: var(--coral); }
.legenda .l-petroleo { background: var(--petroleo); }
.grafico-ano svg { width: 100%; }
.so-celular { display: none !important; }
.grafico-ano text { font-family: var(--font); }

/* Dá pra? */
.dapra {
  background: var(--petroleo); color: var(--ground); border-radius: var(--radius-lg); padding: 48px;
  display: flex; flex-wrap: wrap; gap: 40px; align-items: center;
}
.dapra__texto { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.dapra__texto .lead { color: var(--on-brand-muted); }
.dapra__texto svg { width: 130px; }
.simulacao {
  flex: 1 1 420px; min-width: 0; background: var(--ground); color: var(--ink);
  border-radius: var(--radius-md); padding: 28px; display: flex; flex-direction: column; gap: 16px;
}
.simulacao__titulo { margin: 0; font-size: 1.125rem; font-weight: 700; }
.simulacao svg text { font-family: var(--font); }
.veredito { background: var(--coral-tint); border-radius: var(--radius-sm); padding: 14px 16px; margin: 0; font-size: 0.9375rem; }
.veredito strong { color: var(--coral-ink); }

/* Passos */
.passos { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.passo { border-top: 3px solid var(--petroleo); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.passo__numero { font-size: 2rem; font-weight: 800; color: var(--petroleo); line-height: 1; }

/* IA */
.ia { background: var(--ground); border-radius: var(--radius-lg); padding: 28px 32px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.ia__texto { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ia__titulo { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ia__exemplo {
  flex: 1 1 320px; min-width: 0; background: var(--surface); border-radius: var(--radius-md);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; font-size: 0.875rem; line-height: 1.45; margin: 0;
}
.ia__pergunta { color: var(--muted); margin: 0; }
.ia__resposta { margin: 0; }

/* Dados */
.cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card { background: var(--surface); border-radius: var(--radius-md); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.icone {
  width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--petroleo-tint);
  display: flex; align-items: center; justify-content: center;
}
.icone svg { width: 24px; height: 24px; }

/* Perguntas */
.perguntas { max-width: 860px; margin: 0 auto; }
.perguntas details { border-bottom: 1px solid var(--hairline); padding-block: 18px; }
.perguntas summary {
  cursor: pointer; list-style: none; font-size: 1.1875rem; font-weight: 700;
  display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 44px;
}
.perguntas summary::-webkit-details-marker { display: none; }
.perguntas summary::after {
  content: ""; flex: 0 0 auto; width: 12px; height: 12px;
  border-right: 2.5px solid var(--petroleo); border-bottom: 2.5px solid var(--petroleo);
  transform: rotate(45deg) translateY(-3px); transition: transform .15s ease;
}
.perguntas details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.perguntas p { margin: 12px 0 0; color: var(--ink-soft); }

/* Chamada final */
.chamada {
  background: var(--petroleo); color: var(--ground); border-radius: var(--radius-lg);
  padding: 56px 48px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between;
}
.chamada__texto { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.chamada__texto .lead { color: var(--on-brand-muted); }
.chamada__barras { width: 300px; flex: 0 0 auto; }

/* ---------- Formulário ---------- */

.form { display: flex; flex-direction: column; gap: 16px; }
.form__linha { display: flex; flex-wrap: wrap; gap: 12px; }
.campo { display: flex; flex-direction: column; gap: 6px; font-size: 0.875rem; font-weight: 600; }
.form__linha > .campo { flex: 1 1 220px; }
.campo input, .campo select {
  min-height: 52px; width: 100%;
  border-radius: var(--radius-sm); border: 1.5px solid var(--hairline);
  background: var(--ground); color: var(--ink);
  padding: 0 16px; font: inherit; font-size: 1rem; font-weight: 400;
}
.campo input:focus, .campo select:focus { border-color: var(--petroleo); outline: none; box-shadow: 0 0 0 3px rgba(11, 79, 74, .18); }
.campo--opcional span { font-weight: 400; color: var(--muted); }
.consentimento { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; line-height: 1.45; }
.consentimento input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--petroleo); flex: 0 0 auto; }
.armadilha { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__erro { margin: 0; color: var(--coral-ink); font-size: 0.9375rem; font-weight: 600; min-height: 1.4em; }

.form--escuro .campo { color: var(--on-brand-muted); }
.form--escuro .campo input { border-color: transparent; }
.form--escuro .consentimento { color: var(--on-brand-muted); }
.form--escuro .consentimento a { color: var(--lima); }
.form--escuro .form__erro { color: #FFB8A6; }

/* ---------- Rodapé ---------- */

.rodape { border-top: 1px solid var(--hairline); padding-block: 40px; }
.rodape__grade { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.rodape__marca { display: flex; flex-direction: column; gap: 6px; }
.rodape__marca strong { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.04em; }
.rodape nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.875rem; }
.rodape__aviso { flex: 1 1 100%; margin: 0; font-size: 0.8125rem; color: var(--muted); }

/* ---------- Página da lista ---------- */

.lista { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-block: 32px 96px; }
.lista__texto { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.lista__beneficios { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.lista__beneficios li { display: flex; gap: 14px; align-items: flex-start; }
.lista__beneficios b {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--lima);
  display: inline-flex; align-items: center; justify-content: center; font-size: 0.875rem;
}
.lista__beneficios strong { display: block; }
.lista__beneficios span { color: var(--ink-soft); font-size: 0.9375rem; }
.lista__form { flex: 1 1 400px; min-width: 0; background: var(--surface); border-radius: var(--radius-lg); padding: 32px; }
.lista__form h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; color: var(--petroleo); }
.lista__batida { width: 120px; }

.confirmacao { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-block: 32px 96px; }
.confirmacao[hidden] { display: none; }
.confirmacao__visual {
  flex: 0 1 420px; min-width: 260px; aspect-ratio: 11 / 14; max-height: 560px;
  background: var(--petroleo); border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
}
.confirmacao__visual svg { width: 62%; }
.confirmacao__texto { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.convite { background: var(--surface); border-radius: var(--radius-md); padding: 20px; display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.convite__link { display: flex; flex-wrap: wrap; gap: 10px; }
.convite__link input {
  flex: 1 1 240px; min-height: 48px; border-radius: var(--radius-pill); border: 1.5px solid var(--hairline);
  background: var(--ground); padding: 0 18px; font: inherit; font-size: 0.9375rem; color: var(--ink);
}
.aviso-copiado { font-size: 0.875rem; color: var(--brand-ink); font-weight: 600; min-height: 1.3em; margin: 0; }

/* ---------- Celular ---------- */

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .secao { padding-block: 64px; }
  .menu a:not(.botao) { display: none; }
  .hero { gap: 28px; padding-block: 8px 56px; }
  .hero__visual { order: -1; padding: 32px 16px 0; flex-wrap: nowrap; align-items: flex-end; }
  .hero__batida { width: 72px; }
  .hero__visual .exemplo { top: 12px; right: 16px; font-size: 0.75rem; }
  .card-app { flex: 1 1 auto; min-width: 0; border-radius: var(--radius-md) var(--radius-md) 0 0; padding: 16px; gap: 10px; }
  .card-app__linha { font-size: 0.75rem; padding: 10px 12px; }
  .so-celular { display: block !important; }
  .so-desktop { display: none !important; }
  .card-app__valor { font-size: 2rem; }
  .card-app__linha:last-child { display: none; }
  .hero__acoes { flex-direction: column; align-items: stretch; text-align: center; }
  .painel { padding: 20px; }
  .painel--batida { flex-direction: row; min-width: 0; flex: 1 1 100%; padding: 14px; }
  .painel--batida svg { width: 64px; flex: 0 0 auto; order: -1; }
  .grafico-ano { padding: 20px; }
  .dapra, .chamada { padding: 32px 20px; }
  .chamada__barras { width: 220px; margin-inline: auto; }
  .lista__form { padding: 24px 20px; }
  .confirmacao__visual { aspect-ratio: auto; height: 260px; flex-basis: 100%; }
  .confirmacao__visual svg { width: auto; height: 80%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .botao, .perguntas summary::after { transition: none; }
}

/* ---------- Política de privacidade ---------- */

.politica { max-width: 860px; padding-block: 32px 96px; display: flex; flex-direction: column; gap: 16px; }
.politica p, .politica li { margin: 0; color: var(--ink-soft); }
.politica strong { color: var(--ink); }
.politica h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin-top: 32px; scroll-margin-top: 16px; }
.politica h3 { font-size: 1.125rem; font-weight: 700; margin-top: 12px; }
.politica ol, .politica ul { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 6px; }
.politica__versao { font-size: 0.875rem; color: var(--muted) !important; }
.politica__indice { background: var(--surface); border-radius: var(--radius-md); padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; }
.politica__tabela { overflow-x: auto; background: var(--surface); border-radius: var(--radius-md); }
.politica table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.9375rem; }
.politica th { text-align: left; background: var(--petroleo); color: var(--ground); padding: 12px 14px; font-weight: 700; }
.politica td { padding: 12px 14px; border-bottom: 1px solid var(--hairline); vertical-align: top; color: var(--ink-soft); }
.politica tr:last-child td { border-bottom: none; }
