/* ===== iter DESIGN SYSTEM — identidade 2026 ===== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* Marble — fonte principal da marca (arquivos locais em /fonts) */
@font-face {
  font-family: 'Marble';
  src: url('../fonts/marble-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Marble';
  src: url('../fonts/marble-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Marble';
  src: url('../fonts/marble-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Marble';
  src: url('../fonts/marble-800.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}

/* Wordmark "iter" — usa a própria fonte da marca, minúsculo sempre */
.marca {
  font-family: 'Marble', 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.15em;
  text-transform: none !important;
}

:root {
  /* --- Cores oficiais (Guia de Marca 2026) --- */
  --brand-blue:  #0054A5;
  --brand-green: #37B34A;
  --brand-bg:    #F1F1EA;

  /* --- Nomes antigos remapeados: mantêm o site inteiro funcionando --- */
  --navy:       #0054A5;  /* superfícies escuras / cor dominante */
  --navy-light: #0066C4;  /* variação para gradientes */
  --navy-deep:  #003C76;  /* tom mais profundo, para contraste */
  --blue:       #0054A5;
  --blue-light: #1A6FC4;
  --teal:       #37B34A;  /* destaque (era turquesa, agora verde da marca) */
  --teal-light: #4BC55E;
  --beige:      #F1F1EA;
  --beige-dark: #E4E4DA;
  --white:      #FFFFFF;
  --gray-50:    #F9FAFB;
  --gray-100:   #F3F4F6;
  --gray-200:   #E5E7EB;
  --gray-400:   #9CA3AF;
  --gray-600:   #6B7280;
  --gray-800:   #1F2937;
  --text:       #111827;

  --radius:    8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.08);
  --shadow:    0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  min-height: 100vh;
}

/* Títulos usam a fonte da marca; o corpo do texto fica na Montserrat (mais legível em bloco) */
h1, h2, h3, h4, .logo-text, .stat-card .num, .feature-letter {
  font-family: 'Marble', 'Montserrat', sans-serif;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: inherit; }

/* ===== LOGO ===== */
.iter-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.logo-img {
  height: 38px;
  width: auto;
  display: block;
}
/* Fundo claro (verify-card, card-auth) → logo maior */
.verify-card .logo-img,
.card-auth  .logo-img {
  height: 44px;
}

/* ===== NAVBAR ===== */
.navbar {
  background: var(--navy);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.82);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}
.nav-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-user-name {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}
.nav-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--white);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary   { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-light); border-color: var(--blue-light); }
.btn-teal      { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn-teal:hover { background: var(--teal-light); border-color: var(--teal-light); }
.btn-outline   { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-danger    { background: #DC2626; color: var(--white); border-color: #DC2626; }
.btn-danger:hover { background: #B91C1C; }
.btn-google {
  background: var(--white);
  color: var(--gray-800);
  border-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.btn-google:hover { box-shadow: var(--shadow); border-color: var(--gray-400); }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 1.2rem; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.4rem;
}
.form-control {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,71,204,0.12); }
.form-control.error { border-color: #DC2626; }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-hint { font-size: 0.78rem; color: var(--gray-600); margin-top: 0.25rem; }
.input-password-wrap { position: relative; }
.input-password-wrap .form-control { padding-right: 2.75rem; }
.btn-toggle-pass { position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--gray-400); padding: 4px; display: flex; align-items: center; }
.btn-toggle-pass:hover { color: var(--gray-600); }
.form-error { font-size: 0.78rem; color: #DC2626; margin-top: 0.25rem; display: none; }
.form-error.show { display: block; }

/* Radio / Checkbox groups */
.radio-group, .check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.3rem;
}
.radio-option, .check-option {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 100px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
  user-select: none;
}
.radio-option input, .check-option input { display: none; }
.radio-option:hover, .check-option:hover { border-color: var(--blue); color: var(--blue); }
.radio-option.selected, .check-option.selected {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-body { padding: 1.5rem; }
.card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.card-header h3 { font-size: 1rem; font-weight: 700; color: var(--navy); }

/* ===== BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-teal   { background: rgba(43,181,160,0.12); color: var(--teal); }
.badge-blue   { background: rgba(0,71,204,0.1); color: var(--blue); }
.badge-navy   { background: rgba(26,43,74,0.1); color: var(--navy); }
.badge-red    { background: rgba(220,38,38,0.1); color: #DC2626; }
.badge-orange { background: rgba(234,88,12,0.1); color: #EA580C; }
.badge-gray   { background: rgba(100,116,139,0.12); color: #475569; }
.badge-cdm    { background: var(--teal); color: var(--white); }

/* ===== ALERT ===== */
.alert {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.alert-info    { background: rgba(0,71,204,0.08); color: var(--blue); border-left: 3px solid var(--blue); }
.alert-success { background: rgba(43,181,160,0.08); color: var(--teal); border-left: 3px solid var(--teal); }
.alert-error   { background: rgba(220,38,38,0.08); color: #DC2626; border-left: 3px solid #DC2626; }
.alert-warning { background: rgba(234,88,12,0.08); color: #EA580C; border-left: 3px solid #EA580C; }

/* ===== SECTION HEADING ===== */
.section-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 0; height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid var(--teal);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1A4A8A 100%);
  color: var(--white);
  padding: 5rem 2rem 6rem;
  position: relative;
  overflow: hidden;
}
/* O elemento gráfico da marca (.hero-marca) substituiu as formas decorativas que
   existiam aqui — duas faixas inclinadas soltas que não faziam parte da identidade. */
.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}
.hero h1 em { color: var(--teal); font-style: normal; }
.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
/* Seta da marca no hero — sangra pela borda direita, como no banner institucional */
.hero-marca {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  height: 170%;
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 900px) {
  /* Em tela estreita a seta briga com o texto: fica mais discreta e recuada */
  .hero-marca { right: -140px; height: 130%; opacity: 0.55; }
}

/* ===== FEATURES / IDRC ===== */
.features { padding: 5rem 2rem; background: var(--beige); }
.container { max-width: 1100px; margin: 0 auto; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--beige-dark);
  transition: var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-letter {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.75rem;
}
/* Alterna as duas cores da marca (azul/verde) — antes eram 4 variáveis que hoje
   apontam praticamente para as mesmas 2 cores, o que deixava o padrão irregular. */
.feature-card:nth-child(odd)  .feature-letter { color: var(--brand-blue); }
.feature-card:nth-child(even) .feature-letter { color: var(--brand-green); }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.75rem; }
.feature-card ul { padding-left: 1.1rem; color: var(--gray-600); font-size: 0.9rem; }
.feature-card ul li { margin-bottom: 0.4rem; }

/* ===== SECTION TITLE ===== */
.section-title {
  text-align: center;
  margin-bottom: 0.75rem;
}
.section-title h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}
.section-title p { color: var(--gray-600); margin-top: 0.5rem; font-size: 1rem; }

/* ===== CONTACT STRIP ===== */
.contact-strip {
  background: var(--navy);
  color: var(--white);
  padding: 3.5rem 2rem;
}
.contact-strip h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 1.5rem; }
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.contact-item { display: flex; flex-direction: column; gap: 0.25rem; }
.contact-item .label { font-size: 0.75rem; color: var(--teal); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.contact-item .value { font-size: 1rem; font-weight: 600; }
.contact-item .sub { font-size: 0.82rem; color: rgba(255,255,255,0.6); }

/* ===== FOOTER ===== */
footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.6);
  padding: 1.5rem 2rem;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ===== AUTH PAGES ===== */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-panel {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
}
.auth-panel h2 { font-size: 1.8rem; font-weight: 800; margin: 1.5rem 0 0.75rem; }
.auth-panel p { color: rgba(255,255,255,0.7); font-size: 0.95rem; line-height: 1.7; }
.auth-panel-features { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
.auth-panel-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.auth-panel-feature .icon {
  width: 32px; height: 32px;
  background: rgba(43,181,160,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--teal);
  font-size: 1rem;
}
.auth-panel-feature .text { font-size: 0.88rem; color: rgba(255,255,255,0.75); }
.auth-form-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  background: var(--white);
  overflow-y: auto;
}
.auth-form-logo-mobile { display: none; }
.auth-form-section h1 { font-size: 1.6rem; font-weight: 800; color: var(--navy); margin-bottom: 0.4rem; }
.auth-form-section .subtitle { color: var(--gray-600); margin-bottom: 2rem; font-size: 0.9rem; }
.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray-400);
  font-size: 0.8rem;
  margin: 1.25rem 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}
