/* ============================================
   CF CONTÁBIL — IRPF 2026 MICROSITE
   Design: Authoritative / Corporate / Clean
   Palette: Navy Blue + Gold accent + neutral
   Fonts: Playfair Display (display) + DM Sans (body)
============================================ */

/* ===== DESIGN TOKENS ===== */
:root {
  /* Type scale — fluid */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --content-narrow: 640px;
  --content-default: 1000px;
  --content-wide: 1200px;
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Fonts */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body:    'DM Sans', 'Helvetica Neue', sans-serif;
}

/* ===== LIGHT MODE (default) ===== */
:root, [data-theme="light"] {
  --color-bg:              #f8f9fc;
  --color-surface:         #ffffff;
  --color-surface-2:       #f2f4f8;
  --color-surface-offset:  #eaecf2;
  --color-divider:         #dde0ea;
  --color-border:          #d0d4e1;

  --color-text:            #0f1629;
  --color-text-muted:      #5a6179;
  --color-text-faint:      #a8adbe;
  --color-text-inverse:    #ffffff;

  /* Primary: CF Contábil Navy Blue #1a1a6e */
  --color-primary:         #1a1a6e;
  --color-primary-hover:   #131358;
  --color-primary-active:  #0d0d42;
  --color-primary-highlight: #d6d6f0;

  /* Gold accent: CF Contábil Yellow/Gold #f5c200 */
  --color-gold:            #d4a800;
  --color-gold-hover:      #b08c00;
  --color-gold-highlight:  #fff8d6;

  /* Green (success) */
  --color-success:         #1e7e44;
  --color-success-hover:   #155e31;
  --color-success-highlight: #d2eedb;

  /* Error */
  --color-error:           #c0392b;
  --color-error-hover:     #96261e;
  --color-error-highlight: #fde8e6;

  /* WhatsApp green */
  --color-whatsapp:        #25d366;
  --color-whatsapp-hover:  #1da851;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 22, 41, 0.07);
  --shadow-md: 0 4px 16px rgba(15, 22, 41, 0.10);
  --shadow-lg: 0 16px 40px rgba(15, 22, 41, 0.14);
  --shadow-xl: 0 24px 64px rgba(15, 22, 41, 0.18);
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
  --color-bg:              #0d1017;
  --color-surface:         #141922;
  --color-surface-2:       #1a2130;
  --color-surface-offset:  #1f2838;
  --color-divider:         #252e3f;
  --color-border:          #2e3a4f;

  --color-text:            #e2e6f0;
  --color-text-muted:      #7a8499;
  --color-text-faint:      #424d64;
  --color-text-inverse:    #0d1017;

  --color-primary:         #6b6bca;
  --color-primary-hover:   #8282d8;
  --color-primary-active:  #9999e2;
  --color-primary-highlight: #1e1e42;

  --color-gold:            #f5c200;
  --color-gold-hover:      #ffd433;
  --color-gold-highlight:  #2a2200;

  --color-success:         #3daf64;
  --color-success-hover:   #52c478;
  --color-success-highlight: #0f2d1b;

  --color-error:           #e05c4c;
  --color-error-hover:     #ec6f60;
  --color-error-highlight: #2a0f0c;

  --color-whatsapp:        #25d366;
  --color-whatsapp-hover:  #3de07a;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.5);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.6);
}

/* System preference fallback */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0d1017; --color-surface: #141922; --color-surface-2: #1a2130;
    --color-surface-offset: #1f2838; --color-divider: #252e3f; --color-border: #2e3a4f;
    --color-text: #e2e6f0; --color-text-muted: #7a8499; --color-text-faint: #424d64;
    --color-text-inverse: #0d1017; --color-primary: #4a7eb5; --color-primary-hover: #5f91c7;
    --color-primary-active: #74a4d9; --color-primary-highlight: #1e2d42;
    --color-gold: #e8a83a; --color-gold-highlight: #2a2210;
    --color-success: #3daf64; --color-success-highlight: #0f2d1b;
    --color-error: #e05c4c; --color-error-highlight: #2a0f0c;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3); --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 16px 40px rgba(0,0,0,0.5); --shadow-xl: 0 24px 64px rgba(0,0,0,0.6);
  }
}

