/* Landing page do Instituto Fazendo Acontecer apresentando o Futuro de Caixa.
   Identidade do instituto (fazendoacontecer.org.br, Elementor): cores globais e fontes abaixo.
   Fontes servidas da própria página, sem Google Fonts. Texto: COPY.md. */

@font-face {
  font-family: "Roboto Slab";
  src: url("fontes/roboto-slab-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("fontes/roboto-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("fontes/archivo-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Instituto */
  --petroleo: #045159;
  --petroleo-fundo: #033f45;
  --petroleo-escuro: #03363c;
  --turquesa: #00b4ca;
  --verde: #90c83e;
  --amarelo: #e3e42f;
  --amarelo-claro: #eeef6a;
  --laranja: #ed9622;
  --coral: #fd4754;
  --texto: #545454;
  --tinta: #333333;
  --cinza-fundo: #f9f9f9;
  --cinza-linha: #e3e3e3;
  --turquesa-fundo: #eef8f9;
  --no-petroleo: #bfe3e6;
  --no-petroleo-fraco: #8fc3c8;
  /* Futuro de Caixa, só no wordmark do parceiro */
  --fdc-tinta: #0f4026;
  --fdc-laranja: #f79910;

  --largura: 1120px;
  --facil: cubic-bezier(.16, 1, .3, 1);
}

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

html {
  scrollbar-color: var(--petroleo) var(--cinza-fundo);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--texto);
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--turquesa); color: var(--petroleo-escuro); }

h1, h2, h3 {
  margin: 0;
  font-family: "Roboto Slab", Georgia, serif;
  font-weight: 700;
  color: var(--tinta);
  text-wrap: balance;
  letter-spacing: -0.01em;
}

p { margin: 0; }

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

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

.dentro {
  width: 100%;
  max-width: var(--largura);
  margin: 0 auto;
  padding: 0 20px;
}
.dentro--estreito { max-width: 780px; }

/* ---------- Botões: cantos retos e caixa alta, como no site do instituto ---------- */

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: 0;
  background: var(--amarelo);
  color: var(--petroleo-escuro);
  font-family: "Roboto", sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(3, 54, 60, .22);
  transition: background-color .2s var(--facil), transform .2s var(--facil), box-shadow .2s var(--facil);
}
.botao::after {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 2px;
  transition: transform .2s var(--facil);
}
.botao:hover {
  background: var(--amarelo-claro);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(3, 54, 60, .28);
}
.botao:hover::after { transform: translateX(3px) rotate(45deg); }
.botao:active { transform: translateY(0); }
.botao:focus-visible,
.topo a:focus-visible,
.precos__consulta a:focus-visible,
.rodape a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--turquesa);
  outline-offset: 3px;
}

.botao--pequeno {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.8125rem;
  box-shadow: none;
}
.botao--pequeno::after { display: none; }
.botao--largo { width: 100%; }
.botao--contorno {
  background: transparent;
  border-color: var(--petroleo);
  color: var(--petroleo);
  box-shadow: none;
}
.botao--contorno:hover { background: var(--petroleo); color: #fff; box-shadow: none; }
.botao--escuro { background: var(--petroleo); color: #fff; }
.botao--escuro:hover { background: var(--petroleo-escuro); }
.botao--escuro:focus-visible { outline-color: var(--petroleo); }

.microcopy {
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--no-petroleo);
}
.microcopy--escura { color: var(--petroleo-escuro); }

/* ---------- Barra de topo ---------- */

.topo {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--cinza-linha);
}
.topo__dentro {
  max-width: var(--largura);
  margin: 0 auto;
  padding: 12px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px 24px;
}
.topo__instituto img { width: auto; height: 22px; }
.topo__parceria {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--texto);
  justify-self: end;
  text-align: right;
}
.marca-fdc {
  font-family: "Archivo", "Roboto", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--fdc-tinta);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.marca-fdc span { color: var(--fdc-laranja); }

/* ---------- Primeira dobra ---------- */

