/* =========================================================
   Eficaz Contabilidade — folha de estilos
   Conceito: "livro-razão" — linhas finas de régua, tons de
   tinta verde-escura e papel, acentos em latão. Precisão e
   confiança, sem clichês de SaaS genérico.
   ========================================================= */

:root {
  --ink: #17302A;
  --ink-soft: #24463C;
  --paper: #FBF8F2;
  --paper-alt: #F1ECE0;
  --line: #D9D0BC;
  --line-strong: #B9AD91;
  --accent: #A9762E;
  --accent-dark: #7E5A22;
  --text: #1E2420;
  --text-muted: #5B6259;
  --white: #FFFFFF;
  --danger: #9C3B2E;
  --radius-sm: 3px;
  --radius-md: 6px;
  --shadow-card: 0 1px 2px rgba(23, 48, 42, 0.06), 0 6px 20px rgba(23, 48, 42, 0.05);
  --max-width: 1120px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: none; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--accent-dark);
  margin: 0 0 10px;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 40px; width: 40px; border-radius: var(--radius-sm); }
.brand-name { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); line-height: 1.2; }
.brand-name small { display: block; font-family: var(--font-body); font-size: 0.7rem; color: var(--text-muted); font-weight: 400; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { text-decoration: none; font-size: 0.95rem; color: var(--ink-soft); }
.main-nav a:hover { color: var(--accent-dark); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); }
.btn-header { padding: 10px 20px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero { padding-top: 64px; padding-bottom: 64px; border-top: none; }
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy p.lede { font-size: 1.15rem; color: var(--text-muted); max-width: 46ch; }
.hero-cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--text-muted); }
.trust-item svg { flex: none; color: var(--accent-dark); }

.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.hero-media .ledger-tag {
  position: absolute;
  left: -18px;
  bottom: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: var(--shadow-card);
  font-size: 0.82rem;
  max-width: 220px;
}
.hero-media .ledger-tag strong { display: block; font-family: var(--font-display); color: var(--ink); font-size: 0.95rem; }

/* ---------- Benefícios ---------- */
.section-head { max-width: 62ch; margin-bottom: 48px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.benefit-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 26px;
}
.benefit-card .icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--paper-alt);
  color: var(--accent-dark);
  margin-bottom: 18px;
}
.benefit-card h3 { margin-bottom: 8px; }
.benefit-card p { margin-bottom: 0; font-size: 0.95rem; color: var(--text-muted); }

/* ---------- Como funciona ---------- */
.steps-wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--white); }
.step { padding: 30px 26px; border-left: 1px solid var(--line); }
.step:first-child { border-left: none; }
.step .step-number { font-family: var(--font-display); font-size: 1.5rem; color: var(--accent-dark); display: block; margin-bottom: 10px; }
.step h3 { font-size: 1.02rem; margin-bottom: 6px; }
.step p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0; }

/* ---------- Seção visual ---------- */
.split-section .container { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.split-media img { border-radius: var(--radius-md); width: 100%; aspect-ratio: 5/4; object-fit: cover; box-shadow: var(--shadow-card); }
.split-copy ul.check-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.split-copy .check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.96rem; }
.split-copy .check-list svg { flex: none; margin-top: 3px; color: var(--accent-dark); }

