/* Iniciativa: cores e tipografia seguem marca/manual-da-marca.html */
:root {
  --navy: #101B3A;
  --navy-2: #1B2850;
  --amber: #F59E0B;
  --off: #F8F6F1;
  --paper: #FFFDF9;
  --slate: #5B6475;
  --mist: #A9B0C2;
  --line: #E4E1D8;
  --display: "Sora", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --text: "Inter", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--off); color: var(--navy); font-family: var(--text); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ol, ul { margin: 0; }
h1, h2, h3, .frase { font-family: var(--display); font-weight: 700; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); max-width: 22ch; }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
a { color: inherit; }
em { font-style: normal; color: var(--amber); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }
.estreito { max-width: 800px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--amber); color: var(--navy); padding: 8px 14px; border-radius: 8px; }

.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: var(--slate); max-width: 56ch; }
.obs { font-size: .92rem; color: var(--slate); margin-top: 20px; }

.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--amber); color: var(--navy); font-weight: 600; text-decoration: none; padding: 14px 24px; border-radius: 12px; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(245, 158, 11, .35); }
.btn-sm { padding: 9px 16px; border-radius: 10px; font-size: .95rem; }
.link { font-weight: 600; text-underline-offset: 4px; }

/* Topo */
.topo { position: sticky; top: 0; z-index: 20; background: var(--navy); color: var(--off); }
.topo-in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.topo nav { display: flex; gap: 24px; margin-left: auto; font-size: .95rem; }
.topo nav a { text-decoration: none; color: var(--mist); }
.topo nav a:hover { color: var(--off); }
.marca { flex: none; }

/* Hero */
.hero { background: var(--navy); color: var(--off); padding-block: clamp(48px, 8vw, 104px); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-txt { display: flex; flex-direction: column; gap: 22px; }
.hero .eyebrow { color: var(--amber); margin: 0; }
.hero .lead, .final .lead { color: var(--mist); }
.acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 6px; }
.nota { font-size: .92rem; color: var(--mist); }

.chat { background: var(--navy-2); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 10px; font-size: .98rem; }
.chat-topo, .chat-pe { font-size: .8rem; color: var(--mist); text-align: center; }
.chat-pe { margin-top: 6px; }
.balao { max-width: 82%; padding: 10px 14px; border-radius: 16px; line-height: 1.4; }
.deles { align-self: flex-start; background: var(--off); color: var(--navy); border-bottom-left-radius: 4px; }
.nosso { align-self: flex-end; background: var(--amber); color: var(--navy); border-bottom-right-radius: 4px; }

/* Blocos */
.bloco { padding-block: clamp(56px, 8vw, 96px); }
.bloco + .bloco { border-top: 1px solid var(--line); }
.faixa { background: var(--paper); border-block: 1px solid var(--line); }
.faixa + .bloco { border-top: 0; }
.frase { font-size: clamp(1.6rem, 3.8vw, 2.7rem); max-width: 26ch; margin-bottom: 20px; }

.cards { display: grid; gap: 20px; margin-top: 36px; padding: 0; list-style: none; }
.c3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.c4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card p { color: var(--slate); font-size: .98rem; }
.card .tag { color: var(--navy); font-weight: 600; font-size: .9rem; margin-top: auto; padding-top: 8px; }
.destaque { border-top: 5px solid var(--amber); }
.passos .n { width: 44px; height: 44px; border-radius: 13px; background: var(--amber); color: var(--navy); font-family: var(--display); font-weight: 700; display: grid; place-items: center; margin-bottom: 6px; }

.tabela { overflow-x: auto; margin-top: 36px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: .98rem; }
th, td { text-align: left; padding: 16px 20px; vertical-align: top; }
thead th { background: var(--navy); color: var(--off); font-weight: 600; }
tbody tr + tr > * { border-top: 1px solid var(--line); }
tbody th { font-weight: 600; width: 30%; }
tbody td:last-child { font-weight: 500; }
tbody td:nth-child(2) { color: var(--slate); }

.duas { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px 64px; align-items: start; }
.texto { display: flex; flex-direction: column; gap: 16px; font-size: 1.08rem; }

.faq { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
details { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; }
summary { cursor: pointer; font-family: var(--display); font-weight: 600; padding: 18px 28px 18px 0; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--slate); }
details[open] summary::after { content: "–"; }
details p { color: var(--slate); padding-bottom: 20px; max-width: 62ch; }

.final { background: var(--navy); color: var(--off); padding-block: clamp(64px, 9vw, 112px); }
.final .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.final h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 20ch; }

