/* Instituto Bruno Vasconcelos — identidade oficial (navy + creme + dourado, Archivo + Manrope) · v0.4
   Tokens absorvidos do design system de brunovasconcelos.com (--color-brand #101c30, --color-accent-gold #c4a265,
   --color-bg-primary #f5f0e8) e confirmados na capa do manual AMI. Nomes de vars mantidos p/ compat. */
:root {
  --verde: #101c30;           /* brand navy */
  --verde-escuro: #0b1222;    /* bg-dark */
  --verde-claro: #1a2a45;     /* brand-hover */
  --creme: #f5f0e8;           /* bg-primary */
  --areia: #ebe4d8;           /* bg-soft */
  --terracota: #c4a265;       /* accent-gold */
  --terracota-escuro: #d4b275;/* accent-gold-hover */
  --tinta: #0f1419;           /* text-primary */
  --tinta-suave: #4a5568;     /* text-secondary */
  --branco-quente: #fef9f1;
  --radius: 18px;
  --shadow: 0 18px 50px -18px rgba(11, 18, 34, 0.35);
  --font-display: "Archivo", "Helvetica Neue", sans-serif;
  --font-body: "Manrope", "Helvetica Neue", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--creme);
  color: var(--tinta);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
body::after { /* grain sutil */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 4; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 560; letter-spacing: -0.015em; line-height: 1.12; }
h1 { font-size: clamp(2.3rem, 6.4vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { color: var(--tinta-suave); }
a { color: inherit; }
img { max-width: 100%; }
.wrap { width: min(1120px, 92vw); margin-inline: auto; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--terracota); font-weight: 700; margin-bottom: 1rem;
}
.tag-placeholder { /* pendências P1-P7 visíveis */
  background: repeating-linear-gradient(-45deg, #fff3c9, #fff3c9 8px, #ffe9a3 8px, #ffe9a3 16px);
  border: 1px dashed #c9a227; border-radius: 6px; padding: 0 6px; font-size: 0.85em; color: #6b5510;
}

/* ——— Header ——— */
header.topo {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--creme) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid rgba(16, 28, 48, 0.12);
}
.topo-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 0; }
.logo { font-family: var(--font-display); font-size: 1.18rem; font-weight: 640; text-decoration: none; color: var(--verde); }
.logo span { color: var(--terracota); }
nav.principal { display: flex; gap: 1.4rem; align-items: center; }
nav.principal a { text-decoration: none; font-size: 0.95rem; color: var(--tinta-suave); font-weight: 600; }
nav.principal a:hover { color: var(--verde); }
nav.principal a.destaque {
  background: var(--verde); color: var(--creme); padding: 0.55rem 1.15rem; border-radius: 999px;
  transition: background 0.25s ease, transform 0.25s ease;
}
nav.principal a.destaque:hover { background: var(--terracota); transform: translateY(-1px); }
@media (max-width: 720px) { nav.principal a:not(.destaque) { display: none; } }

/* ——— Hero ——— */
.hero {
  position: relative; overflow: hidden; background: var(--verde); color: var(--creme);
  padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(4rem, 9vw, 7rem);
}
.hero::before { /* respiração — a metáfora do site */
  content: ""; position: absolute; width: 62vmax; height: 62vmax; border-radius: 50%;
  right: -22vmax; top: -18vmax;
  background: radial-gradient(circle at center, rgba(196, 162, 101, 0.30), rgba(196, 162, 101, 0.05) 55%, transparent 70%);
  animation: respirar 9s ease-in-out infinite;
}
.hero::after {
  content: ""; position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%;
  left: -18vmax; bottom: -26vmax;
  background: radial-gradient(circle at center, rgba(26, 42, 69, 0.9), transparent 65%);
  animation: respirar 11s ease-in-out infinite reverse;
}
@keyframes respirar { 0%, 100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.12); opacity: 1; } }
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { color: var(--branco-quente); max-width: 15ch; }
.hero h1 em { font-style: italic; color: var(--areia); }
.hero p.sub { color: rgba(245, 240, 232, 0.82); max-width: 52ch; margin: 1.4rem 0 2.2rem; font-size: 1.12rem; }
.prova-hero { display: flex; gap: 2.2rem; flex-wrap: wrap; margin-top: 3rem; }
.prova-hero .item strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--branco-quente); }
.prova-hero .item span { font-size: 0.85rem; color: rgba(245, 240, 232, 0.68); }

