/* =========================================================
   Auditec Contabilidade — Design tokens
   Paleta inspirada em ledgers/documentos contábeis:
   tinta (navy), papel (cream) e dourado (destaque/CTA).
   ========================================================= */
:root {
  --ink: #16233F;
  --ink-2: #1F3358;
  --ink-soft: #3A4A6B;
  --paper: #F6F4EF;
  --paper-2: #EFEBE2;
  --paper-line: #E4DECD;
  --gold: #B08D3D;
  --gold-dark: #8E702C;
  --text: #23262B;
  --text-muted: #5B6472;
  --line: rgba(22, 35, 63, 0.12);
  --surface: #FFFFFF;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shadow-card: 0 1px 2px rgba(22,35,63,0.06);
  --maxw: 1120px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* O site usa intencionalmente um único tema claro (papel/tinta), que já tem
   bom contraste. Ainda assim declaramos o color-scheme para que campos de
   formulário, scrollbars etc. respeitem o modo do sistema do visitante. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark light; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 0; top: -48px; background: var(--ink); color: #fff;
  padding: 12px 18px; z-index: 1000; transition: top .15s ease;
}
.skip-link:focus { top: 0; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { max-width: 62ch; color: var(--text); }
p.lede { font-size: 1.15rem; color: var(--text-muted); }

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink h2, .section--ink h3 { color: var(--paper); }
.section--ink p { color: #C7CCD6; }
.section--alt { background: var(--paper-2); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head--center { max-width: 680px; margin-left: auto; margin-right: auto; text-align: center; }

.rule {
  border: none;
  border-top: 1px solid var(--paper-line);
  margin: 0;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-s);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--gold); color: var(--ink); }
.btn--primary:hover { background: var(--gold-dark); color: #fff; }
.btn--outline { background: transparent; color: var(--paper); border-color: rgba(246,244,239,0.5); }
.btn--outline:hover { background: rgba(246,244,239,0.1); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--paper-2); }
.btn--small { padding: 10px 18px; font-size: 0.92rem; }
.btn--block { width: 100%; justify-content: center; }

.link-button {
  background: none; border: none; padding: 0; color: var(--ink);
  text-decoration: underline; cursor: pointer; font: inherit;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246,244,239,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.brand__logo { height: 36px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.98rem; }
.site-nav a.btn { color: var(--ink); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: 1px solid var(--line); border-radius: var(--radius-s);
  cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 0 auto; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .site-nav.is-open { max-height: 320px; }
  .site-nav a { padding: 16px 24px; border-top: 1px solid var(--line); }
  .site-nav a.btn { margin: 16px 24px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 80px;
  background: var(--paper);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero__trust {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--paper-line);
}
.hero__trust li { list-style: none; display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 0.94rem; }
.hero__trust li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none;
}
.hero__cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero__art { animation: heroReveal .7s ease both; }
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 320px; margin: 0 auto; }
}

/* ---------- Cards de benefícios ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .cards-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .cards-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 28px 26px;
  position: relative;
  box-shadow: var(--shadow-card);
}
.card::before {
  content: "";
  position: absolute; top: 0; left: 26px; right: 26px; height: 3px;
  background: var(--gold); border-radius: 0 0 4px 4px;
}
.card__icon { width: 42px; height: 42px; margin-bottom: 16px; color: var(--gold); }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.98rem; }

/* ---------- Como funciona (etapas numeradas) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step { padding-top: 8px; border-top: 2px solid var(--paper-line); }
.step__num {
  display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--gold);
  margin-bottom: 10px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { font-size: 0.95rem; color: var(--text-muted); margin: 0; }

/* ---------- Seção visual ---------- */
.visual-banner {
  border-radius: var(--radius-l);
  overflow: hidden;
}
.visual-banner img { width: 100%; }