/* ===== BASE RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-20);
}
body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.65;
  transition: background-color 0.3s, color 0.3s;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); text-wrap: balance; line-height: 1.2; }
p, li { text-wrap: pretty; }
button { cursor: pointer; background: none; border: none; }
table { border-collapse: collapse; width: 100%; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-hover); }
::selection { background: var(--color-primary-highlight); color: var(--color-text); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 5vw, var(--space-16));
}
.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-12);
}
.section-header h2 {
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.section-header p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 56ch;
  margin-inline: auto;
}
.section-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  background: var(--color-gold-highlight);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

/* ===== TYPOGRAPHY HELPERS ===== */
.accent-text { color: var(--color-gold); }
.highlight-date { color: var(--color-gold); font-style: normal; }
em { font-style: italic; color: var(--color-gold); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
}
.btn-sm  { font-size: var(--text-xs); padding: var(--space-2) var(--space-4); }
.btn-md  { font-size: var(--text-sm); padding: var(--space-3) var(--space-6); }
.btn-lg  { font-size: var(--text-sm); padding: var(--space-4) var(--space-8); }
.btn-block { width: 100%; justify-content: center; }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}
.btn-primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); color: var(--color-text-inverse); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--color-text-inverse);
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.7); color: white; }

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary-highlight); }

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
  border-color: var(--color-whatsapp);
}
.btn-whatsapp:hover { background: var(--color-whatsapp-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* ===== LOGO ===== */
.logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: white;
}
.footer-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: white;
  padding: 4px;
  margin-bottom: var(--space-3);
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-divider);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-4);
}
.logo { display: flex; align-items: center; gap: var(--space-2); }
.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.header-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.header-nav a:hover { color: var(--color-primary); }
.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: background var(--transition), color var(--transition);
}
.theme-toggle:hover { background: var(--color-surface-2); color: var(--color-text); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-2);
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6) var(--space-6);
  border-top: 1px solid var(--color-divider);
  background: var(--color-surface);
}
.mobile-nav-link {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
}
.mobile-nav-cta { margin-top: var(--space-4); justify-content: center; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 20, 50, 0.88) 0%,
    rgba(10, 20, 50, 0.72) 50%,
    rgba(10, 20, 50, 0.55) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-24) var(--space-20);
  max-width: 780px;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(200, 146, 26, 0.2);
  border: 1px solid rgba(200, 146, 26, 0.4);
  color: #f5c56a;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #f5c56a;
  flex-shrink: 0;
}
.badge-dot.pulse {
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero-content h1 {
  font-size: var(--text-2xl);
  color: #ffffff;
  margin-bottom: var(--space-6);
  max-width: 18ch;
  line-height: 1.18;
}
.hero-sub {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.8);
  max-width: 55ch;
  margin-bottom: var(--space-10);
  line-height: 1.6;
  font-weight: 300;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-16);
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.stat-item { text-align: left; }
.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: #f5c56a;
  font-weight: 700;
}
.stat-item span {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.65);
  font-weight: 400;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}

/* ===== URGÊNCIA / COUNTDOWN ===== */
.urgencia-section {
  padding-block: var(--space-16);
  background: var(--color-surface);
}
.urgencia-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-12);
  align-items: center;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--color-gold);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-12);
  box-shadow: var(--shadow-md);
}
.urgencia-img {
  width: 160px;
  border-radius: var(--radius-lg);
}
.urgencia-tag {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}
.urgencia-right h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
  line-height: 1.3;
}
.urgencia-right p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  max-width: 60ch;
}
.countdown-wrap { margin-bottom: var(--space-8); }
.countdown-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  font-weight: 500;
}
.countdown {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-5);
  min-width: 72px;
}
.cd-number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.1;
}
.cd-label {
  font-size: var(--text-xs);
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cd-sep {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
}
.post-countdown-msg {
  background: var(--color-gold-highlight);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  margin-top: var(--space-4);
}
.post-countdown-msg p { color: var(--color-text); margin-bottom: var(--space-4); font-size: var(--text-sm); }

/* ===== WHY SECTION ===== */
.why-section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  background: var(--color-bg);
}
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
}
.reason-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.reason-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--color-primary); }
.reason-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}
.reason-icon--green { background: var(--color-success-highlight); color: var(--color-success); }
.reason-icon--gold  { background: var(--color-gold-highlight);    color: var(--color-gold); }
.reason-icon--blue  { background: var(--color-primary-highlight); color: var(--color-primary); }
.reason-icon--purple { background: #ede9f8; color: #6c3dbe; }
[data-theme="dark"] .reason-icon--purple { background: #2a1f4a; color: #a070e0; }
.reason-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  line-height: 1.3;
}
.reason-card p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; }