.abertura {
  background: var(--petroleo);
  color: #fff;
  padding: 56px 0 72px;
}
.abertura__dentro {
  max-width: var(--largura);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  gap: 48px;
  align-items: center;
}
.abertura h1 {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.12;
}
.vinculo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, .16);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  max-width: 34em;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--no-petroleo);
}
.vinculo img { flex: none; width: 32px; height: 32px; }
.vinculo strong { color: #fff; font-weight: 500; }
.abertura__apoio {
  margin: 20px 0 32px;
  max-width: 34em;
  font-size: 1.125rem;
  color: var(--no-petroleo);
}

.grafico {
  margin: 0;
  padding: 20px 20px 16px;
  background: var(--petroleo-fundo);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 24px 48px rgba(2, 30, 34, .35);
}
.grafico__cabeca {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  margin-bottom: 8px;
}
.grafico__titulo {
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
}
.legenda {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
  color: var(--no-petroleo);
}
.legenda li { display: inline-flex; align-items: center; gap: 6px; }
.legenda__marca { display: inline-block; width: 16px; }
.legenda__marca--linha { height: 3px; background: var(--turquesa); }
.legenda__marca--meta {
  height: 0;
  border-top: 2px dashed var(--amarelo);
}
.legenda__marca--zona { height: 10px; background: rgba(253, 71, 84, .28); }

.grafico__svg { width: 100%; height: auto; overflow: visible; }
.grafico__svg text {
  font-family: "Roboto", sans-serif;
  fill: var(--no-petroleo-fraco);
  font-size: 11px;
}
.grade line { stroke: rgba(255, 255, 255, .1); stroke-width: 1; }
.grade text { text-anchor: end; }
.meses text { text-anchor: middle; }
.zona { fill: rgba(253, 71, 84, .1); }
.area { fill: url(#preenchimento); }
.meta { stroke: var(--amarelo); stroke-width: 2; stroke-dasharray: 7 6; }
.grafico__svg .meta__rotulo { fill: var(--amarelo); font-size: 12px; font-weight: 500; }
.linha {
  fill: none;
  stroke: var(--turquesa);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ponto__haste { stroke: rgba(255, 255, 255, .55); stroke-width: 1; stroke-dasharray: 3 4; }
.ponto__halo { fill: rgba(253, 71, 84, .28); }
.ponto__centro { fill: var(--coral); stroke: #fff; stroke-width: 2.5; }
.grafico__svg .ponto__rotulo { fill: var(--no-petroleo); font-size: 12px; font-weight: 500; letter-spacing: .04em; }
.grafico__svg .ponto__valor { fill: #fff; font-size: 15px; font-weight: 700; }

.leitura {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 12px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.leitura div { min-width: 0; }
.leitura dt { font-size: 0.75rem; color: var(--no-petroleo); }
.leitura dd {
  margin: 2px 0 0;
  font-family: "Roboto Slab", serif;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.3;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.grafico__fonte {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--no-petroleo-fraco);
}

/* Um momento de movimento: a linha do caixa se desenha, depois o ponto crítico aparece. */
@media (prefers-reduced-motion: no-preference) {
  .linha {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: desenhar 1.9s var(--facil) .25s both;
  }
  .area, .ponto {
    animation: surgir .7s var(--facil) 1.5s both;
  }
  @keyframes desenhar { to { stroke-dashoffset: 0; } }
  @keyframes surgir {
    from { opacity: 0; filter: blur(4px); }
    to { opacity: 1; filter: blur(0); }
  }
}

/* ---------- Como funciona ---------- */

.etapas { padding: 96px 0 88px; }
.etapas h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  max-width: 18em;
}
.jornada {
  position: relative;
  display: grid;
  gap: 28px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}
.jornada::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: var(--cinza-linha);
}
.jornada__etapa {
  position: relative;
  padding-left: 60px;
}
.jornada__no {
  position: absolute;
  left: 0;
  top: -4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-family: "Roboto Slab", serif;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--petroleo-escuro);
}
.jornada__etapa--entrada .jornada__no { background: #fff; border: 2px solid var(--petroleo); }
.jornada__etapa--entrada .jornada__no::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--petroleo);
}
.jornada__etapa--1 .jornada__no { background: var(--laranja); }
.jornada__etapa--2 .jornada__no { background: var(--amarelo); }
.jornada__etapa--3 .jornada__no { background: var(--verde); }
.jornada__etapa--4 .jornada__no { background: var(--turquesa); }
.jornada h3 { font-size: 1.25rem; line-height: 1.3; }
.jornada p { margin-top: 6px; max-width: 32em; }

/* ---------- Confiança ---------- */

.confianca {
  background: var(--turquesa-fundo);
  padding: 80px 0;
}
.confianca__grade { display: grid; gap: 40px; }
.afirmacao h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2;
  color: var(--petroleo);
}
.afirmacao p { margin-top: 14px; max-width: 34em; }

/* ---------- Preço ---------- */

.precos {
  background: var(--petroleo);
  color: var(--no-petroleo);
  padding: 96px 0;
}
.precos__cabeca { max-width: 40em; }
.precos h2 {
  color: #fff;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.15;
}
.precos__cabeca p { margin-top: 16px; }
.planos {
  display: grid;
  gap: 24px;
  margin-top: 44px;
  max-width: 900px;
}
.plano {
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  background: #fff;
  color: var(--texto);
  box-shadow: 0 20px 44px rgba(2, 30, 34, .35);
}
.plano__nome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.plano h3 { font-size: 1.5rem; color: var(--petroleo); }
.selo {
  padding: 4px 10px;
  background: var(--amarelo);
  color: var(--petroleo-escuro);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.plano__preco {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
  margin-top: 20px;
}
.plano__ancora { flex-basis: 100%; font-size: 0.9375rem; }
.plano__ancora s { text-decoration-thickness: 1.5px; }
.plano__valor {
  font-family: "Roboto Slab", serif;
  font-weight: 700;
  font-size: 2.75rem;
  line-height: 1.1;
  color: var(--tinta);
  font-variant-numeric: tabular-nums;
}
.plano__mes { font-size: 1rem; }
.plano__para {
  margin-top: 6px;
  font-weight: 500;
  color: var(--tinta);
}
.plano__inclui {
  flex: 1;
  margin: 22px 0 28px;
  padding: 18px 0 0;
  border-top: 1px solid var(--cinza-linha);
  list-style: none;
  display: grid;
  gap: 10px;
  align-content: start;
}
.plano__inclui li {
  position: relative;
  padding-left: 28px;
  line-height: 1.45;
}
.plano__inclui li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 7px;
  height: 12px;
  border-right: 2.5px solid var(--verde);
  border-bottom: 2.5px solid var(--verde);
  transform: rotate(40deg);
}
.precos__consulta { margin-top: 28px; }
.precos__consulta a { color: #fff; font-weight: 500; }

/* ---------- Instituto ---------- */

.instituto { padding: 96px 0; }
.instituto__grade { display: grid; gap: 32px; align-items: center; }
.folhas { width: 150px; height: 150px; }
.instituto h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  max-width: 16em;
}
.instituto p { margin: 0 0 28px; max-width: 36em; }
.instituto .instituto__abertura {
  margin: 18px 0 10px;
  font-family: "Roboto Slab", serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--petroleo);
}

/* ---------- Perguntas ---------- */

.perguntas {
  background: var(--cinza-fundo);
  padding: 88px 0;
}
.perguntas h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 20px;
}
details { border-bottom: 1px solid var(--cinza-linha); }
summary {
  position: relative;
  padding: 20px 44px 20px 0;
  font-weight: 500;
  font-size: 1.0625rem;
  color: var(--tinta);
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  background:
    linear-gradient(var(--petroleo), var(--petroleo)) center / 16px 2px no-repeat,
    linear-gradient(var(--petroleo), var(--petroleo)) center / 2px 16px no-repeat;
  transition: transform .25s var(--facil);
}
details[open] summary::after { transform: rotate(45deg); }
summary:hover { color: var(--petroleo); }
details p { padding: 0 0 22px; max-width: 42em; }