.auth-footer-link { text-align: center; margin-top: 1.5rem; font-size: 0.85rem; color: var(--gray-600); }
.auth-footer-link a { color: var(--blue); font-weight: 600; }
.auth-footer-link a:hover { text-decoration: underline; }

/* ===== PAINEL / DASHBOARD ===== */
.painel-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 68px);
}
.sidebar {
  background: var(--gray-50);
  border-right: 1px solid var(--gray-200);
  padding: 1.5rem 1rem;
}
.sidebar-section { margin-bottom: 2rem; }
.sidebar-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-400);
  margin-bottom: 0.5rem;
  padding: 0 0.5rem;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
  color: var(--gray-600);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 0.15rem;
}
.sidebar-link:hover { background: var(--gray-200); color: var(--navy); }
.sidebar-link.active { background: var(--navy); color: var(--white); }
.sidebar-link .icon { font-size: 1rem; width: 20px; text-align: center; }
.main-content { padding: 2rem; overflow-y: auto; }

/* Botão hambúrguer (só aparece em telas pequenas) e fundo do drawer */
.nav-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  margin-right: 0.75rem;
  align-items: center;
}
.sidebar-backdrop { display: none; }
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.page-header h1 { font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.page-header p { color: var(--gray-600); font-size: 0.9rem; margin-top: 0.2rem; }

/* Stats cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
}
.stat-card .num { font-size: 2rem; font-weight: 900; color: var(--navy); line-height: 1; }
.stat-card .label { font-size: 0.78rem; color: var(--gray-600); margin-top: 0.3rem; font-weight: 500; }

/* Kanban */
.kanban-board {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  align-items: flex-start;
}
.kanban-col {
  flex: 1 1 260px;
  min-width: 260px;
  max-width: 340px;
}
.kanban-col-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 0 0.15rem;
}
.kanban-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.kanban-dot-orange { background: #EA580C; }
.kanban-dot-amber  { background: #D97706; }
.kanban-dot-blue   { background: var(--blue); }
.kanban-dot-red    { background: #DC2626; }
.kanban-col-title { font-size: 0.85rem; font-weight: 700; color: var(--navy); }
.kanban-col-count { font-size: 0.78rem; color: var(--gray-400); }
.kanban-col-body { display: flex; flex-direction: column; gap: 0.65rem; min-height: 40px; }
.kanban-empty {
  border: 1px dashed var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem 0.75rem;
  text-align: center;
  color: var(--gray-400);
  font-size: 0.8rem;
}
.kanban-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1rem;
}
.kanban-card.is-suspenso { opacity: 0.85; border-color: #FCA5A5; }
.kanban-card-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.kanban-card-sub { font-size: 0.76rem; color: var(--gray-400); margin-bottom: 0.5rem; }
.kanban-card-badges { display: flex; gap: 0.3rem; flex-wrap: wrap; margin-bottom: 0.55rem; }
.kanban-card-badges .badge { font-size: 0.66rem; }
.kanban-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--gray-100);
  padding-top: 0.5rem;
  margin-top: 0.15rem;
  font-size: 0.76rem;
  color: var(--gray-600);
}
.kanban-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #0F9D6E;
  text-decoration: none;
  font-weight: 600;
}
.kanban-wa:hover { text-decoration: underline; }
.kanban-card-actions { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-top: 0.6rem; }
.kanban-card-actions .btn { flex: 1 1 auto; }

