/* Cadê Meu Dinheiro? — style.css
   Conceito: "a mesa do auditor forense" — papel de extrato + tinta de auditoria. */

:root {
  --paper:        #F4F6F2;
  --paper-raised: #FFFFFF;
  --ink:          #10241D;
  --ink-soft:     #46584F;
  --ledger-line:  #D7DED6;
  --money:        #147A4D;
  --money-deep:   #0B5C38;
  --alert:        #C93A2E;
  --alert-wash:   #FBEAE7;
  --stamp:        #B8860B;

  --font-display: 'Archivo', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  --h1: clamp(2.6rem, 9vw, 4.5rem);
  --h2: clamp(1.6rem, 5vw, 2.4rem);
  --body: 1.0625rem;
  --small: 0.875rem;
  --radius: 6px;
  --section-pad: clamp(56px, 10vw, 110px);
  --content-max: 1080px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0 0 0.8em; }
ul { padding-left: 1.1em; }

/* ---------- foco visível ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--money-deep);
  outline-offset: 2px;
}

/* ---------- layout util ---------- */
.section {
  padding: var(--section-pad) 20px;
}
.section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}
.section-inner--text {
  max-width: 720px;
}
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: var(--small);
  color: var(--ink-soft);
  margin-bottom: 1em;
}
h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--h1);
  letter-spacing: -0.02em;
  line-height: 1.02;
}
h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--h2);
  letter-spacing: -0.01em;
  line-height: 1.12;
}
.lede { font-size: 1.1em; color: var(--ink-soft); }
strong { font-weight: 600; }
.mono, .money-value { font-family: var(--font-mono); }

/* ---------- fade-up on scroll ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 350ms ease, transform 350ms ease;
}
.fade-up.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
}

/* ---------- word underline (squiggle) ---------- */
.word-underline {
  position: relative;
  display: inline-block;
}
.word-underline svg {
  position: absolute;
  left: -2%;
  bottom: -0.1em;
  width: 104%;
  height: 0.28em;
  overflow: visible;
}
.word-underline svg path {
  stroke: var(--alert);
  stroke-width: 6;
  fill: none;
  stroke-linecap: round;
}

/* ---------- botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  width: 100%;
  background: var(--money);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  padding: 1.05em 1.3em;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}
.btn:hover { background: var(--money-deep); }
.btn:active { transform: scale(0.99); }
@media (min-width: 560px) { .btn { width: auto; } }
.btn-wrap { text-align: center; }
.btn-micro {
  margin-top: 0.8em;
  font-size: var(--small);
  color: var(--ink-soft);
  font-family: var(--font-mono);
}

/* ---------- HERO ---------- */
.hero {
  padding-top: clamp(48px, 9vw, 90px);
}
.hero .section-inner { text-align: center; }
.hero h1 { margin-bottom: 0.5em; }
.hero .lede { max-width: 640px; margin: 0 auto 0.9em; }
.hero .lede-close { max-width: 640px; margin: 0 auto 1.6em; font-weight: 600; }
.hero .btn-wrap { margin-top: 1.6em; }

/* ---------- extrato (signature element) ---------- */
.extrato-card {
  position: relative;
  overflow: hidden;
  background: var(--paper-raised);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(16, 36, 29, .07);
  padding: 20px 16px;
  margin: 2.2em auto 0;
  max-width: 640px;
  text-align: left;
  border: 1px solid var(--ledger-line);
}
.extrato-header {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--ledger-line);
  padding-bottom: 0.8em;
  margin-bottom: 0.4em;
}
.scanner-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 60px;
  height: 3px;
  background: var(--money);
  box-shadow: 0 0 10px 2px rgba(20, 122, 77, .55);
  transform: translateY(0);
  opacity: 0;
  pointer-events: none;
}
.extrato-card.is-scanning .scanner-bar {
  opacity: 1;
  animation: scan-down 4s linear forwards;
}
@keyframes scan-down {
  from { transform: translateY(0); }
  to   { transform: translateY(220px); }
}
.ledger-row {
  display: flex;
  align-items: baseline;
  gap: 0.4em;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  padding: 0.5em 0;
  position: relative;
  flex-wrap: wrap;
}
.ledger-row .label { white-space: nowrap; }
.ledger-row .leader {
  flex: 1 1 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--ledger-line);
  min-width: 12px;
}
.ledger-row .leader::after {
  content: " . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ";
}
.ledger-row .value { white-space: nowrap; font-weight: 600; }
.ledger-row--desconto {
  border-radius: 4px;
  transition: background 300ms ease;
}
.ledger-row--desconto .value { transition: color 300ms ease; }
.ledger-row--desconto.is-active {
  background: var(--alert-wash);
}
.ledger-row--desconto.is-active .value { color: var(--alert); }
.ledger-row .badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--alert);
  border: 1px dashed var(--alert);
  border-radius: 999px;
  padding: 0.15em 0.6em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 300ms ease;
}
.ledger-row--desconto.is-active .badge { opacity: 1; }
.ledger-divider {
  border-top: 2px solid var(--ink);
  margin: 0.6em 0;
}
.ledger-row--total { font-weight: 700; font-size: 1rem; }
.ledger-row--total .value { color: var(--ink); }
.extrato-counter {
  margin-top: 1.2em;
  padding-top: 1em;
  border-top: 1px dashed var(--ledger-line);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.extrato-counter #counter-value {
  color: var(--alert);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: none;
  letter-spacing: 0;
}
.extrato-card.is-final .extrato-counter #counter-value {
  animation: pulse-once 480ms ease;
}
@keyframes pulse-once {
  0% { transform: scale(1); }
  40% { transform: scale(1.14); }
  100% { transform: scale(1); }
}
.extrato-final {
  margin-top: 0.7em;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--alert);
  font-size: 0.95rem;
}
.extrato-final[hidden] { display: none; }