/* ---------- Chamada final ---------- */

.final {
  background: var(--amarelo);
  padding: 72px 0;
}
.final__dentro {
  display: grid;
  gap: 28px;
  align-items: center;
}
.final h2 {
  color: var(--petroleo-escuro);
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  max-width: 14em;
}

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

.rodape {
  background: var(--petroleo-escuro);
  color: var(--no-petroleo);
  padding: 32px 0;
  font-size: 0.875rem;
}
.rodape__dentro { display: grid; gap: 14px; }
.rodape ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rodape a { color: #fff; }

/* ---------- Telas maiores ---------- */

@media (max-width: 599px) {
  .topo__dentro { grid-template-columns: 1fr auto; }
  .topo__parceria { grid-row: 2; grid-column: 1 / -1; justify-self: start; text-align: left; font-size: 0.8125rem; }
  .topo__instituto img { height: 18px; }
  .leitura { grid-template-columns: 1fr; gap: 10px; }
  .leitura div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .leitura dd { margin: 0; text-align: right; }
  .grafico { padding: 16px 12px 12px; }
}

@media (min-width: 720px) {
  .planos { grid-template-columns: 1fr 1fr; }
  .confianca__grade { grid-template-columns: 1fr 1fr; gap: 0; }
  .confianca__grade .afirmacao:first-child { padding-right: 48px; border-right: 1px solid rgba(4, 81, 89, .18); }
  .confianca__grade .afirmacao:last-child { padding-left: 48px; }
  .instituto__grade { grid-template-columns: 200px 1fr; gap: 56px; }
  .folhas { width: 200px; height: 200px; }
  .final__dentro { grid-template-columns: 1fr auto; }
}

@media (min-width: 960px) {
  .abertura { padding: 72px 0 96px; }
  .abertura__dentro { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; }

  .jornada {
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-top: 56px;
  }
  .jornada::before {
    left: 20px;
    right: 20px;
    top: 19px;
    bottom: auto;
    width: auto;
    height: 2px;
  }
  .jornada__etapa { padding: 60px 0 0; }
  .jornada__no { top: 0; }
}