/* Table */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  background: var(--gray-50);
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
}
tbody td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.88rem;
  vertical-align: middle;
}
tbody tr:hover { background: var(--gray-50); }
tbody tr:last-child td { border-bottom: none; }

/* ===== FORMULÁRIOS ===== */
.form-page { padding: 2rem; max-width: 900px; margin: 0 auto; }
.form-page-header {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.form-page-header h1 { font-size: 1.3rem; font-weight: 800; }
.form-page-header p { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-top: 0.25rem; }
.form-ref { font-size: 0.8rem; color: var(--teal); font-weight: 600; }
.form-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--teal);
  padding: 0.5rem 0;
  border-bottom: 2px solid var(--teal);
  margin-bottom: 1.5rem;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.question-block {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}
.question-block:hover { border-color: var(--blue); }
.question-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.45rem;
  background: var(--beige);
  color: var(--navy);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  flex-shrink: 0;
  white-space: nowrap;
}
.doc-required { color: #DC2626; font-weight: 700; margin-right: 0.2rem; font-size: 0.85rem; }
.question-num.obrigatorio::before { content: '*'; color: #DC2626; font-weight: 700; margin-right: 0.15rem; font-size: 0.85rem; }
.question-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.sub-inputs { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; }
.sub-input-row { display: flex; align-items: center; gap: 0.5rem; }
.sub-input-row label { font-size: 0.8rem; color: var(--gray-600); font-weight: 600; width: 20px; }

/* ===== REMESSA / UPLOAD ===== */
.doc-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 1rem;
  align-items: center;
  transition: var(--transition);
}
.doc-item:hover { border-color: var(--blue); }
.doc-item.uploaded { border-color: var(--teal); background: rgba(43,181,160,0.04); }
.doc-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--beige);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  white-space: nowrap;
}
.doc-name { font-size: 0.88rem; font-weight: 600; color: var(--navy); }
.doc-name .sub-items { margin-top: 0.3rem; }
.doc-name .sub-item {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--gray-600);
  padding: 0.2rem 0;
  border-left: 2px solid var(--gray-200);
  padding-left: 0.5rem;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.upload-zone {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.8rem;
  color: var(--gray-600);
  min-width: 140px;
}
.upload-zone:hover { border-color: var(--blue); color: var(--blue); background: rgba(0,71,204,0.04); }
.upload-zone input[type=file] { display: none; }
.upload-status {
  font-size: 0.78rem;
  color: var(--teal);
  font-weight: 600;
  display: none;
  align-items: center;
  gap: 0.35rem;
}
.upload-status.show { display: flex; }
.progress-bar {
  width: 100%;
  height: 4px;
  background: var(--gray-200);
  border-radius: 100px;
  overflow: hidden;
  margin-top: 0.3rem;
}
.progress-fill { height: 100%; background: var(--teal); border-radius: 100px; transition: width 0.3s; }