/* ---------- Seção 2 — agitação ---------- */
.section--agitacao { background: var(--paper); }

/* ---------- Seção 3 — anatomia (tabela / cards) ---------- */
.anatomia-intro { max-width: 640px; }
.anatomia-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.4em;
}
.anatomia-table thead { display: none; }
.anatomia-table tr {
  display: block;
  background: var(--paper-raised);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(16, 36, 29, .07);
  padding: 1.1em 1.2em;
  margin-bottom: 1em;
}
.anatomia-table td {
  display: block;
  padding: 0.15em 0;
  border: none;
}
.anatomia-table td[data-label]::before {
  content: attr(data-label);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-top: 0.6em;
}
.anatomia-table td:first-child::before { display: none; }
.anatomia-table td.col-num {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--money);
  font-size: 0.85rem;
}
.anatomia-table td.col-nome {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
}
.anatomia-table td.col-problema { color: var(--alert); font-weight: 600; }
.anatomia-fechamento {
  margin-top: 1em;
  font-weight: 600;
}

@media (min-width: 768px) {
  .anatomia-table thead { display: table-header-group; }
  .anatomia-table { border: 1px solid var(--ledger-line); background: var(--paper-raised); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 12px rgba(16, 36, 29, .07); }
  .anatomia-table th {
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
    padding: 0.9em 1em;
    border-bottom: 1px solid var(--ledger-line);
  }
  .anatomia-table tr {
    display: table-row;
    background: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid var(--ledger-line);
  }
  .anatomia-table tr:last-child { border-bottom: none; }
  .anatomia-table td {
    display: table-cell;
    padding: 0.9em 1em;
    vertical-align: top;
  }
  .anatomia-table td[data-label]::before { display: none; }
}

