/* =================================================================
   ROTA Pre-Map — Design System Cognix360
   Aplicação do mesmo sistema visual do Sonda (cognixlab).
   Tema: Cognix Noir (preto/grafite premium). Accent: TEAL #68B5BF.
   Fonts: Outfit (display) · Inter (corpo) · JetBrains Mono (dados).
   Autora: Nova (direção de arte JM). Mobile-first. Contraste AA.
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;450;500;600&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* =================================================================
   1. TOKENS (idênticos ao Sonda — fonte da verdade Cognix360)
   ================================================================= */
:root {
  /* --- Superfícies / profundidade --- */
  --bg:             #060707;
  --bg-elevated:    #0c0d0d;
  --surface:        #141515;
  --surface-2:      #1c1d1d;
  --surface-3:      #262727;

  /* --- Bordas (filete de luz que separa camadas) --- */
  --border:         rgba(255,255,255,0.10);
  --border-soft:    rgba(255,255,255,0.055);
  --border-strong:  rgba(255,255,255,0.20);

  /* --- Primária (TEAL Cognix #68B5BF) --- */
  --primary:        #68B5BF;
  --primary-hover:  #7cc3cc;
  --primary-press:  #2A4A4F;
  --primary-soft:   rgba(104,181,191,0.14);
  --primary-glow:   rgba(104,181,191,0.34);
  --on-primary:     #06181a;

  /* --- Accent (teal-escuro: mono-accent sóbrio) --- */
  --accent:         #2A4A4F;
  --accent-2:       #4f8b94;
  --accent-soft:    rgba(42,74,79,0.30);

  /* --- Texto --- */
  --text:           #FFFFFF;
  --text-muted:     rgba(255,255,255,0.66);
  --text-faint:     rgba(255,255,255,0.44);
  --text-on-soft:   rgba(255,255,255,0.86);

  /* --- Semânticos --- */
  --success:        #3ddc97;
  --warning:        #f5c451;
  --danger:         #f4736f;

  /* --- Tipografia --- */
  --font-display:   'Outfit', system-ui, -apple-system, sans-serif;
  --font-body:      'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:      'JetBrains Mono', ui-monospace, monospace;

  /* --- Raios --- */
  --r-xs:   6px;
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   14px;
  --r-xl:   18px;
  --r-full: 999px;

  /* --- Sombras --- */
  --sh-sm:  0 1px 2px rgba(0,0,0,0.55);
  --sh-md:  0 6px 20px -6px rgba(0,0,0,0.70), 0 2px 6px -2px rgba(0,0,0,0.55);
  --sh-lg:  0 24px 60px -16px rgba(0,0,0,0.82), 0 6px 16px -6px rgba(0,0,0,0.60);
  --sh-glow: 0 0 0 1px var(--primary-glow), 0 8px 30px -8px var(--primary-glow);

  /* --- Motion --- */
  --ease: cubic-bezier(0.22,0.61,0.36,1);
  --dur:  160ms;
  --t:    160ms;

  /* --- Aliases de compatibilidade (usados inline no HTML legado) --- */
  --color-primary:  #68B5BF;
  --color-gray-mid: rgba(255,255,255,0.44);
  --muted:          rgba(255,255,255,0.66);
  --muted-strong:   rgba(255,255,255,0.86);
  --fg:             #FFFFFF;
  --teal:           #68B5BF;
  --teal-soft:      rgba(104,181,191,0.14);
  --teal-glow:      rgba(104,181,191,0.34);
  --on-teal:        #06181a;
  --color-error:    #f4736f;
  --color-success:  #3ddc97;
}

/* =================================================================
   2. RESET / BASE
   ================================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg);
  /* Atmosfera Cognix Noir: glow teal quente em cima à esquerda,
     eco frio à direita, e uma grade de pontos quase invisível.
     Drama com propósito: profundidade sem roubar a leitura. */
  background-image:
    radial-gradient(1000px 520px at 14% -10%, rgba(104,181,191,0.13), transparent 60%),
    radial-gradient(820px 480px at 96% -6%, rgba(42,74,79,0.34), transparent 64%),
    radial-gradient(circle at center, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: auto, auto, 24px 24px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--primary-hover); }

