:root {
  --mata: #12301F;
  --maritaca: #58B03A;
  --folha: #3E8C2B;
  --broto: #D9F0A3;
  --alerta: #E8402A;
  --papel: #F3F5EC;
  --branco: #FFFFFF;
  --secundario-escuro: #B9CBBE;
  --comentario: #8FA897;
  --comando: #FF8A73;
  --titulo: 'Bricolage Grotesque', sans-serif;
  --texto: 'Instrument Sans', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--papel);
  color: var(--mata);
  font-family: var(--texto);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--mata); }
a:hover { color: var(--folha); }
h1, h2, h3, p, ul, pre { margin: 0; }
p { text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }

.largura { max-width: 1240px; width: 100%; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.secao { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 40px; }
.fundo-branco { background: var(--branco); }
.fundo-broto { background: var(--broto); }

.grade { display: grid; gap: 16px; }
.grade-320 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grade-260 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grade-420 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; align-items: stretch; }

h2 {
  font-family: var(--titulo);
  font-weight: 800;
  font-size: clamp(36px, 4.5vw, 56px);
  letter-spacing: -0.035em;
  line-height: 1;
  max-width: 760px;
  text-wrap: balance;
}
h3 { font-family: var(--titulo); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; }

/* Botões */
.botao {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 17px;
  padding: 16px 24px;
  transition: background .15s, color .15s;
}
.botao-pequeno { font-size: 15px; padding: 10px 16px; }
.botao-primario { background: var(--maritaca); color: var(--mata); }
.botao-primario:hover { background: var(--folha); color: var(--papel); }
.botao-escuro { background: var(--mata); color: var(--papel); }
.botao-escuro:hover { background: var(--folha); color: var(--papel); }
.botao-contorno { border: 2px solid var(--mata); padding: 14px 22px; }
.botao-contorno:hover { background: var(--broto); color: var(--mata); }

/* Nav */
.nav { padding-top: 20px; padding-bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo:hover { color: var(--mata); }
.marca { font-family: var(--titulo); font-weight: 800; font-size: 28px; letter-spacing: -0.045em; }
.marca-pequena { font-size: 24px; }
.nav-links { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.nav-links a:not(.botao) { text-decoration: none; }

/* Hero */
.hero { padding-top: 40px; padding-bottom: 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 48px; align-items: center; }
.hero-texto { display: flex; flex-direction: column; gap: 24px; }
.rotulo { font-family: var(--mono); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.ponto { width: 8px; height: 8px; border-radius: 50%; background: var(--maritaca); flex: none; }
h1 {
  font-family: var(--titulo);
  font-weight: 800;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.lead { font-size: 20px; line-height: 1.5; max-width: 520px; }
.botoes { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-codigo { position: relative; display: flex; flex-direction: column; min-width: 0; }
.hero-mari { align-self: flex-end; width: min(260px, 52%); margin-bottom: -28px; margin-right: 12px; position: relative; z-index: 1; }

.codigo {
  background: var(--mata);
  color: var(--papel);
  border-radius: 24px;
  padding: 24px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.75;
  overflow-x: auto;
}
.codigo pre { font-family: inherit; white-space: pre; }
.comentario { color: var(--comentario); }
.cmd { color: var(--comando); }
.str { color: var(--broto); }
.divisoria { border-top: 1px solid #F3F5EC26; margin-top: 16px; padding-top: 16px; }

/* Diferenciais */
.card-papel { background: var(--papel); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.card-papel p { font-size: 17px; line-height: 1.5; }
.numero { font-family: var(--mono); font-size: 13px; color: var(--folha); }
.card-mata { background: var(--mata); color: var(--papel); border-radius: 24px; padding: 32px; }
.reentrega { display: flex; flex-direction: column; gap: 24px; }
.reentrega-topo { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: baseline; }
.reentrega-topo h3 { font-size: 28px; }
.reentrega-topo p { font-size: 16px; color: var(--secundario-escuro); }
.linha-do-tempo { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.linha-do-tempo div { display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); font-size: 18px; font-weight: 600; color: var(--broto); }
.linha-do-tempo span { height: 6px; border-radius: 3px; background: var(--maritaca); }

/* Como funciona */
.passo { display: flex; flex-direction: column; gap: 16px; border-top: 3px solid var(--mata); padding-top: 20px; }
.passo p { font-size: 17px; line-height: 1.5; }
.passo-topo { display: flex; align-items: center; gap: 14px; }
.circulo { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--maritaca); display: grid; place-items: center; font-family: var(--titulo); font-weight: 800; font-size: 22px; }
.snippet { background: var(--mata); color: var(--broto); border-radius: 14px; padding: 14px 16px; font-family: var(--mono); font-size: 13px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.eventos { display: flex; flex-direction: column; gap: 12px; }
.eventos-titulo { font-size: 15px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-family: var(--mono); font-size: 13px; background: var(--branco); border: 1px solid #12301F33; padding: 6px 10px; border-radius: 8px; }

/* Preço */
.card-branco { background: var(--branco); border-radius: 24px; padding: 36px; display: flex; flex-direction: column; gap: 24px; }
.card-branco > p { font-size: 17px; line-height: 1.5; }
.card-branco .botao { align-self: flex-start; }
.rotulo-secao { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.valor-numero { font-family: var(--titulo); font-weight: 800; font-size: clamp(44px, 5.5vw, 68px); letter-spacing: -0.04em; line-height: 1; }
.inclusos { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.inclusos li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.inclusos li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--maritaca); margin-top: 1px; }
.aviso-contratar { padding: 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.aviso-contratar img { width: 160px; }
.aviso-contratar > div { display: flex; flex-direction: column; gap: 12px; }
.aviso-contratar h3 { font-size: 28px; color: var(--comando); }
.aviso-contratar p { font-size: 17px; line-height: 1.55; }

/* Rodapé */
.rodape { background: var(--mata); color: var(--papel); }
.rodape a { color: var(--papel); }
.rodape a:hover { color: var(--broto); }
.rodape-dentro { padding-top: 48px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 28px; }
.rodape-topo { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.rodape-links { display: flex; gap: 20px; font-size: 15px; flex-wrap: wrap; }
.aviso { border: 1px solid var(--alerta); border-radius: 14px; padding: 16px 18px; font-size: 15px; line-height: 1.5; display: flex; gap: 12px; align-items: flex-start; }
.tag-aviso { flex: none; font-family: var(--mono); font-size: 12px; font-weight: 600; background: var(--alerta); color: var(--branco); padding: 3px 8px; border-radius: 6px; }

@media (max-width: 520px) {
  .nav-links { gap: 14px 18px; }
  .codigo { font-size: 12.5px; padding: 20px; }
}