/* ===== RELATÓRIO ===== */
.relatorio-header {
  background: var(--navy);
  color: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}
.relatorio-header h1 { font-size: 1.4rem; font-weight: 800; }
.relatorio-meta {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.relatorio-meta .item { display: flex; flex-direction: column; gap: 0.15rem; }
.relatorio-meta .item .k { font-size: 0.7rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; }
.relatorio-meta .item .v { font-size: 0.9rem; font-weight: 600; }
.relatorio-section { margin-bottom: 2rem; }
.relatorio-section h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--beige-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.qa-row {
  display: grid;
  grid-template-columns: 40px 1fr 1fr;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.85rem;
  align-items: start;
}
.qa-row:last-child { border-bottom: none; }
.qa-row .num { font-weight: 700; color: var(--navy); }
.qa-row .question { color: var(--gray-600); }
.qa-row .answer { font-weight: 600; color: var(--text); }
.doc-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}
.doc-link-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition);
}
.doc-link-card:hover { border-color: var(--teal); background: rgba(43,181,160,0.04); }
.doc-link-card .icon { font-size: 1.5rem; }
.doc-link-card .info { flex: 1; min-width: 0; }
.doc-link-card .info .name { font-size: 0.85rem; font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-link-card .info .size { font-size: 0.75rem; color: var(--gray-400); }
.doc-link-card .dl { color: var(--teal); font-size: 1.1rem; }

/* ===== LOADING / SPINNER ===== */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 2rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  display: none;
}
.loading-overlay.show { display: flex; }