::selection { background: var(--primary-soft); color: var(--text); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: var(--r-full); border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* Foco visível global (acessibilidade — nunca remover) */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* =================================================================
   3. TIPOGRAFIA
   ================================================================= */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  font-weight: 600;
}
h1 { font-size: clamp(1.55rem, 4vw, 1.95rem); font-weight: 700; }
h2 { font-size: clamp(1.18rem, 3vw, 1.45rem); }
h3 { font-size: 1.05rem; }
h4 { font-size: 0.95rem; }

p {
  font-size: 0.9375rem;
  color: var(--text-on-soft);
}

small { font-size: 0.78rem; color: var(--text-muted); }

/* =================================================================
   4. LAYOUT
   ================================================================= */
.container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
}

.container--wide { max-width: 920px; }

main { padding: 28px 0 72px; }

.divider { height: 1px; background: var(--border); margin: 24px 0; }

/* =================================================================
   5. HEADER (sticky, glass, branding + progresso + steps)
   ================================================================= */
.site-header {
  background: rgba(6,7,7,0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  flex-direction: column;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Wordmark vetorial Cognix360 (SVG branco+teal, fundo escuro) */
.header-brand__logo {
  height: 14px;
  width: auto;
  display: block;
  opacity: 0.92;
  flex-shrink: 0;
}

.header-brand__sep {
  width: 1px;
  height: 20px;
  background: var(--border);
  flex-shrink: 0;
}

.header-brand__product {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  display: block;
  line-height: 1;
}

.header-brand .client-name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.1;
}

.header-brand .tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-user {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
  font-family: var(--font-mono);
}

/* =================================================================
   6. SAVE INDICATOR (chip)
   ================================================================= */
.save-indicator {
  font-size: 0.72rem;
  padding: 4px 11px;
  border-radius: var(--r-full);
  font-weight: 500;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  white-space: nowrap;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.save-indicator::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

.save-indicator.saved {
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid rgba(104,181,191,0.30);
}

.save-indicator.error {
  background: rgba(244,115,111,0.12);
  color: var(--danger);
  border: 1px solid rgba(244,115,111,0.28);
}

/* =================================================================
   7. PROGRESS BAR (teal com glow)
   ================================================================= */
.progress-bar-wrap {
  background: rgba(255,255,255,0.07);
  height: 4px;
  border-radius: var(--r-full);
  overflow: hidden;
  margin-top: 12px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-press), var(--primary));
  border-radius: var(--r-full);
  transition: width 0.5s var(--ease);
  width: 0%;
  box-shadow: 0 0 10px var(--primary-glow);
}

.progress-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-faint);
  margin-top: 5px;
  text-align: right;
  letter-spacing: 0.02em;
}

/* =================================================================
   8. MODULE STEPS (pílulas com estados active / done)
   ================================================================= */
.module-steps {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 12px 0 2px;
  scrollbar-width: none;
}
.module-steps::-webkit-scrollbar { display: none; }

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 64px;
  padding: 7px 9px;
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  border: 1px solid var(--border);
  font-family: inherit;
}

.step:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
}

.step.active {
  background: var(--primary-soft);
  border-color: rgba(104,181,191,0.40);
  box-shadow: inset 0 0 0 1px rgba(104,181,191,0.10);
}

.step-name {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.2;
}
.step.active .step-name { color: var(--primary); }

.step-pct {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-faint);
}
.step.active .step-pct { color: rgba(104,181,191,0.85); }

.step-icon {
  font-size: 0.7rem;
  color: var(--text-faint);
  line-height: 1;
}
/* JS troca o textContent do .step-icon: ● (cheio/done), ◑ (parcial), ○ (vazio).
   Quando 100%, o ponto vira teal vivo. */
.step.active .step-icon { color: var(--primary); }
.step.step-done .step-icon { color: var(--success); }

/* =================================================================
   9. CARDS (camadas de surface + borda + sombra densa)
   ================================================================= */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--sh-md);
  transition: border-color var(--dur) var(--ease);
}

.card--tight { padding: 16px; }
.card--hero  { padding: 32px 24px; }

/* =================================================================
   10. FORMS
   ================================================================= */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
}

label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-on-soft);
  line-height: 1.45;
}

label .optional {
  font-weight: 400;
  color: var(--text-faint);
  font-size: 0.76rem;
}

/* Label de grupo em caps discreto (form-group > label direto, sem ser de option) */
.form-group > label {
  letter-spacing: 0.01em;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface-3);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
  appearance: none;
  -webkit-appearance: none;
}