/* ===== CHECKLIST SECTION ===== */
.checklist-section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  background: var(--color-surface-2);
}

/* Progress bar */
.progress-container {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-8);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}
.progress-label { font-weight: 600; font-size: var(--text-sm); }
.progress-count { font-size: var(--text-sm); color: var(--color-text-muted); }
.progress-bar-outer {
  width: 100%;
  height: 10px;
  background: var(--color-surface-offset);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
  border-radius: var(--radius-full);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Org level indicator */
.org-level {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6);
  margin-bottom: var(--space-8);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: all 0.4s;
}
.org-level.level-starter { border-color: var(--color-border); }
.org-level.level-going   { border-color: var(--color-gold); background: var(--color-gold-highlight); color: var(--color-text); }
.org-level.level-good    { border-color: var(--color-success); background: var(--color-success-highlight); color: var(--color-success); }
.org-level.level-ready   { border-color: var(--color-primary); background: var(--color-primary-highlight); color: var(--color-primary); font-weight: 700; }

/* Checklist categories */
.checklist-category {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-4);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.checklist-category:has(.cat-items:not(.cat-items--closed)) { box-shadow: var(--shadow-md); }

.cat-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-8);
  background: none;
  color: var(--color-text);
  cursor: pointer;
  transition: background var(--transition);
  text-align: left;
}
.cat-header:hover { background: var(--color-surface-2); }
.cat-header-left { display: flex; align-items: center; gap: var(--space-4); }
.cat-icon { font-size: 1.5rem; }
.cat-header-left h3 {
  font-size: var(--text-base);
  font-weight: 600;
  font-family: var(--font-body);
  margin-bottom: 0;
  line-height: 1.3;
}
.cat-sub { font-size: var(--text-xs); color: var(--color-text-muted); display: block; margin-top: 2px; }
.cat-header-right { display: flex; align-items: center; gap: var(--space-3); }
.cat-progress-badge {
  font-size: var(--text-xs);
  font-weight: 700;
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  min-width: 40px;
  text-align: center;
}
.cat-chevron {
  transition: transform 0.25s;
  flex-shrink: 0;
  color: var(--color-text-muted);
}
.cat-header[aria-expanded="true"] .cat-chevron { transform: rotate(180deg); }

.cat-items { padding: 0 var(--space-4) var(--space-4); }
.cat-items--closed { display: none; }

/* Individual checklist items */
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-4);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition);
}
.checklist-item:hover { background: var(--color-surface-2); }
.check-input { position: absolute; opacity: 0; width: 0; height: 0; }
.check-custom {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: all var(--transition);
}
.check-input:checked ~ .check-custom {
  background: var(--color-success);
  border-color: var(--color-success);
}
.check-input:checked ~ .check-custom::after {
  content: '';
  width: 12px; height: 7px;
  border-left: 2.5px solid white;
  border-bottom: 2.5px solid white;
  transform: rotate(-45deg) translate(1px, -1px);
  display: block;
}
.check-input:focus-visible ~ .check-custom {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.check-content { flex: 1; min-width: 0; }
.check-title {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition);
}
.check-input:checked ~ .check-custom + .check-content .check-title { text-decoration: line-through; color: var(--color-text-muted); }
.check-hint {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: 2px;
  line-height: 1.5;
}

/* Checklist CTA box */
.checklist-cta-box {
  background: var(--color-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-12);
  text-align: center;
  margin-top: var(--space-10);
  color: white;
}
.checklist-cta-box p {
  font-size: var(--text-base);
  margin-bottom: var(--space-6);
  max-width: none;
}
.checklist-cta-box .btn-primary {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: #0f1629;
}
.checklist-cta-box .btn-primary:hover { background: var(--color-gold-hover); border-color: var(--color-gold-hover); }