/* ---------- Seção 4 — como funciona ---------- */
.passos { margin-top: 1.6em; display: grid; gap: 1.2em; }
.passo {
  background: var(--paper-raised);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(16, 36, 29, .07);
  padding: 1.4em 1.4em;
}
.passo-num {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--money);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4em;
}
.passo h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 0.4em;
}
.passo p { margin: 0; color: var(--ink-soft); }
@media (min-width: 768px) {
  .passos { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Seção 5 — o que você recebe ---------- */
.beneficios { list-style: none; padding: 0; margin: 1.6em 0; display: grid; gap: 1em; }
.beneficios li {
  display: flex;
  gap: 0.8em;
  align-items: flex-start;
}
.check-icon { flex: none; width: 22px; height: 22px; margin-top: 0.15em; }
.check-icon path { stroke: var(--money); stroke-width: 3.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.callout {
  margin-top: 1.6em;
  background: var(--paper-raised);
  border-left: 4px solid var(--money);
  border-radius: var(--radius);
  padding: 1.1em 1.3em;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(16, 36, 29, .07);
}

/* ---------- Seção 6 — dinheiro recuperável ---------- */
.section--recuperavel { background: var(--paper-raised); box-shadow: inset 0 1px 0 var(--ledger-line), inset 0 -1px 0 var(--ledger-line); }
.recuperavel-list { margin: 1.4em 0; display: grid; gap: 0.7em; }
.recuperavel-list .valor { color: var(--alert); font-weight: 700; }
.recuperavel-final { margin-top: 1.2em; font-weight: 700; font-size: 1.08em; }

/* ---------- Seção 7 — quem audita ---------- */
.autoridade-nota {
  margin-top: 1.4em;
  font-size: var(--small);
  color: var(--ink-soft);
  border-top: 1px dashed var(--ledger-line);
  padding-top: 1em;
}

/* ---------- Seção 8 — preço + garantia ---------- */
.oferta-box {
  background: var(--paper-raised);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(16, 36, 29, .07);
  padding: 1.6em 1.5em;
  margin-top: 1.4em;
}
.oferta-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9em; }
.oferta-box li { display: flex; gap: 0.7em; }
.oferta-box em { color: var(--ink-soft); font-style: normal; display: block; font-size: var(--small); }
.preco-linha {
  margin-top: 1.6em;
  text-align: center;
}
.preco-de {
  font-family: var(--font-mono);
  color: var(--ink-soft);
  text-decoration: line-through;
  font-size: 0.95rem;
  display: block;
}
.preco-por {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--money);
  display: block;
}
.preco-sub { font-size: var(--small); color: var(--ink-soft); }

.garantia-box {
  position: relative;
  margin-top: 1.8em;
  border: 2px solid var(--money);
  border-radius: var(--radius);
  padding: 1.6em 1.4em;
  background: var(--paper-raised);
  display: grid;
  gap: 1em;
  align-items: center;
}
.garantia-box h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  margin: 0;
}
.garantia-box p { margin: 0.5em 0 0; color: var(--ink-soft); }
.stamp {
  width: 108px;
  height: 108px;
  transform: rotate(-8deg);
  flex: none;
  margin: 0 auto;
}
.stamp-ring-outer { fill: none; stroke: var(--stamp); stroke-width: 3; }
.stamp-ring-inner { fill: none; stroke: var(--stamp); stroke-width: 1.5; }
.stamp-text { font-family: var(--font-mono); font-size: 11px; font-weight: 600; fill: var(--stamp); letter-spacing: 1px; }
.stamp-center { font-family: var(--font-display); font-weight: 900; font-size: 20px; fill: var(--stamp); }
@media (min-width: 640px) {
  .garantia-box { grid-template-columns: auto 1fr; text-align: left; }
  .stamp { margin: 0; }
}
.section--preco .btn-wrap { margin-top: 2em; }

/* ---------- Seção 9 — FAQ ---------- */
.faq-list { margin-top: 1.4em; display: grid; gap: 0.8em; }
.faq-item {
  background: var(--paper-raised);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(16, 36, 29, .07);
  padding: 0.2em 1.3em;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1em 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--money);
  flex: none;
  transition: transform 200ms ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 1.1em; margin: 0; color: var(--ink-soft); }
.faq-contato {
  margin-top: 1.6em;
  text-align: center;
  font-size: var(--small);
}
.faq-contato a { color: var(--money); font-weight: 600; text-decoration: underline; }

/* ---------- Seção 10 — CTA final ---------- */
.section--cta-final { text-align: center; }
.section--cta-final .section-inner--text { margin: 0 auto; }
.urgencia {
  margin-top: 1.6em;
  font-size: var(--small);
  color: var(--ink-soft);
}

/* ---------- footer ---------- */
footer {
  padding: 40px 20px 100px;
  text-align: center;
  font-size: var(--small);
  color: var(--ink-soft);
  border-top: 1px solid var(--ledger-line);
}
footer p { margin: 0 0 0.6em; }
footer a { text-decoration: underline; }
footer .footer-links { display: flex; gap: 1em; justify-content: center; flex-wrap: wrap; margin-top: 0.6em; }

/* ---------- sticky CTA mobile ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--paper-raised);
  border-top: 1px solid var(--ledger-line);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(16, 36, 29, .12);
  transform: translateY(110%);
  transition: transform 250ms ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn {
  flex-direction: column;
  gap: 0.15em;
  line-height: 1.2;
  padding: 0.75em 1em;
}
.sticky-cta .btn small {
  font-weight: 400;
  opacity: 0.85;
  font-size: 0.8rem;
}
@media (min-width: 1024px) {
  .sticky-cta { display: none; }
}

/* ---------- páginas simples (obrigado / privacidade / termos) ---------- */
.simple-page { max-width: 640px; margin: 0 auto; padding: var(--section-pad) 20px; }
.simple-page h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); margin-bottom: 0.6em; }
.simple-page h2 { font-size: 1.3rem; margin-top: 1.6em; }
.simple-page .btn-wrap { margin-top: 1.6em; }
.voltar-link { display: inline-block; margin-top: 2em; font-size: var(--small); text-decoration: underline; color: var(--ink-soft); }