input::placeholder, textarea::placeholder { color: var(--text-faint); }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.44)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}
select option { background: var(--surface-2); color: var(--text); }

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft), 0 0 16px -4px var(--primary-glow);
}

textarea {
  resize: vertical;
  min-height: 86px;
  line-height: 1.55;
}

.field-hint {
  font-size: 0.76rem;
  color: var(--text-faint);
  line-height: 1.45;
}

/* =================================================================
   11. RADIO / CHECKBOX (cards clicáveis)
   ================================================================= */
.radio-group,
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-option,
.checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
  background: var(--surface-2);
}

.radio-option:hover,
.checkbox-option:hover {
  border-color: rgba(104,181,191,0.40);
  background: var(--surface-3);
}

.radio-option input,
.checkbox-option input {
  width: auto;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Estado selecionado — JS adiciona .selected; e :has() cobre nativo */
.radio-option.selected,
.checkbox-option.selected,
.radio-option:has(input:checked),
.checkbox-option:has(input:checked) {
  border-color: rgba(104,181,191,0.55);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px rgba(104,181,191,0.20);
}

.radio-option-label {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-on-soft);
}
.radio-option:has(input:checked) .radio-option-label,
.radio-option.selected .radio-option-label { color: var(--text); }

/* =================================================================
   12. LIKERT (pontos numerados, active em teal)
   No HTML cada ponto é .likert-option com <input radio> + <span>número.
   ================================================================= */
.likert-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.likert-options {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.likert-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  flex: 1;
  position: relative;
}

/* Esconde o radio nativo e usa o <span> número como alvo visual */
.likert-option input[type="radio"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.likert-option span {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  width: 100%;
  padding: 11px 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-2);
  transition: all var(--dur) var(--ease);
}

.likert-option:hover span {
  border-color: rgba(104,181,191,0.40);
  background: var(--surface-3);
  color: var(--text);
}

.likert-option input[type="radio"]:checked + span {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  box-shadow: 0 4px 16px -6px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,0.25);
}

.likert-option input[type="radio"]:focus-visible + span {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.likert-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
}

.likert-labels span {
  font-size: 0.7rem;
  color: var(--text-faint);
  max-width: 46%;
  line-height: 1.35;
}
.likert-labels span:last-child { text-align: right; }

/* =================================================================
   13. BUTTONS
   ================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: 0.005em;
}

.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }

.btn--primary {
  background: linear-gradient(180deg, var(--primary), var(--primary-hover));
  color: var(--on-primary);
  box-shadow: 0 6px 22px -6px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,0.28);
}
.btn--primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px -8px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn--primary:active:not(:disabled) { transform: translateY(0); }

.btn--secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--secondary:hover:not(:disabled) {
  background: var(--surface-3);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn--ghost:hover:not(:disabled) {
  color: var(--text);
  background: var(--surface-2);
}

.btn--full { width: 100%; }

.btn--loading::after {
  content: '';
  width: 14px; height: 14px;
  border: 2px solid rgba(6,24,26,0.3);
  border-top-color: var(--on-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Botão "+ adicionar processo" */
.add-process-btn {
  margin-top: 4px;
  border: 1px dashed var(--border-strong);
  color: var(--text-muted);
  background: transparent;
}
.add-process-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

/* =================================================================
   14. MODULE SECTIONS
   ================================================================= */