/* ===== SOCIAL PROOF ===== */
.social-proof-section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  background: var(--color-bg);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}
.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: transform var(--transition), box-shadow var(--transition);
}
.testimonial-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.testimonial-card--highlight {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}
.testimonial-card--highlight blockquote, .testimonial-card--highlight cite strong, .testimonial-card--highlight cite span { color: white !important; }
.stars { color: var(--color-gold); font-size: 1.1rem; margin-bottom: var(--space-4); letter-spacing: 2px; }
.testimonial-card--highlight .stars { color: #f5c56a; }
blockquote {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  font-style: italic;
  max-width: 100%;
}
cite {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-style: normal;
}
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  font-weight: 700;
  font-size: var(--text-base);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial-card--highlight .testimonial-avatar { background: rgba(255,255,255,0.2); color: white; }
cite strong { font-size: var(--text-sm); font-weight: 600; display: block; }
cite span { font-size: var(--text-xs); color: var(--color-text-muted); }

/* Google reviews enhancements */
.google-rating-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.google-stars { color: #fbbc05; font-size: 1.1rem; letter-spacing: 2px; }
.google-label { font-size: var(--text-xs); color: var(--color-text-muted); font-weight: 500; }

.testimonial-header-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.testimonial-header-row > div:nth-child(2) { flex: 1; }
.testimonial-header-row strong { font-size: var(--text-sm); font-weight: 600; display: block; line-height: 1.2; }
.reviewer-badge {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: block;
  margin-top: 1px;
}
.google-icon-sm { flex-shrink: 0; margin-left: auto; }

.testimonial-avatar--photo {
  background: linear-gradient(135deg, #e8b4d0, #c47db4);
  color: white;
  font-weight: 700;
  font-size: var(--text-xs);
}
.testimonial-avatar--initial {
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  font-weight: 700;
}
.testimonial-avatar--photo2 {
  background: linear-gradient(135deg, #f0a080, #e07050);
  color: white;
  font-weight: 700;
  font-size: var(--text-xs);
}
.testimonial-card--highlight .testimonial-avatar--initial {
  background: rgba(255,255,255,0.2);
  color: white;
}
.testimonial-card--highlight .reviewer-badge { color: rgba(255,255,255,0.75); }
.review-time {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.testimonial-card--highlight .review-time { color: rgba(255,255,255,0.55); }

/* Trust badges */
.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-6) var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
}
.trust-badge svg { color: var(--color-primary); flex-shrink: 0; }

/* ===== LEAD FORM SECTION ===== */
.lead-section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  background: var(--color-surface-2);
}
.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}
.lead-copy .section-tag { margin-bottom: var(--space-4); }
.lead-copy h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-5);
  line-height: 1.25;
}
.lead-copy > p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 45ch;
}
.lead-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.lead-features li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  max-width: 100%;
}
.whatsapp-group-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-whatsapp);
  color: white;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition);
}
.whatsapp-group-btn:hover { background: var(--color-whatsapp-hover); color: white; transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* Form */
.lead-form-wrap {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-xl);
}
.form-title {
  font-size: var(--text-lg);
  font-family: var(--font-display);
  margin-bottom: var(--space-1);
}
.form-sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}
.form-group { margin-bottom: var(--space-5); }
.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.form-group label span { color: var(--color-error); }
.form-group input,
.form-group select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  font-size: var(--text-sm);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
  background: var(--color-surface);
}
.form-group input.is-error { border-color: var(--color-error); box-shadow: 0 0 0 3px var(--color-error-highlight); }
.form-group input::placeholder { color: var(--color-text-faint); }
.field-error {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-error);
  margin-top: var(--space-1);
  min-height: 16px;
}

