/* =========================================================
   InfoTax · site institucional
   Cores da identidade do sistema: marinho e dourado
   ========================================================= */
:root {
  --marinho: #021933;
  --marinho-2: #06254a;
  --marinho-3: #0b2f5a;
  --ouro: #d9aa45;
  --ouro-claro: #f0c766;
  --ouro-degrade: linear-gradient(135deg, #f3cf72 0%, #d9aa45 55%, #b8862f 100%);
  --gelo: #eef5ff;
  --azul: #2f6fed;
  --tinta: #0d1b2e;
  --suave: #5b6b82;
  --fundo: #f4f6fb;
  --linha: #dfe6f0;
  --verde: #12a454;
  --vermelho: #d13c3c;
  --raio: 12px;
  --wrap: 1180px;
  --display: 'Sora', system-ui, sans-serif;
  --texto: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--texto); font-size: 17px; line-height: 1.6;
  color: var(--tinta); background: #fff; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; line-height: 1.12; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ouro-claro); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.pular { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.pular:focus { left: 16px; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px/1 var(--texto); text-decoration: none; border: 0; cursor: pointer;
  padding: 15px 24px; border-radius: 10px; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn-sm { padding: 11px 16px; font-size: 15px; }
.btn-ouro { background: var(--ouro-degrade); color: #1c1405; box-shadow: 0 8px 24px -10px rgba(217,170,69,.7); }
.btn-ouro:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(217,170,69,.85); }
.btn-linha { color: var(--gelo); box-shadow: inset 0 0 0 1px rgba(226,238,255,.35); }
.btn-linha:hover { background: rgba(226,238,255,.08); }

/* ---------- topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 50;
  background: rgba(2,25,51,.86); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(226,238,255,.08);
}
.topo-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.marca { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.marca b { color: var(--ouro-claro); font-weight: 700; }
.menu { display: flex; align-items: center; gap: 30px; }
.menu a:not(.btn) { color: rgba(226,238,255,.78); text-decoration: none; font-size: 15px; font-weight: 500; }
.menu a:not(.btn):hover { color: #fff; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s ease, top .2s ease; }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--gelo);
  background:
    radial-gradient(900px 600px at 85% 0%, rgba(78,146,255,.22), transparent 60%),
    radial-gradient(800px 600px at -5% 100%, rgba(217,170,69,.13), transparent 60%),
    linear-gradient(165deg, var(--marinho-2) 0%, var(--marinho) 50%, #010d1c 100%);
  padding: 84px 0 120px;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(191,221,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(191,221,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 35%, #000, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 70% at 70% 35%, #000, transparent 75%);
}
.hero-in { position: relative; display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.selo { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: rgba(226,238,255,.8); padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(226,238,255,.06); box-shadow: inset 0 0 0 1px rgba(226,238,255,.12); }
.selo i { width: 8px; height: 8px; border-radius: 50%; background: var(--ouro); box-shadow: 0 0 0 4px rgba(217,170,69,.2); }
.hero h1 span { white-space: nowrap; }
.hero h1 { font-size: clamp(40px, 5.2vw, 66px); font-weight: 800; line-height: 1.02; margin: 22px 0 22px; color: #fff; letter-spacing: -0.035em; }
.hero-sub { font-size: 19px; line-height: 1.55; color: rgba(226,238,255,.76); max-width: 30em; }
.hero-acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-fatos { list-style: none; margin: 46px 0 0; padding: 26px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; border-top: 1px solid rgba(226,238,255,.12); }
.hero-fatos strong { display: block; font-family: var(--display); font-weight: 600; font-size: 15px; color: #fff; }
.hero-fatos span { display: block; font-size: 14px; color: rgba(226,238,255,.6); line-height: 1.4; margin-top: 3px; }

.hero-visual { position: relative; padding-bottom: 40px; }
.janela { margin: 0; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px -24px rgba(4,23,46,.55), 0 0 0 1px rgba(4,23,46,.08); }
.janela .barra { height: 32px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #e9eef5; }
.janela .barra i { width: 10px; height: 10px; border-radius: 50%; background: #f26b5b; }
.janela .barra i:nth-child(2) { background: #f4bf4f; }
.janela .barra i:nth-child(3) { background: #61c454; }
.janela .barra span { margin-left: 10px; font-size: 12px; color: #7a8799; font-weight: 500; }
.janela-hero { transform: perspective(1600px) rotateY(-7deg) rotateX(2deg); transform-origin: left center; box-shadow: 0 40px 90px -24px rgba(0,0,0,.6), 0 0 0 1px rgba(226,238,255,.12); }

/* memória de cálculo: o detalhe marcante do hero */
.memoria {
  position: absolute; left: -44px; bottom: -6px; width: 300px;
  background: #fffdf7; color: var(--tinta); border-radius: 12px;
  box-shadow: 0 24px 50px -16px rgba(0,0,0,.55), 0 0 0 1px rgba(217,170,69,.35);
  padding: 18px 20px 16px; font-variant-numeric: tabular-nums;
}
.memoria::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ouro-degrade); border-radius: 12px 0 0 12px; }
.memoria-cab { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.memoria-cab span { font-family: var(--display); font-weight: 700; font-size: 15px; }
.memoria-cab small { font-size: 12px; color: var(--suave); }
.memoria ol { list-style: none; margin: 0; padding: 0; }
.memoria li { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 6px 0; border-bottom: 1px dashed #e3e7ee; }
.memoria li span { color: var(--suave); }
.memoria li b { font-weight: 600; }
.memoria-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 8px; border-top: 2px solid var(--tinta); }
.memoria-total span { font-weight: 600; font-size: 14px; }
.memoria-total b { font-family: var(--display); font-size: 21px; font-weight: 800; color: var(--marinho); }

/* animação única: as linhas da memória aparecem em sequência */
.js .memoria li, .js .memoria-total { opacity: 0; transform: translateY(4px); }
.memoria.rodando li, .memoria.rodando .memoria-total { animation: linha .4s ease forwards; }
.memoria.rodando li:nth-child(1) { animation-delay: .35s; }
.memoria.rodando li:nth-child(2) { animation-delay: .6s; }
.memoria.rodando li:nth-child(3) { animation-delay: .85s; }
.memoria.rodando li:nth-child(4) { animation-delay: 1.1s; }
.memoria.rodando li:nth-child(5) { animation-delay: 1.35s; }
.memoria.rodando .memoria-total { animation-delay: 1.75s; }
@keyframes linha { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js .memoria li, .js .memoria-total { opacity: 1; transform: none; animation: none !important; }
}

/* ---------- seções ---------- */
section { padding: 112px 0; }
.sec-cab { max-width: 640px; margin-bottom: 52px; }
.sec-cab h2, .desafio h2, .escritorio h2, .contato h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; }
.sec-cab p { margin-top: 14px; color: var(--suave); font-size: 18px; }