.module-section { display: none; }
.module-section.active { display: block; animation: fadeIn 0.3s var(--ease); }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.module-header {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.module-number {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.module-intro {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.6;
}

/* =================================================================
   15. PROCESS BLOCK (card interno surface-2)
   ================================================================= */
.process-block {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
  margin-bottom: 16px;
  background: var(--surface-2);
}

.process-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.process-block-title {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.process-block.hidden { display: none; }

/* =================================================================
   16. TIPO IA BLOCK
   ================================================================= */
.tipo-block {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px;
  margin-bottom: 12px;
  background: var(--surface-2);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.tipo-block.has-answer {
  border-color: rgba(104,181,191,0.35);
  background: var(--bg-elevated);
}

.tipo-extra {
  display: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.tipo-extra.visible { display: block; animation: fadeIn 0.25s var(--ease); }

/* =================================================================
   17. MODULE NAVIGATION
   ================================================================= */
.module-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* =================================================================
   18. ALERTS
   ================================================================= */
.alert {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.alert--error {
  background: rgba(244,115,111,0.10);
  border: 1px solid rgba(244,115,111,0.28);
  color: var(--danger);
}

.alert--success {
  background: rgba(61,220,151,0.10);
  border: 1px solid rgba(61,220,151,0.28);
  color: var(--success);
}

.alert--info {
  background: var(--primary-soft);
  border: 1px solid rgba(104,181,191,0.30);
  color: var(--text-on-soft);
}
.alert--info strong { color: var(--primary); }

/* =================================================================
   19. ID SCREEN (tela de identificação)
   ================================================================= */
#id-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

#id-screen .card {
  max-width: 460px;
  width: 100%;
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--sh-lg);
}

.logo-cognix {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.16em;
  text-transform: lowercase;
  display: block;
  margin-bottom: 6px;
}

/* Logo vetorial Cognix360 na tela de identificação / boas-vindas */
.id-screen-logo {
  height: 16px;
  width: auto;
  display: block;
  opacity: 0.9;
  margin-bottom: 12px;
}

/* =================================================================
   20. ERROR / LOADING SCREENS
   ================================================================= */
.error-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 40px 16px;
  gap: 16px;
}
.error-screen .error-icon { font-size: 3rem; opacity: 0.4; }
.error-screen h2 { color: var(--text); }
.error-screen p  { max-width: 360px; color: var(--text-muted); }

.loading-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.spinner {
  width: 38px; height: 38px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* =================================================================
   21. THANKS SCREEN (página obrigado)
   ================================================================= */
.thanks-content {
  padding: 48px 16px;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.thanks-icon {
  width: 76px; height: 76px;
  background: radial-gradient(130% 130% at 30% 20%, var(--primary), var(--primary-press) 80%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 26px;
  font-size: 2rem;
  color: var(--on-primary);
  border: 1px solid rgba(104,181,191,0.40);
  box-shadow:
    0 0 0 1px rgba(104,181,191,0.20),
    0 0 40px -4px var(--primary-glow),
    inset 0 1px 0 rgba(255,255,255,0.30);
}

.thanks-stats {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 28px 0;
  flex-wrap: wrap;
}

.thanks-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 20px;
  text-align: center;
  min-width: 120px;
  box-shadow: var(--sh-sm);
}

.thanks-stat .stat-number {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
  display: block;
  line-height: 1;
}

.thanks-stat .stat-label {
  font-size: 0.74rem;
  color: var(--text-faint);
  margin-top: 6px;
}

/* =================================================================
   22. INDEX HERO (tela inicial — usada pelo index.html legado)
   ================================================================= */
.index-hero {
  padding: 48px 0 28px;
  text-align: center;
}
.index-hero .logo-cognix { margin-bottom: 20px; }
.index-hero .subtitle {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* =================================================================
   23. FOOTER (minimalista)
   ================================================================= */
.site-footer {
  margin-top: 56px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer .footer-brand {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.14em;
  text-transform: lowercase;
}

.site-footer .footer-sub {
  font-size: 0.68rem;
  color: var(--text-faint);
  margin-top: 5px;
}

/* =================================================================
   24. TABS (index.html legado)
   ================================================================= */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.tab-btn {
  flex: 1;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* =================================================================
   25. RESPONSIVE
   ================================================================= */
@media (min-width: 480px) {
  .card { padding: 30px; }
  .card--hero { padding: 40px 32px; }
  .likert-options { gap: 10px; }
}

@media (min-width: 768px) {
  .module-steps { gap: 6px; }
  .step { min-width: 82px; padding: 8px 12px; }
  .step-name { font-size: 0.65rem; }
}

@media (max-width: 520px) {
  .container, .container--wide { padding: 0 14px; }
  .module-nav { flex-wrap: wrap; }
  .module-nav > div { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
  .btn { padding: 11px 16px; font-size: 0.85rem; }
  .header-user { max-width: 92px; }
  .likert-options { gap: 6px; }
  .likert-option span { font-size: 0.82rem; padding: 11px 0; }
  .likert-labels span { font-size: 0.66rem; }
  .thanks-stat { min-width: 96px; padding: 14px 14px; }
  .card { padding: 20px 18px; }
  .process-block, .tipo-block { padding: 16px 14px; }
}