/* LGPD checkbox */
.form-check-group .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1.5;
}
.check-custom-sm {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 1px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
input[type="checkbox"]:checked ~ .check-custom-sm {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
input[type="checkbox"]:checked ~ .check-custom-sm::after {
  content: '';
  width: 10px; height: 6px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) translate(0px, -1px);
  display: block;
}
.form-check-group input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.form-check-group { margin-bottom: var(--space-6); }

/* Submit button */
#submitBtn { position: relative; }
.btn-loading .spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Success & error messages — hidden attribute must win */
.form-success[hidden],
.form-error-general[hidden] { display: none !important; }

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
  padding: var(--space-8);
  background: var(--color-success-highlight);
  border: 1px solid var(--color-success);
  border-radius: var(--radius-lg);
  margin-top: var(--space-6);
}
.form-success strong { font-size: var(--text-base); font-family: var(--font-display); color: var(--color-success); }
.form-success p { font-size: var(--text-sm); color: var(--color-text-muted); max-width: 100%; }
.form-error-general {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--color-error-highlight);
  border: 1px solid var(--color-error);
  border-radius: var(--radius-md);
  color: var(--color-error);
  font-size: var(--text-sm);
  margin-top: var(--space-4);
}

/* ===== FAQ ===== */
.faq-section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  background: var(--color-bg);
}
.faq-container { max-width: var(--content-default); }
.faq-list { display: flex; flex-direction: column; gap: var(--space-3); }
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-8);
  text-align: left;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  transition: background var(--transition), color var(--transition);
}
.faq-question:hover { background: var(--color-surface-2); }
.faq-question[aria-expanded="true"] { color: var(--color-primary); }
.faq-icon { flex-shrink: 0; transition: transform 0.25s; color: var(--color-text-muted); }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); color: var(--color-primary); }
.faq-answer {
  display: none;
  padding: 0 var(--space-8) var(--space-6);
  border-top: 1px solid var(--color-divider);
}
.faq-answer.open { display: block; }
.faq-answer p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  padding-top: var(--space-5);
  max-width: 100%;
}
.faq-answer strong { color: var(--color-text); font-weight: 600; }

/* ===== FINAL CTA SECTION ===== */
.final-cta-section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  background: linear-gradient(135deg, var(--color-primary) 0%, #0c2040 100%);
  text-align: center;
}
.final-cta-content h2 {
  font-size: var(--text-xl);
  color: white;
  margin-bottom: var(--space-5);
  max-width: 18ch;
  margin-inline: auto;
}
.final-cta-content p {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-10);
  max-width: 50ch;
  margin-inline: auto;
}
.final-cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.final-cta-section .btn-primary {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: #0f1629;
  font-weight: 700;
}
.final-cta-section .btn-primary:hover { background: var(--color-gold-hover); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12);
  padding-block: var(--space-16) var(--space-12);
}
.footer-brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  margin-bottom: var(--space-6);
  max-width: 100%;
}
.footer-social { display: flex; gap: var(--space-4); }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--color-primary); color: white; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-links h4, .footer-contact h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  font-family: var(--font-body);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-links a, .footer-contact a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover, .footer-contact a:hover { color: var(--color-primary); }
.footer-address { font-size: var(--text-xs); color: var(--color-text-faint); margin-top: var(--space-2); max-width: 100%; }
.footer-bottom {
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-inline: clamp(var(--space-4), 5vw, var(--space-16));
}
.footer-bottom p { font-size: var(--text-xs); color: var(--color-text-faint); max-width: 70ch; }
.pplx-credit {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-decoration: none;
  transition: color var(--transition);
  white-space: nowrap;
}
.pplx-credit:hover { color: var(--color-primary); }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: 200;
  width: 60px; height: 60px;
  background: var(--color-whatsapp);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
  text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: var(--shadow-xl); color: white; }
.whatsapp-float-tooltip {
  position: absolute;
  right: calc(100% + var(--space-3));
  white-space: nowrap;
  background: var(--color-text);
  color: var(--color-bg);
  font-size: var(--text-xs);
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  opacity: 0;
  transform: translateX(8px);
  transition: all var(--transition);
  pointer-events: none;
}
.whatsapp-float:hover .whatsapp-float-tooltip { opacity: 1; transform: translateX(0); }

