/* Página de apresentação (Pages/Apresentacao.cshtml): mesmas cores e fontes do sistema e das telas de entrada. */

:root {
  color-scheme: light;
  --ap-forest: #173b35;
  --ap-deep: #102d29;
  --ap-leaf: #c8e58b;
  --ap-coral: #e99578;
  --ap-paper: #f4f6f2;
  --ap-white: #fff;
  --ap-ink: #202c29;
  --ap-muted: #5f6f6a;
  --ap-line: #d7dfda;
  --ap-focus: #337d69;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body.ap { margin: 0; background: var(--ap-paper); color: var(--ap-ink); }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ap-focus); outline-offset: 3px; border-radius: 8px; }

.ap-largura { width: min(100% - 48px, 1160px); margin: 0 auto; }

/* ---------- Topo ---------- */
.ap-topo {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgb(215 223 218 / 70%);
  background: rgb(244 246 242 / 88%);
  backdrop-filter: blur(10px);
}
.ap-topo-dentro { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.ap-marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ap-forest); }
.ap-marca span { display: grid; gap: 2px; font-size: 20px; font-weight: 700; line-height: 1; }
.ap-marca small { color: var(--ap-muted); font-size: 9.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.ap-nav { display: flex; gap: 24px; margin-left: auto; }
.ap-nav a { color: var(--ap-muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.ap-nav a:hover { color: var(--ap-forest); }
.ap-acesso { display: flex; align-items: center; gap: 16px; }
.ap-link-entrar { font-size: 14px; font-weight: 700; text-decoration: none; color: var(--ap-forest); }
.ap-link-entrar:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Botões ---------- */
.ap-botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid var(--ap-forest);
  border-radius: 12px;
  background: var(--ap-forest);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}
.ap-botao:hover { background: var(--ap-deep); transform: translateY(-1px); }
.ap-botao-claro { background: transparent; color: var(--ap-forest); border-color: #b9cbc2; }
.ap-botao-claro:hover { background: #fff; }
.ap-botao-pequeno { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }

/* ---------- Chamada principal ---------- */
.ap-hero { padding: 72px 0 84px; }
.ap-hero-grade { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.ap-eyebrow { margin: 0 0 14px; color: #2f7a5c; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.ap-hero h1 {
  margin: 0;
  color: var(--ap-forest);
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2.6rem, 5vw, 4.3rem);
  font-weight: 500;
  line-height: 1.02;
}
.ap-lead { max-width: 540px; margin: 22px 0 0; color: #43524d; font-size: 18px; line-height: 1.65; }
.ap-acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ap-nota { display: flex; align-items: flex-start; gap: 8px; max-width: 520px; margin: 22px 0 0; color: var(--ap-muted); font-size: 13.5px; line-height: 1.5; }
.ap-nota svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: #2f7a5c; }

/* Ilustração da Visão geral */
.ap-tela {
  padding: 20px;
  border: 1px solid #dfe7e2;
  border-radius: 24px;
  background: linear-gradient(160deg, #ffffff 0%, #eef5ef 100%);
  box-shadow: 0 30px 70px rgb(16 45 41 / 16%);
}
.ap-tela-topo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--ap-forest); font-size: 15px; }
.ap-tela-topo span { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: #e3efe6; color: #2f6150; font-size: 12px; font-weight: 700; }
.ap-tela-numeros { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ap-num { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid #e2e9e4; border-radius: 14px; background: #fff; }
.ap-num small { color: #5e716b; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ap-num b { color: #1f2c29; font-size: 17px; }
.ap-num.verde { border-top: 3px solid #61b988; }
.ap-num.azul { border-top: 3px solid #5d8ef5; }
.ap-num.coral { border-top: 3px solid #e99578; }
.ap-num.ambar { border-top: 3px solid #d5a85d; }
.ap-tela-grafico { display: flex; align-items: flex-end; gap: 8px; height: 110px; margin: 16px 0; padding: 12px 12px 0; border: 1px solid #e2e9e4; border-radius: 14px; background: #fff; }
.ap-tela-grafico span { display: flex; flex: 1; align-items: flex-end; gap: 2px; height: 100%; }
.ap-tela-grafico i { flex: 1; border-radius: 3px 3px 0 0; }
.ap-tela-grafico i.r { background: #5d8ef5; }
.ap-tela-grafico i.s { background: #e99578; }
.ap-tela-linhas { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ap-tela-linhas li { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding: 10px 12px; border: 1px solid #e2e9e4; border-radius: 12px; background: #fff; font-size: 13px; }
.ap-tela-linhas span { font-weight: 700; }
.ap-tela-linhas em { grid-row: 2; color: #2f7a5c; font-size: 11.5px; font-style: normal; }
.ap-tela-linhas b { grid-row: 1 / 3; grid-column: 2; align-self: center; color: #a34f3d; }
.ap-tela-linhas b.mais { color: #2b7d5b; }

/* ---------- Seções ---------- */
.ap-secao { padding: 84px 0; }
.ap-secao h2 {
  max-width: 760px;
  margin: 0 0 40px;
  color: var(--ap-forest);
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 500;
  line-height: 1.1;
}
.ap-secao h3 { margin: 0 0 8px; color: var(--ap-forest); font-size: 18px; }
.ap-secao p { margin: 0; color: var(--ap-muted); font-size: 15px; line-height: 1.65; }
.ap-secao-clara { background: #fff; border-top: 1px solid #e3e9e5; border-bottom: 1px solid #e3e9e5; }

.ap-passos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.ap-passos li { padding: 28px 26px; border: 1px solid #dfe7e2; border-radius: 22px; background: #fff; }
.ap-passo-num { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px; border-radius: 50%; background: var(--ap-forest); color: var(--ap-leaf); font-weight: 700; }

.ap-recursos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ap-recursos article { padding: 26px 24px; border: 1px solid #e3e9e5; border-radius: 20px; background: var(--ap-paper); }
.ap-recursos svg { width: 30px; height: 30px; margin-bottom: 14px; color: #2f7a5c; }

.ap-secao-escura {
  background-color: var(--ap-forest);
  background-image: repeating-linear-gradient(0deg, transparent 0, transparent 55px, rgb(255 255 255 / 4%) 56px), repeating-linear-gradient(90deg, transparent 0, transparent 55px, rgb(255 255 255 / 4%) 56px);
}
.ap-secao-escura .ap-eyebrow { color: var(--ap-leaf); }
.ap-secao-escura h2 { color: #fff; }
.ap-seguranca { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.ap-seguranca li { padding: 24px 22px; border: 1px solid rgb(255 255 255 / 16%); border-radius: 18px; background: rgb(255 255 255 / 5%); }
.ap-seguranca h3 { color: #fff; }
.ap-seguranca h3::before { content: ""; display: block; width: 28px; height: 3px; margin-bottom: 14px; border-radius: 2px; background: var(--ap-leaf); }
.ap-seguranca p { color: #c9d9d2; }

.ap-final { text-align: center; }
.ap-final-dentro { display: grid; justify-items: center; }
.ap-final h2 { margin-bottom: 12px; }
.ap-final .ap-acoes { justify-content: center; }

/* ---------- Rodapé ---------- */
.ap-rodape { border-top: 1px solid var(--ap-line); background: #fff; }
.ap-rodape-dentro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; min-height: 76px; color: var(--ap-muted); font-size: 13px; }
.ap-marca-pequena span { font-size: 16px; }

/* ---------- Telas menores ---------- */
@media (max-width: 1000px) {
  .ap-hero-grade { grid-template-columns: 1fr; gap: 40px; }
  .ap-tela { max-width: 560px; }
  .ap-recursos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-seguranca { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .ap-largura { width: min(100% - 32px, 1160px); }
  .ap-nav { display: none; }
  .ap-acesso { margin-left: auto; gap: 12px; }
  .ap-topo-dentro { min-height: 64px; }
  .ap-marca small { display: none; }
  .ap-hero { padding: 40px 0 56px; }
  .ap-lead { font-size: 16.5px; }
  .ap-acoes .ap-botao { flex: 1 1 auto; }
  .ap-secao { padding: 56px 0; }
  .ap-secao h2 { margin-bottom: 26px; }
  .ap-passos, .ap-recursos, .ap-seguranca { grid-template-columns: 1fr; gap: 14px; }
  .ap-tela { padding: 14px; border-radius: 20px; }
  .ap-num b { font-size: 15px; }
  .ap-rodape-dentro { justify-content: center; text-align: center; padding: 18px 0; }
}