/* reveal escalonado */
.reveal { opacity: 0; transform: translateY(22px); animation: subir 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.reveal.d1 { animation-delay: 0.12s; } .reveal.d2 { animation-delay: 0.26s; }
.reveal.d3 { animation-delay: 0.4s; } .reveal.d4 { animation-delay: 0.55s; }
@keyframes subir { to { opacity: 1; transform: none; } }

/* ——— Botões ——— */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; border-radius: 999px;
  padding: 0.95rem 1.7rem; font-size: 1rem; border: 2px solid transparent; cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}
.btn-primario { background: var(--terracota); color: var(--verde-escuro); box-shadow: 0 12px 30px -12px rgba(196, 162, 101, 0.75); }
.btn-primario:hover { background: var(--terracota-escuro); transform: translateY(-2px); }
.btn-fantasma { border-color: rgba(245, 240, 232, 0.45); color: var(--creme); }
.btn-fantasma:hover { border-color: var(--creme); background: rgba(245, 240, 232, 0.08); }
.btn-verde { background: var(--verde); color: var(--creme); }
.btn-verde:hover { background: var(--verde-claro); transform: translateY(-2px); }
.acoes { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ——— Seções ——— */
section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.grade-2 { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 860px) { .grade-2 { grid-template-columns: 1fr 1fr; } .grade-2.inverte > :first-child { order: 2; } }
.cartao {
  background: var(--branco-quente); border-radius: var(--radius); padding: 2rem;
  border: 1px solid rgba(16, 28, 48, 0.1); box-shadow: var(--shadow);
}
.cartoes-3 { display: grid; gap: 1.4rem; margin-top: 2.5rem; }
@media (min-width: 860px) { .cartoes-3 { grid-template-columns: repeat(3, 1fr); } .cartoes-3 .cartao:nth-child(2) { transform: translateY(-14px); } }
.cartao h3 { color: var(--verde); margin-bottom: 0.6rem; }
.cartao .preco { font-family: var(--font-display); font-size: 1.5rem; color: var(--tinta); margin: 0.8rem 0; }
.cartao ul { list-style: none; margin: 1rem 0 1.4rem; }
.cartao ul li { padding-left: 1.5em; position: relative; margin-bottom: 0.45rem; color: var(--tinta-suave); font-size: 0.95rem; }
.cartao ul li::before { content: "✦"; position: absolute; left: 0; color: var(--terracota); }
.selo { display: inline-block; background: var(--areia); color: var(--verde); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 999px; padding: 0.25rem 0.8rem; margin-bottom: 0.9rem; }

/* demonstração de conversa */
.demo-chat { background: var(--verde-escuro); border-radius: calc(var(--radius) + 6px); padding: 1.6rem; box-shadow: var(--shadow); }
.demo-chat .balao { max-width: 85%; padding: 0.85rem 1.1rem; border-radius: 16px; margin-bottom: 0.8rem; font-size: 0.95rem; line-height: 1.5; }
.demo-chat .de-usuario { background: var(--areia); color: var(--tinta); margin-left: auto; border-bottom-right-radius: 4px; }
.demo-chat .de-mentor { background: rgba(245, 240, 232, 0.1); color: var(--creme); border-bottom-left-radius: 4px; }
.demo-chat .de-mentor strong { color: var(--branco-quente); }
.demo-chat .rotulo { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(245, 240, 232, 0.5); margin-bottom: 1rem; }

/* temas */
.temas { display: grid; gap: 1rem; margin-top: 2.2rem; }
@media (min-width: 720px) { .temas { grid-template-columns: repeat(4, 1fr); } }
.tema {
  background: var(--branco-quente); border: 1px solid rgba(16, 28, 48, 0.12); border-radius: 14px;
  padding: 1.3rem 1.1rem; font-weight: 700; color: var(--verde); font-size: 0.98rem;
  transition: transform 0.2s ease, border-color 0.2s ease; cursor: pointer; text-align: left; font-family: var(--font-body);
}
.tema:hover { transform: translateY(-3px); border-color: var(--terracota); }
.tema small { display: block; font-weight: 400; color: var(--tinta-suave); margin-top: 0.3rem; }

/* FAQ */
details.faq { background: var(--branco-quente); border: 1px solid rgba(16, 28, 48, 0.12); border-radius: 12px; padding: 1.1rem 1.3rem; margin-bottom: 0.8rem; }
details.faq summary { cursor: pointer; font-weight: 700; color: var(--verde); list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.4rem; color: var(--terracota); transition: transform 0.25s ease; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { margin-top: 0.7rem; font-size: 0.97rem; }

/* faixa escura */
.faixa { background: var(--verde); color: var(--creme); border-radius: calc(var(--radius) + 8px); padding: clamp(2.2rem, 5vw, 3.6rem); position: relative; overflow: hidden; }
.faixa::before { content: ""; position: absolute; width: 40vmax; height: 40vmax; border-radius: 50%; right: -16vmax; bottom: -24vmax; background: radial-gradient(circle, rgba(196, 162, 101, 0.28), transparent 65%); animation: respirar 10s ease-in-out infinite; }
.faixa > * { position: relative; }
.faixa h2 { color: var(--branco-quente); }
.faixa p { color: rgba(245, 240, 232, 0.8); }

/* ——— Rodapé ——— */
footer.rodape { background: var(--verde-escuro); color: rgba(245, 240, 232, 0.75); padding: 3.5rem 0 2rem; margin-top: 4rem; font-size: 0.92rem; }
.rodape-grid { display: grid; gap: 2rem; margin-bottom: 2.5rem; }
@media (min-width: 860px) { .rodape-grid { grid-template-columns: 2fr 1fr 1fr; } }
.rodape h4 { font-family: var(--font-display); color: var(--branco-quente); margin-bottom: 0.8rem; font-size: 1.05rem; }
.rodape a { color: rgba(245, 240, 232, 0.75); text-decoration: none; display: block; margin-bottom: 0.4rem; }
.rodape a:hover { color: var(--branco-quente); }
.aviso-cvv { border-top: 1px solid rgba(245, 240, 232, 0.15); padding-top: 1.4rem; font-size: 0.85rem; color: rgba(245, 240, 232, 0.6); }
.aviso-cvv strong { color: var(--areia); }

/* página interna simples */
.pagina-hero { background: var(--verde); color: var(--creme); padding: clamp(3.5rem, 8vw, 5.5rem) 0; position: relative; overflow: hidden; }
.pagina-hero h1 { color: var(--branco-quente); font-size: clamp(2rem, 5vw, 3.2rem); }
.pagina-hero p { color: rgba(245, 240, 232, 0.8); max-width: 60ch; margin-top: 1rem; }
.prosa { max-width: 72ch; }
.prosa h2 { margin: 2.4rem 0 0.8rem; color: var(--verde); }
.prosa ul { margin: 0.6rem 0 0.6rem 1.4rem; color: var(--tinta-suave); }

/* ═══ Widget do Mentor ═══ */
#mentor-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; border: none; cursor: pointer;
  width: 62px; height: 62px; border-radius: 50%; background: var(--terracota); color: #fff;
  font-size: 1.55rem; box-shadow: 0 16px 40px -10px rgba(196, 162, 101, 0.85);
  animation: pulsar 3.5s ease-in-out infinite; transition: transform 0.2s ease;
}
#mentor-fab:hover { transform: scale(1.08); }
@keyframes pulsar { 0%, 100% { box-shadow: 0 16px 40px -10px rgba(196, 162, 101, 0.85); } 50% { box-shadow: 0 16px 52px -6px rgba(212, 178, 117, 1); } }
#mentor-panel {
  position: fixed; right: 16px; bottom: 94px; z-index: 95; width: min(400px, calc(100vw - 32px));
  height: min(600px, calc(100dvh - 120px)); background: var(--branco-quente); border-radius: 20px;
  box-shadow: 0 30px 80px -20px rgba(11, 18, 34, 0.55); display: none; flex-direction: column; overflow: hidden;
  border: 1px solid rgba(16, 28, 48, 0.14);
}
#mentor-panel.aberto { display: flex; animation: subir 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.mp-header { background: var(--verde); color: var(--creme); padding: 1rem 1.2rem; display: flex; align-items: center; gap: 0.8rem; }
.mp-header .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--terracota); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }
.mp-header strong { display: block; font-size: 0.98rem; color: var(--branco-quente); }
.mp-header small { font-size: 0.75rem; color: rgba(245, 240, 232, 0.65); }
.mp-header button { margin-left: auto; background: none; border: none; color: var(--creme); font-size: 1.3rem; cursor: pointer; }
.mp-msgs { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: 0.7rem; background: linear-gradient(180deg, var(--creme), var(--branco-quente)); }
.mp-msg { max-width: 86%; padding: 0.8rem 1rem; border-radius: 15px; font-size: 0.94rem; line-height: 1.5; white-space: pre-wrap; }
.mp-msg.user { background: var(--verde); color: var(--creme); align-self: flex-end; border-bottom-right-radius: 4px; }
.mp-msg.mentor { background: var(--areia); color: var(--tinta); align-self: flex-start; border-bottom-left-radius: 4px; }
.mp-msg.crise { background: #fdeaea; border: 1.5px solid #c0392b; color: #6d1f16; }
.mp-msg.sistema { background: transparent; color: var(--tinta-suave); font-size: 0.8rem; text-align: center; align-self: center; }
.mp-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0 1.1rem 0.6rem; }
.mp-chip { background: var(--branco-quente); border: 1.5px solid var(--verde); color: var(--verde); border-radius: 999px; padding: 0.45rem 0.95rem; font-size: 0.85rem; font-weight: 700; cursor: pointer; font-family: var(--font-body); transition: background 0.2s; }
.mp-chip:hover { background: var(--areia); }
.mp-form { padding: 0.7rem 1.1rem; border-top: 1px solid rgba(16, 28, 48, 0.1); display: flex; gap: 0.6rem; background: var(--branco-quente); }
.mp-form input { flex: 1; border: 1.5px solid rgba(16, 28, 48, 0.2); border-radius: 999px; padding: 0.7rem 1.1rem; font-size: 0.95rem; font-family: var(--font-body); background: var(--creme); }
.mp-form input:focus { outline: 2px solid var(--terracota); border-color: transparent; }
.mp-form button { border: none; background: var(--terracota); color: #fff; border-radius: 50%; width: 44px; height: 44px; font-size: 1.1rem; cursor: pointer; }
.mp-form button:disabled { opacity: 0.45; cursor: default; }
.mp-disclaimer { font-size: 0.68rem; color: var(--tinta-suave); text-align: center; padding: 0.45rem 1rem 0.65rem; background: var(--branco-quente); }
.mp-disclaimer strong { color: #c0392b; }
.mp-cadastro { padding: 0.9rem 1.1rem; border-top: 1px solid rgba(16, 28, 48, 0.1); background: var(--creme); display: grid; gap: 0.55rem; }
.mp-cadastro input { border: 1.5px solid rgba(16, 28, 48, 0.2); border-radius: 10px; padding: 0.65rem 0.9rem; font-size: 0.9rem; font-family: var(--font-body); }
.mp-cadastro label { font-size: 0.74rem; color: var(--tinta-suave); display: flex; gap: 0.45rem; align-items: flex-start; }
.mp-cadastro .mp-acoes { display: flex; gap: 0.6rem; }
.mp-cadastro button { flex: 1; border: none; border-radius: 999px; padding: 0.7rem; font-weight: 700; cursor: pointer; font-family: var(--font-body); }
.mp-cadastro .salvar { background: var(--verde); color: var(--creme); }
.mp-cadastro .depois { background: transparent; border: 1.5px solid rgba(16, 28, 48, 0.25); color: var(--tinta-suave); }
.mp-restante { font-size: 0.7rem; color: var(--tinta-suave); text-align: right; padding: 0 1.2rem 0.3rem; }
@media (prefers-reduced-motion: reduce) { .hero::before, .hero::after, .faixa::before, #mentor-fab, .reveal { animation: none !important; opacity: 1; transform: none; } }