.rodape { background: var(--navy); color: var(--mist); border-top: 1px solid var(--navy-2); padding-block: 36px; font-size: .92rem; }
.rodape-in { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.rodape ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.rodape a { color: var(--off); }
.copy { margin-left: auto; }

.notfound { min-height: 100vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; max-width: 560px; margin: 0 auto; padding: 24px; }
.notfound p { color: var(--slate); }

@media (max-width: 820px) {
  .hero-in { grid-template-columns: 1fr; }
  .topo nav { display: none; }
  .topo .btn-sm { margin-left: auto; }
  .copy { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ---------- Vida e movimento ---------- */

/* Ícones */
.ico { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.card > .ico { width: 44px; height: 44px; padding: 9px; border-radius: 13px; background: rgba(245, 158, 11, .16); color: var(--navy); margin-bottom: 4px; }
.card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(16, 27, 58, .10); border-color: #d6d2c6; }

/* Faixas escuras */
.escuro { background: var(--navy); color: var(--off); }
.bloco.escuro, .bloco.escuro + .bloco { border-top: 0; }
.escuro .eyebrow { color: var(--amber); }
.escuro .lead { color: var(--mist); }
.escuro .card { background: var(--navy-2); border-color: transparent; }
.escuro .card p { color: var(--mist); }
.escuro .card > .ico { background: var(--amber); color: var(--navy); }
.escuro .card:hover { box-shadow: 0 14px 30px rgba(0, 0, 0, .35); border-color: rgba(245, 158, 11, .5); }

/* Hero: halo e reflexo do botão */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 70vmax; height: 70vmax; right: -25vmax; top: -30vmax; background: radial-gradient(circle, rgba(245, 158, 11, .20), rgba(245, 158, 11, 0) 62%); animation: halo 14s ease-in-out infinite alternate; pointer-events: none; }
.hero-in { position: relative; }
@keyframes halo { from { transform: translate(0, 0) scale(1); } to { transform: translate(-14vmax, 12vmax) scale(1.15); } }
.brilho { position: relative; overflow: hidden; }
.brilho::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-18deg); animation: reflexo 4.5s ease-in-out infinite; }
@keyframes reflexo { 0%, 62% { left: -60%; } 86%, 100% { left: 130%; } }

/* Conversa animada */
.msg { display: flex; position: relative; }
.msg.deles { justify-content: flex-start; }
.msg.nosso { justify-content: flex-end; }
.msg .balao { transition: opacity .35s ease, transform .35s ease; }
.msg.deles .balao { background: var(--off); color: var(--navy); border-bottom-left-radius: 4px; }
.msg.nosso .balao { background: var(--amber); color: var(--navy); border-bottom-right-radius: 4px; }
.digitando { position: absolute; right: 0; top: 0; display: none; gap: 5px; padding: 13px 14px; border-radius: 16px; border-bottom-right-radius: 4px; background: var(--amber); }
.digitando i { width: 7px; height: 7px; border-radius: 50%; background: var(--navy); animation: ponto 1s infinite ease-in-out; }
.digitando i:nth-child(2) { animation-delay: .15s; }
.digitando i:nth-child(3) { animation-delay: .3s; }
@keyframes ponto { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.msg[data-s="0"] .balao, .msg[data-s="1"] .balao { opacity: 0; transform: translateY(8px); }
.msg[data-s="1"] .digitando { display: inline-flex; }

/* Passos como linha do tempo */
.linha { --p: 1; list-style: none; padding: 0; margin: 44px 0 0; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.linha::before, .linha::after { content: ""; position: absolute; left: 22px; right: 22px; top: 21px; height: 3px; border-radius: 2px; background: var(--line); }
.linha::after { background: var(--amber); transform-origin: left center; transform: scaleX(var(--p)); transition: transform .15s linear; }
.linha li { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; }
.linha .n { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; background: var(--paper); color: var(--slate); border: 2px solid var(--line); margin-bottom: 10px; transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s ease; }
.linha li.ativo .n { background: var(--amber); border-color: var(--amber); color: var(--navy); transform: scale(1.08); }
.linha p { color: var(--slate); font-size: .98rem; }

/* Abas */
.abas { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; padding: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.abas button { font: inherit; font-weight: 600; color: var(--slate); background: transparent; border: 0; padding: 10px 18px; border-radius: 10px; cursor: pointer; transition: background .2s ease, color .2s ease; }
.abas button:hover { color: var(--navy); }
.abas button[aria-selected="true"] { background: var(--navy); color: var(--off); }
.abas + .tabela, .tabela + .tabela { margin-top: 16px; }
.tabela:not([hidden]) { animation: troca .35s ease; }
@keyframes troca { from { opacity: 0; transform: translateY(8px); } }

/* Botão flutuante (celular) */
.flutuante { display: none; }
@media (max-width: 820px) {
  .flutuante { position: fixed; z-index: 30; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 8px; background: var(--amber); color: var(--navy); font-weight: 600; text-decoration: none; padding: 12px 18px; border-radius: 999px; box-shadow: 0 10px 26px rgba(16, 27, 58, .35); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
  .flutuante.visivel { opacity: 1; transform: none; pointer-events: auto; }
  .flutuante .ico { width: 22px; height: 22px; }
  .linha { grid-template-columns: 1fr; gap: 26px; }
  .linha::before, .linha::after { left: 20px; right: auto; top: 22px; bottom: 22px; width: 3px; height: auto; }
  .linha::after { transform-origin: center top; transform: scaleY(var(--p)); }
  .linha li { padding-left: 64px; min-height: 44px; }
  .linha .n { position: absolute; left: 0; top: 0; margin: 0; }
}

/* Entrada ao rolar: só quando o JavaScript está ativo */
.js .rev { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--i, 0) * 90ms); }
.js .rev.visivel { opacity: 1; transform: none; }
.js .card.rev.visivel { transition: opacity .6s ease, transform .2s ease, box-shadow .2s ease, border-color .2s ease; }

@media (prefers-reduced-motion: reduce) {
  .hero::before, .brilho::after, .digitando i, .tabela:not([hidden]) { animation: none; }
  .js .rev { opacity: 1; transform: none; transition: none; }
  .card, .linha::after, .linha .n, .flutuante { transition: none; }
  .card:hover { transform: none; }
}

/* Ajustes: o fundo do balão fica só no balão, não na linha da mensagem */
.msg.deles, .msg.nosso { background: none; border-radius: 0; align-self: stretch; }
@media (max-width: 480px) {
  .abas { display: flex; flex-wrap: nowrap; }
  .abas button { flex: 1; padding: 10px 8px; font-size: .92rem; }
}