/* ===== GOV.BR CATEGORY ===== */
.govbr-cat {
  border: 2px solid var(--color-primary);
  background: var(--color-highlight);
  position: relative;
}
[data-theme="dark"] .govbr-cat {
  background: rgba(107, 107, 202, 0.08);
  border-color: var(--color-primary-dark);
}
.govbr-cat .cat-header {
  background: linear-gradient(135deg, #1a1a6e 0%, #2a2a9e 100%);
  color: white;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.govbr-cat .cat-header:hover {
  background: linear-gradient(135deg, #131358 0%, #232380 100%);
}
.govbr-cat .cat-header h3 { color: white; }
.govbr-cat .cat-header .cat-sub { color: rgba(255,255,255,0.75); }
.govbr-cat .cat-progress-badge {
  background: rgba(255,255,255,0.2);
  color: white;
}

/* Gov.br info box */
.govbr-info-box {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  background: rgba(26, 26, 110, 0.06);
  border: 1px solid rgba(26, 26, 110, 0.15);
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-4) var(--space-5) var(--space-2);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text-muted);
}
[data-theme="dark"] .govbr-info-box {
  background: rgba(107, 107, 202, 0.1);
  border-color: rgba(107, 107, 202, 0.25);
}
.govbr-info-box strong { color: var(--color-primary); }
[data-theme="dark"] .govbr-info-box strong { color: var(--color-primary-dark); }
.govbr-info-box p { margin: 0; }
.govbr-info-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== CHECKLIST "NONE" OPTION ===== */
.checklist-item--none {
  margin-top: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px dashed var(--color-border);
  opacity: 0.72;
  transition: opacity var(--transition);
}
.checklist-item--none:has(.check-none:checked) {
  opacity: 1;
}
.check-custom--none {
  border-color: var(--color-text-muted) !important;
  background: transparent !important;
}
.check-none:checked ~ .check-custom--none {
  background: var(--color-text-muted) !important;
  border-color: var(--color-text-muted) !important;
}
.check-none:checked ~ .check-custom--none::after {
  border-color: var(--color-bg) !important;
}
.check-title--none {
  font-style: italic;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.check-none:checked ~ .check-content .check-title--none {
  color: var(--color-text);
  font-weight: 600;
}

/* ===== CHECKLIST CTA ACTIONS ===== */
.checklist-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-4);
}
.checklist-cta-actions .btn {
  min-width: 200px;
}
@media (max-width: 640px) {
  .checklist-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .checklist-cta-actions .btn {
    min-width: unset;
    justify-content: center;
  }
  .govbr-info-box {
    margin: var(--space-3) var(--space-3) var(--space-1);
  }
}

/* ===== ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .header-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav.open { display: flex; }

  .hero-content h1 { font-size: clamp(1.8rem, 6vw, 3rem); }
  .hero-sub { font-size: var(--text-base); }
  .hero-ctas { flex-direction: column; align-items: flex-start; }

  .urgencia-card { grid-template-columns: 1fr; gap: var(--space-6); padding: var(--space-8); }
  .urgencia-img { width: 100px; }

  .lead-grid { grid-template-columns: 1fr; gap: var(--space-10); }
  .lead-copy > p, .lead-copy h2 { max-width: none; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 640px) {
  .hero { min-height: 100svh; }
  .hero-stats { gap: var(--space-4); }
  .stat-divider { display: none; }
  .checklist-cta-box { padding: var(--space-8); }
  .cat-header { padding: var(--space-4) var(--space-5); }
  .cat-header-left { gap: var(--space-3); }
  .cat-header-left h3 { font-size: var(--text-sm); }
  .cat-sub { display: none; }
  .lead-form-wrap { padding: var(--space-6); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .whatsapp-float { bottom: var(--space-5); right: var(--space-5); width: 52px; height: 52px; }
  .countdown { gap: var(--space-1); }
  .countdown-block { min-width: 60px; padding: var(--space-2) var(--space-3); }
  .final-cta-buttons { flex-direction: column; align-items: stretch; }
  .final-cta-buttons .btn { justify-content: center; }
}

@media print {
  .site-header, .whatsapp-float, .lead-section, .final-cta-section,
  .checklist-cta-box, .faq-section, .social-proof-section,
  .urgencia-section, .why-section, .hero { display: none !important; }
  .checklist-section { background: white; }
  .cat-items--closed { display: block !important; }
  body { font-size: 12pt; color: #000; }
}