/* ===== MODAL ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
  display: none;
}
.modal-backdrop.show { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.modal-close { background: none; border: none; cursor: pointer; font-size: 1.2rem; color: var(--gray-400); padding: 4px; }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--gray-100); display: flex; justify-content: flex-end; gap: 0.75rem; }

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-navy   { color: var(--navy); }
.text-teal   { color: var(--teal); }
.text-blue   { color: var(--blue); }
.text-muted  { color: var(--gray-600); }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.gap-1 { gap: 0.5rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }
.hidden { display: none !important; }

/* ===== PRINT ===== */
@media print {
  .navbar, .sidebar, .btn, .no-print { display: none !important; }
  .painel-layout { display: block; }
  .main-content { padding: 0; }
  body { font-size: 12px; }
  .relatorio-header { background: var(--navy) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-panel { display: none; }
  .auth-form-logo-mobile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; margin-bottom: 1.75rem; }
  .auth-form-logo-mobile img { height: 38px; width: auto; }
  .mobile-back-link { font-size: 0.82rem; font-weight: 600; color: var(--blue); }
  .mobile-back-link:hover { text-decoration: underline; }
  .painel-layout { grid-template-columns: 1fr; }
  .nav-menu-toggle { display: flex; }
  .iter-logo { margin-right: auto; }
  /* Links do topo viram menu suspenso (usado na página inicial, que não tem sidebar) */
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--navy);
    padding: 0.5rem 1rem 1rem;
    gap: 0.1rem;
    z-index: 95;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open a { display: block; padding: 0.7rem 0.75rem; }
  /* Sidebar vira "gaveta" (drawer) deslizante abaixo da navbar */
  .sidebar {
    position: fixed;
    top: 68px; left: 0; bottom: 0;
    width: 260px;
    z-index: 90;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    box-shadow: 2px 0 16px rgba(0,0,0,0.18);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop {
    display: block;
    position: fixed;
    top: 68px; left: 0; right: 0; bottom: 0;
    z-index: 89;
    background: rgba(15,23,42,0.5);
    opacity: 0; visibility: hidden;
    transition: opacity 0.28s, visibility 0.28s;
  }
  .sidebar-backdrop.open { opacity: 1; visibility: visible; }
  .doc-item { grid-template-columns: auto 1fr; }
  .doc-item .upload-zone, .doc-item .upload-status { grid-column: 1/-1; }
  .qa-row { grid-template-columns: 40px 1fr; }
  .qa-row .answer { grid-column: 2; font-style: italic; }
}

@media (max-width: 640px) {
  .navbar { padding: 0 1rem; }
  .hero { padding: 3rem 1.25rem 4rem; }
  .features { padding: 3rem 1.25rem; }
  .contact-strip { padding: 2.5rem 1.25rem; }
  .form-page { padding: 1rem; }
  .auth-form-section { padding: 2rem 1.25rem; }
  .main-content { padding: 1.25rem; }
}
