/* ============================================================
   FASSOLI CONTABILIDADE — Design System
   Tema claro · azul marinho + azul elétrico
   ============================================================ */

:root {
  /* Cores — marca */
  --logo: #3D5C9E;            /* azul royal do logo */
  --primary: #1E3A5F;         /* azul marinho — autoridade */
  --primary-light: #2C5282;   /* azul médio — links/hover */
  --accent: #2563EB;          /* azul elétrico — CTAs */
  --accent-hover: #1D4ED8;    /* CTA hover */
  --accent-soft: #EFF4FF;     /* fundo de chips/realces azuis */
  --sky: #0EA5E9;             /* azul claro — positivo */

  /* Superfícies */
  --bg: #FFFFFF;
  --bg-soft: #F6F8FB;         /* seções alternadas */
  --bg-softer: #EEF2F8;
  --bg-dark: #0E1C32;         /* footer / seções escuras */
  --bg-dark-2: #14264180;     /* sobreposição escura */

  /* Texto */
  --text: #16243B;
  --text-muted: #5B6B82;
  --text-faint: #8A98AC;
  --on-dark: #EAF1FB;
  --on-dark-muted: #9DB0CC;

  --border: #E3E9F1;
  --border-strong: #CDD7E5;

  /* Realce pontual (estrelas) — não é vermelho nem verde */
  --star: #F5A524;

  /* Tipografia */
  --font-display: 'DM Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --text-hero: clamp(2.6rem, 5.4vw, 4.6rem);
  --text-h1: clamp(2rem, 4vw, 3.4rem);
  --text-h2: clamp(1.7rem, 3vw, 2.7rem);
  --text-h3: clamp(1.2rem, 2vw, 1.6rem);
  --text-lead: clamp(1.05rem, 1.4vw, 1.3rem);

  /* Layout */
  --container: 1200px;
  --pad-x: clamp(1.15rem, 5vw, 2rem);
  --section-y: clamp(4rem, 8vw, 7.5rem);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(16,28,50,.05), 0 1px 1px rgba(16,28,50,.04);
  --shadow: 0 6px 24px -8px rgba(16,28,50,.16), 0 2px 6px -2px rgba(16,28,50,.08);
  --shadow-lg: 0 30px 70px -28px rgba(16,28,50,.45), 0 10px 30px -12px rgba(16,28,50,.18);
  --shadow-accent: 0 14px 34px -10px rgba(37,99,235,.5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.028em;
  margin: 0;
  color: var(--primary);
  text-wrap: balance;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }
/* duas seções cinza coladas: remove o padding duplicado entre elas */
.section--soft + .section--soft { padding-top: 0; }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.lead { font-size: var(--text-lead); color: var(--text-muted); line-height: 1.6; }
.text-em { font-style: italic; font-family: var(--font-display); }

/* ---------- Botões ---------- */
.btn {
  --bg-btn: var(--accent);
  --fg-btn: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 15px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--bg-btn);
  color: var(--fg-btn);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { box-shadow: var(--shadow-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--wa { --bg-btn: var(--accent); }
.btn--ghost {
  --bg-btn: transparent;
  --fg-btn: var(--primary);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--bg-soft); border-color: var(--primary-light); }
.btn--on-dark {
  --bg-btn: #fff; --fg-btn: var(--primary);
}
.btn--ghost-dark {
  --bg-btn: transparent; --fg-btn: var(--on-dark);
  border-color: rgba(255,255,255,.28);
}
.btn--ghost-dark:hover { background: rgba(255,255,255,.08); }
.btn--lg { padding: 18px 32px; font-size: 1.06rem; }
.btn .ico { width: 18px; height: 18px; flex: none; }

/* ---------- Badge / pill ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--primary);
  font-weight: 600;
  font-size: .85rem;
  border: 1px solid #DCE7FB;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sky); }

/* ---------- Card ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #D4E0F2;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Section heading block ---------- */
.head { max-width: 720px; }
.head h2 { font-size: var(--text-h2); margin-top: 1rem; }
.head .lead { margin-top: 1rem; }
.head--center { margin-inline: auto; text-align: center; }
.head--center .eyebrow { justify-content: center; }

/* ---------- Icon chip ---------- */
.ichip {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid #DCE7FB;
}
.ichip svg { width: 26px; height: 26px; }
.ichip--dark { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.16); }

/* utility */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.muted { color: var(--text-muted); }
.nowrap { white-space: nowrap; }