/* desafio */
.desafio { background: #fff; }
.desafio-in { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.lead { margin-top: 22px; font-size: 19px; color: var(--suave); max-width: 32em; }
.frase { margin-top: 30px; padding-left: 18px; border-left: 3px solid var(--ouro); font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.45; color: var(--marinho); max-width: 28em; }
.dores { margin: 0; display: grid; gap: 0; }
.dores > div { padding: 22px 0; border-top: 1px solid var(--linha); }
.dores > div:last-child { border-bottom: 1px solid var(--linha); }
.dores dt { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--marinho); }
.dores dd { margin: 6px 0 0; color: var(--suave); font-size: 16px; }

/* funções (vitrine com abas) */
.funcoes { background: var(--fundo); }
.vitrine { display: grid; grid-template-columns: 250px 1fr; gap: 44px; align-items: start; }
.abas { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 100px; }
.abas button {
  text-align: left; font: 500 16px/1.3 var(--texto); color: var(--suave);
  background: none; border: 0; cursor: pointer; padding: 13px 16px; border-radius: 10px;
  border-left: 3px solid transparent; transition: background-color .15s, color .15s;
}
.abas button:hover { color: var(--tinta); background: rgba(2,25,51,.04); }
.abas button[aria-selected="true"] { color: var(--marinho); font-weight: 600; background: #fff; border-left-color: var(--ouro); box-shadow: 0 1px 2px rgba(16,24,47,.06), 0 6px 18px -8px rgba(16,24,47,.12); }
.painel { display: grid; grid-template-columns: 1fr; gap: 26px; }
.painel[hidden] { display: none; }
.painel-texto h3 { font-size: 26px; font-weight: 700; color: var(--marinho); max-width: 22em; }
.painel-texto ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.painel-texto li { position: relative; padding-left: 22px; font-size: 16px; color: #344256; }
.painel-texto li::before { content: ''; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--ouro); }
.painel .janela img { width: 100%; max-height: 560px; object-fit: cover; object-position: top; }
.painel.entrando { animation: entra .3s ease; }
@keyframes entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .painel.entrando { animation: none; } }

/* resultados */
.resultados { background: #fff; }
.colunas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.coluna { border-top: 3px solid var(--marinho); padding-top: 22px; }
.coluna:nth-child(2) { border-top-color: var(--ouro); }
.coluna:nth-child(3) { border-top-color: var(--azul); }
.coluna h3 { font-size: 22px; font-weight: 700; color: var(--marinho); }
.coluna ul { list-style: none; margin: 16px 0 0; padding: 0; }
.coluna li { padding: 10px 0; border-bottom: 1px solid var(--linha); color: #344256; font-size: 16px; }
.exemplo {
  margin-top: 64px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  background: var(--marinho); color: var(--gelo); border-radius: 16px; padding: 30px 36px;
  background-image: radial-gradient(500px 220px at 100% 0%, rgba(217,170,69,.16), transparent 70%);
}
.exemplo > p { font-family: var(--display); font-weight: 600; font-size: 20px; color: #fff; }
.exemplo-num { display: flex; gap: 48px; font-variant-numeric: tabular-nums; }
.exemplo-num span { display: block; font-size: 14px; color: rgba(226,238,255,.65); }
.exemplo-num strong { display: block; font-family: var(--display); font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.exemplo-num .pos { color: #5fd69a; }
.exemplo-num .neg { color: #ff9a9a; }

/* escritório */
.escritorio { background: var(--fundo); }
.escritorio-in { display: grid; grid-template-columns: .82fr 1fr; gap: 80px; align-items: center; }
.folha { margin: 0; position: relative; }
.folha img { border-radius: 10px; box-shadow: 0 30px 60px -24px rgba(4,23,46,.35), 0 0 0 1px rgba(4,23,46,.06); transform: rotate(-2deg); max-height: 640px; width: auto; margin: 0 auto; }
.itens { margin: 30px 0 0; display: grid; gap: 22px; }
.itens dt { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--marinho); }
.itens dd { margin: 4px 0 0; color: var(--suave); font-size: 16px; }
.nota-nav { margin-top: 30px; font-size: 15px; color: var(--marinho); background: #fff; border-radius: 10px; padding: 14px 18px; box-shadow: inset 0 0 0 1px var(--linha); }

/* contato */
.contato {
  color: var(--gelo);
  background:
    radial-gradient(700px 500px at 0% 0%, rgba(217,170,69,.12), transparent 60%),
    linear-gradient(165deg, var(--marinho-2), var(--marinho) 60%, #010d1c);
}
.contato-in { display: grid; grid-template-columns: .85fr 1fr; gap: 72px; align-items: start; }
.contato h2 { color: #fff; }
.contato-texto > p { margin-top: 18px; font-size: 18px; color: rgba(226,238,255,.76); max-width: 26em; }
.contato-pontos { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 12px; }
.contato-pontos li { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 500; }
.contato-pontos li::before { content: ''; width: 20px; height: 20px; flex: none; border-radius: 50%; background: rgba(217,170,69,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.5 2.6 2.5L14 7.5' fill='none' stroke='%23f0c766' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 18px; background: #fff; color: var(--tinta); border-radius: 18px; padding: 34px; box-shadow: 0 30px 70px -30px rgba(0,0,0,.6); }
.campo { display: flex; flex-direction: column; gap: 7px; }
.campo-largo { grid-column: 1 / -1; }
.campo label { font-size: 14px; font-weight: 600; color: #344256; }
.campo input, .campo select, .campo textarea {
  font: 400 16px/1.4 var(--texto); color: var(--tinta); width: 100%;
  padding: 12px 14px; border: 1px solid #cfd8e5; border-radius: 10px; background: #fbfcfe;
  transition: border-color .15s, box-shadow .15s;
}
.campo textarea { resize: vertical; min-height: 110px; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 4px rgba(47,111,237,.15); background: #fff; }
.campo.erro input, .campo.erro textarea { border-color: var(--vermelho); }
.campo .msg-erro { font-size: 13px; color: var(--vermelho); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-rodape { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.form-status { font-size: 15px; color: var(--suave); }
.form-status.ok { color: var(--verde); font-weight: 500; }
.form-status.falha { color: var(--vermelho); }
.form-status a { color: var(--azul); }
.form button[disabled] { opacity: .65; cursor: progress; }

/* rodapé */
.rodape { background: #010d1c; color: rgba(226,238,255,.7); padding: 56px 0 28px; }
.rodape-in { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.rodape-marca { display: flex; align-items: center; gap: 16px; }
.rodape-marca p { font-size: 15px; max-width: 16em; }
.redes { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.redes a {
  display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gelo); font-size: 15px;
  padding: 10px 16px 10px 10px; border-radius: 999px; background: rgba(226,238,255,.05); box-shadow: inset 0 0 0 1px rgba(226,238,255,.1);
  transition: background-color .15s, box-shadow .15s;
}
.redes a:hover { background: rgba(217,170,69,.12); box-shadow: inset 0 0 0 1px rgba(217,170,69,.4); }
.redes svg { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--ouro-degrade); fill: none; stroke: #1c1405; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.redes svg .cheio { fill: #1c1405; }
.rodape-fim { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(226,238,255,.08); font-size: 14px; color: rgba(226,238,255,.45); }

/* ---------- responsivo ---------- */
@media (max-width: 1020px) {
  .hero-in, .desafio-in, .escritorio-in, .contato-in { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 64px 0 96px; }
  .hero-visual { max-width: 680px; margin-left: 40px; }
  .vitrine { grid-template-columns: 1fr; gap: 24px; }
  .abas { position: static; flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 6px; scrollbar-width: none; margin: 0 -24px; padding-left: 24px; padding-right: 24px; }
  .abas::-webkit-scrollbar { display: none; }
  .abas button { white-space: nowrap; flex: none; border-left: 0; padding: 10px 16px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--linha); font-size: 15px; }
  .abas button[aria-selected="true"] { background: var(--marinho); color: #fff; box-shadow: none; }
  .folha img { max-height: 480px; }
}
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .menu {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--marinho); padding: 8px 24px 24px; border-bottom: 1px solid rgba(226,238,255,.1);
    display: none;
  }
  .menu.aberto { display: flex; }
  .menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(226,238,255,.08); font-size: 17px; }
  .menu .btn { margin-top: 16px; }
  .colunas { grid-template-columns: 1fr; gap: 32px; }
  .painel-texto ul { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .abas { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  section { padding: 76px 0; }
  .hero-fatos { grid-template-columns: 1fr; gap: 12px; }
  .hero-visual { margin-left: 0; padding-bottom: 0; }
  .janela-hero { transform: none; }
  .memoria { position: relative; left: auto; bottom: auto; width: auto; margin: -36px 12px 0; }
  .hero-acoes .btn { flex: 1 1 100%; }
  .form { grid-template-columns: 1fr; padding: 24px 20px; }
  .exemplo { padding: 24px; }
  .exemplo-num { gap: 28px; }
  .exemplo-num strong { font-size: 26px; }
  .redes { flex-direction: column; width: 100%; }
  .redes a { width: 100%; }
  .marca span { font-size: 17px; }
}

/* crédito da desenvolvedora */
.rodape-fim { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.rodape-fim a { color: var(--ouro-claro); text-decoration: none; font-weight: 600; letter-spacing: .02em; }
.rodape-fim a:hover { text-decoration: underline; }