/* ---------- Diferenciais ---------- */
.diff-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (max-width: 700px) { .diff-list { grid-template-columns: 1fr; } }
.diff-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 0;
  border-top: 1px solid rgba(246,244,239,0.14);
}
.diff-list strong { display: block; color: var(--paper); font-family: var(--font-display); font-weight: 600; }
.diff-list span { color: #C7CCD6; font-size: 0.95rem; }
.diff-icon { flex: none; width: 22px; height: 22px; color: var(--gold); margin-top: 3px; }

.stat-row { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 40px; }
.stat-row .stat b {
  display: block; font-family: var(--font-display); font-size: 2.1rem; color: var(--gold);
}
.stat-row .stat span { color: #C7CCD6; font-size: 0.9rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--paper-line);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.4rem;
  color: var(--gold);
  flex: none;
  transition: transform .15s ease;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 20px; margin: 0; color: var(--text-muted); }

/* ---------- CTA final ---------- */
.cta-final {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 56px;
  text-align: center;
}
@media (max-width: 640px) { .cta-final { padding: 36px 22px; } }

/* ---------- Formulário ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 40px;
  box-shadow: var(--shadow-card);
}
@media (max-width: 640px) { .form-card { padding: 26px 20px; } }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.form-field input, .form-field textarea, .form-field select {
  font: inherit;
  padding: 12px 14px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 18px; }
.form-actions { margin-top: 24px; }

.alert { padding: 16px 18px; border-radius: var(--radius-s); margin-bottom: 24px; font-size: 0.95rem; }
.alert--success { background: #E9F3EA; color: #205026; border: 1px solid #BEDCC2; }
.alert--error { background: #FBEAEA; color: #7A2323; border: 1px solid #F0C4C4; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #C7CCD6;
  padding: 64px 0 0;
  font-size: 0.92rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(246,244,239,0.14);
}
@media (max-width: 800px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__col p { margin: 0 0 8px; color: #AEB5C2; max-width: none; }
.site-footer__col a { color: #C7CCD6; text-decoration: none; }
.site-footer__col a:hover { color: #fff; text-decoration: underline; }
.site-footer__logo { margin-bottom: 14px; }
.site-footer__heading { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: #8890A0; font-family: var(--font-body); margin-bottom: 14px; font-weight: 700; }
.site-footer__bottom { padding: 22px 0; font-size: 0.82rem; color: #8890A0; }
.link-button { color: #C7CCD6; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 500;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  box-shadow: 0 8px 30px rgba(22,35,63,0.18);
  max-width: 760px; margin: 0 auto;
}
.cookie-banner__inner { padding: 22px 24px; }
.cookie-banner p { font-size: 0.92rem; color: var(--text-muted); margin: 0 0 14px; max-width: none; }
.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.cookie-modal {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(22,35,63,0.55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.cookie-modal__panel {
  background: var(--surface); border-radius: var(--radius-m);
  max-width: 480px; width: 100%; padding: 30px; max-height: 86vh; overflow-y: auto;
}
.cookie-modal__panel h2 { margin-bottom: 10px; }
.cookie-modal__panel > p { font-size: 0.92rem; color: var(--text-muted); }
.cookie-modal__item {
  display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;
  padding: 16px 0; border-top: 1px solid var(--paper-line);
}
.cookie-modal__item p { font-size: 0.85rem; color: var(--text-muted); margin: 4px 0 0; }
.cookie-modal__item input { margin-top: 4px; flex: none; width: 20px; height: 20px; }
.cookie-modal__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }

/* ---------- Página legal (privacidade/termos/cookies) ---------- */
.legal {
  padding: 64px 0 96px;
}
.legal .wrap { max-width: 800px; }
.legal h1 { margin-bottom: 6px; }
.legal .legal__updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.25rem; margin-top: 40px; }
.legal p, .legal li { color: var(--text); max-width: none; }
.legal ul { padding-left: 20px; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); font-size: 0.92rem; }
.legal th { background: var(--paper-2); }
