:root {
  --lagoa: #0F3B40;
  --lagoa-funda: #0B2A2E;
  --mangue: #2F7A63;
  --agua: #E7F1EF;
  --nacar: #A9C9D0;
  --sol: #F2B134;
  --texto: #15302F;
  --suave: #4B6663;
  --linha: #D3E2DF;
  --fundo: #F4F8F7;
  --fonte: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--fundo); color: var(--texto); font: 17px/1.6 var(--fonte); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mangue); }
:focus-visible { outline: 3px solid var(--sol); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: 62ch; }
section { padding: clamp(64px, 9vw, 120px) clamp(20px, 6vw, 96px); }

/* topo */
.topo {
  position: absolute; inset: 0 0 auto 0; z-index: 3; display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 6vw, 96px); color: var(--agua);
}
.marca { display: flex; gap: 10px; align-items: center; color: inherit; text-decoration: none; font-size: 1.3rem; font-weight: 300; }
.marca b { font-weight: 600; }
.topo nav { display: flex; gap: 26px; }
.topo nav a { color: var(--agua); text-decoration: none; font-weight: 500; font-size: .95rem; opacity: .88; }
.topo nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }

/* herói: a lagoa ao entardecer */
.heroi { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: 120px; color: var(--agua); overflow: hidden; }
.heroi-fundo, .heroi-fundo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.heroi::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11, 42, 46, .92) 0%, rgba(11, 42, 46, .72) 38%, rgba(11, 42, 46, 0) 70%);
}
.heroi-texto { position: relative; z-index: 2; max-width: 640px; }
.versao { color: var(--sol); font-weight: 500; margin-bottom: 18px; }
.heroi h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 600; letter-spacing: -0.025em; }
.sub { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: #D3E6E2; margin-bottom: 32px; }
.acoes { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.botao {
  display: inline-block; padding: 14px 24px; border-radius: 10px; font-weight: 600; text-decoration: none;
  border: 1.5px solid currentColor; color: inherit;
}
.botao.principal { background: var(--sol); border-color: var(--sol); color: var(--lagoa-funda); }
.botao.principal:hover { background: #F6C35A; }
.botao:not(.principal):hover { background: rgba(231, 241, 239, .1); }
.miudo { font-size: .92rem; color: var(--nacar); }

/* passos */
.passos h2 { margin-bottom: 48px; }
.passos ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: passo; }
.passos li { counter-increment: passo; position: relative; padding-top: 70px; }
.passos li::before {
  content: counter(passo); position: absolute; top: 0; left: 0; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 600; font-size: 1.2rem; background: var(--lagoa); color: var(--agua);
}
.passos li:not(:last-child)::after {
  content: ""; position: absolute; top: 25px; left: 66px; right: -24px; border-top: 2px dashed var(--nacar);
}
.passos p { color: var(--suave); }
pre { background: var(--lagoa-funda); color: var(--agua); border-radius: 10px; padding: 16px 18px; overflow-x: auto; font: .82rem/1.6 var(--mono); margin: 18px 0 0; }

/* central */
.central { display: grid; grid-template-columns: minmax(280px, 5fr) 7fr; gap: clamp(32px, 5vw, 72px); align-items: center; background: var(--agua); }
.central dl { margin: 28px 0 0; }
.central dt { font-weight: 600; margin-top: 18px; }
.central dd { margin: 4px 0 0; color: var(--suave); }
.tela { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(15, 59, 64, .55); border: 1px solid var(--linha); }

/* histórias */
.historias .intro { color: var(--suave); font-size: 1.1rem; margin-bottom: 40px; }
.casos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--linha); }
.casos article { padding: 28px 28px 8px 0; border-right: 1px solid var(--linha); }
.casos article + article { padding-left: 28px; }
.casos article:last-child { border-right: 0; }
.trilha { display: inline-block; font-size: .82rem; font-weight: 600; color: var(--mangue); margin-bottom: 12px; }
.casos p { color: var(--suave); }
.casos code { font: .8rem var(--mono); color: var(--lagoa); }

/* escolas */
.escolas {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  background: var(--lagoa); color: var(--agua);
}
.escolas p { color: #C9DEDA; }
.escolas .botao { margin-top: 10px; }
.fatos { list-style: none; padding: 0; margin: 0; }
.fatos li { padding: 16px 0; border-bottom: 1px solid rgba(169, 201, 208, .25); color: #C9DEDA; }
.fatos b { color: var(--agua); font-weight: 600; }

/* comunidade */
.tres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 36px; }
.tres p { color: var(--suave); }
.tres a { font-weight: 600; }

/* rodapé com a trama do filé */
.rodape { padding: 0 clamp(20px, 6vw, 96px) 48px; background: var(--lagoa-funda); color: var(--nacar); font-size: .95rem; }
.rodape .trama {
  height: 70px; margin: 0 calc(-1 * clamp(20px, 6vw, 96px)) 36px; opacity: .5;
  background:
    repeating-linear-gradient(45deg, transparent 0 17px, rgba(169, 201, 208, .35) 17px 18px),
    repeating-linear-gradient(-45deg, transparent 0 17px, rgba(169, 201, 208, .35) 17px 18px);
}
.rodape b { color: var(--agua); }
.rodape a { color: var(--sol); }
.rodape .nota { font-size: .85rem; opacity: .8; }

@media (max-width: 900px) {
  .topo nav { display: none; }
  .passos ol, .casos, .tres, .central, .escolas { grid-template-columns: 1fr; }
  .passos li:not(:last-child)::after { display: none; }
  .casos article, .casos article + article { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--linha); }
  .heroi::after { background: linear-gradient(180deg, rgba(11, 42, 46, .85) 0%, rgba(11, 42, 46, .7) 60%, rgba(11, 42, 46, .4) 100%); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Pague um café */
.cafe {
  display: flex; gap: 32px; align-items: center; margin-top: 56px; padding: 32px;
  border-radius: 16px; background: var(--agua); border: 1px solid var(--linha);
}
.cafe img { background: #fff; padding: 10px; border-radius: 12px; flex: none; }
.cafe p { color: var(--suave); }
.cafe .chave { color: var(--texto); font-size: 1.05rem; }
.cafe .chave b { font-family: var(--mono); font-weight: 600; }
.acoes-pix { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 16px; }
.acoes-pix .botao { font: inherit; font-weight: 600; cursor: pointer; color: var(--lagoa); }
.acoes-pix .botao.principal { color: var(--lagoa-funda); }
.miudo-escuro { font-size: .9rem; }
.copiado { color: var(--mangue); font-weight: 600; min-height: 1.5em; margin: 0; }
@media (max-width: 900px) { .cafe { flex-direction: column; align-items: flex-start; } }