/* ---------- Diferenciais ---------- */
.diff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 40px; }
.diff-item { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.diff-item:nth-child(-n+2) { border-top: none; }
.diff-item .diff-index { font-family: var(--font-display); color: var(--line-strong); font-size: 1.3rem; width: 34px; flex: none; }
.diff-item h3 { font-size: 1.02rem; margin-bottom: 4px; }
.diff-item p { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}
.faq-question .plus { flex: none; font-size: 1.4rem; color: var(--accent-dark); transition: transform 200ms ease; line-height: 1; }
.faq-item[open] .faq-question .plus { transform: rotate(45deg); }
.faq-answer { padding: 0 4px 22px; color: var(--text-muted); font-size: 0.96rem; }
.faq-answer p { margin-bottom: 0; max-width: none; }

/* ---------- CTA final ---------- */
.cta-final { background: var(--ink); color: var(--paper); border-top: none; }
.cta-final h2 { color: var(--paper); }
.cta-final p { color: rgba(251, 248, 242, 0.78); }
.cta-final .container { text-align: center; max-width: 700px; }
.cta-final .btn-primary { background: var(--accent); }
.cta-final .btn-primary:hover { background: #C08A3B; }

/* ---------- Formulário ---------- */
.form-section .container { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-info .info-row { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .info-row svg { flex: none; color: var(--accent-dark); margin-top: 2px; }
.contact-info a { text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 32px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.form-row input, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--paper);
  color: var(--text);
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--accent); background: var(--white); }
.form-row textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 14px; margin-bottom: 0; }
.form-note a { color: var(--accent-dark); }
.form-honeypot { position: absolute; left: -9999px; top: -9999px; }
.form-status { border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 18px; font-size: 0.92rem; }
.form-status.success { background: #E7F0EA; border: 1px solid #B9D3BF; color: #24463C; }
.form-status.error { background: #F6E7E4; border: 1px solid #E0B7AF; color: var(--danger); }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--paper-alt); border-top: 1px solid var(--line); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 64px 0 40px;
}
.footer-brand .brand-name { color: var(--ink); }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 14px; }
.footer-col h3 { font-size: 0.86rem; text-transform: none; letter-spacing: 0; color: var(--ink); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { text-decoration: none; color: var(--text-muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent-dark); }
.footer-legal {
  border-top: 1px solid var(--line);
  padding: 20px 0 28px;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 560px;
  margin: 0 auto;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  z-index: 900;
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { color: rgba(251,248,242,0.82); font-size: 0.88rem; margin-bottom: 16px; }
.cookie-banner a { color: var(--paper); text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { padding: 10px 18px; font-size: 0.86rem; }
.cookie-actions .btn-outline { color: var(--paper); border-color: rgba(251,248,242,0.4); }
.cookie-actions .btn-outline:hover { border-color: var(--paper); }
.cookie-actions .btn-primary { background: var(--accent); }
.cookie-actions .btn-primary:hover { background: #C08A3B; }

.cookie-prefs { display: none; margin-top: 16px; border-top: 1px solid rgba(251,248,242,0.2); padding-top: 16px; }
.cookie-prefs.is-open { display: block; }
.cookie-pref-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 0.85rem; }
.cookie-pref-row span small { display: block; color: rgba(251,248,242,0.6); font-weight: 400; }

/* ---------- Páginas legais ---------- */
.legal-page section { padding: 56px 0; }
.legal-page h2 { margin-top: 1.6em; }
.legal-page ul { padding-left: 1.2em; }
.legal-content { max-width: 760px; }

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

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .hero .container, .split-section .container, .form-section .container { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .split-media { order: -1; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-wrap { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(3) { border-left: none; }
  .step:nth-child(odd) { border-left: none; }
  .step { border-top: 1px solid var(--line); }
  .step:nth-child(-n+2) { border-top: none; }
  .diff-grid { grid-template-columns: 1fr; }
  .diff-item:nth-child(-n+2) { border-top: 1px solid var(--line); }
  .diff-item:first-child { border-top: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  section { padding: 56px 0; }
  .main-nav { position: fixed; inset: 0; top: 68px; background: var(--paper); flex-direction: column; align-items: flex-start; padding: 28px 24px; gap: 22px; transform: translateX(100%); transition: transform 220ms ease; overflow-y: auto; }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { font-size: 1.05rem; }
  .nav-toggle { display: inline-flex; }
  .header-actions { display: flex; align-items: center; gap: 10px; }
  .card-grid { grid-template-columns: 1fr; }
  .steps-wrap { grid-template-columns: 1fr; }
  .step { border-left: none !important; border-top: 1px solid var(--line); }
  .step:first-child { border-top: none; }
  .footer-grid { grid-template-columns: 1fr; padding-top: 48px; }
  .footer-legal { flex-direction: column; }
  .hero-media .ledger-tag { left: 12px; bottom: 12px; max-width: none; right: 12px; }
}

@media (prefers-color-scheme: dark) {
  /* Site mantém tema claro fixo (papel/tinta) por identidade de marca;
     apenas reforça contraste do banner de cookies em SO com tema escuro. */
}
