/* ==========================================================================
   THS Digital — Diagnóstico Estratégico THS 360°
   Folha de estilos standalone (sem frameworks).

   Os tokens abaixo (cores, fontes, sombras, radius) foram extraídos
   diretamente do index.html para garantir 100% de fidelidade visual
   com o resto do site. Qualquer alteração de marca deve ser feita
   nos dois locais (index.html e aqui) até existir uma folha partilhada.
   ========================================================================== */

/* ---------- 1. Design tokens (idênticos ao index.html) ---------- */
:root {
  --background: #07182e;
  --foreground: #f2f7ff;
  --card: #0c2440;
  --card-foreground: #f2f7ff;
  --primary: #1677ff;
  --primary-foreground: #ffffff;
  --secondary: #0f2a4a;
  --secondary-foreground: #eaf3ff;
  --muted: #0f2a4a;
  --muted-foreground: #9fbde0;
  --accent: #4da3ff;
  --accent-foreground: #04101f;
  --border: rgba(77, 163, 255, 0.18);
  --input: rgba(77, 163, 255, 0.24);
  --ring: #4da3ff;
  --whatsapp: #25d366;
  --whatsapp-foreground: #04241a;
  --ink: #04101f;
  --radius: 1rem;

  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Poppins", ui-sans-serif, system-ui, sans-serif;

  --shadow-soft: 0 1px 2px rgba(3, 12, 26, 0.5), 0 12px 32px -18px rgba(22, 119, 255, 0.45);
  --shadow-lift: 0 2px 6px rgba(3, 12, 26, 0.55), 0 28px 60px -24px rgba(22, 119, 255, 0.45);
}

/* ---------- 2. Reset mínimo ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
.container {
  width: 100%;
  max-width: 56rem; /* 896px — mesma largura de leitura usada nas secções do site */
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Respeita a preferência do utilizador por menos movimento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- 3. Header mínimo (consistente com o site, mas leve — página de funil) ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(7, 24, 46, 0.8);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}
.logo { display: inline-flex; align-items: center; gap: 0.625rem; }
.logo-mark { width: 2rem; height: 2rem; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}
.logo-text .sub { margin-left: 0.25rem; font-weight: 500; color: var(--accent); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.3s;
}
.back-link:hover { color: var(--foreground); }
.back-link svg { width: 1rem; height: 1rem; }

/* ---------- 4. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 78% 30%, rgba(22, 119, 255, 0.32), rgba(0, 0, 0, 0) 70%),
    radial-gradient(45% 55% at 10% 10%, rgba(77, 163, 255, 0.16), rgba(0, 0, 0, 0) 70%),
    linear-gradient(rgb(7, 27, 52) 0%, rgb(7, 24, 46) 100%);
  border-bottom: 1px solid var(--border);
}
.hero .container {
  padding-top: 5rem;
  padding-bottom: 5rem;
  text-align: center;
  max-width: 44rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(77, 163, 255, 0.3);
  background: rgba(12, 36, 64, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
}
.eyebrow .dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(77, 163, 255, 0.18);
}
.hero h1 {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
}
.hero h1 .accent-word { color: var(--accent); }
.hero p.lead {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}
.hero .meta-row {
  margin-top: 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  border: 1px solid var(--border);
  background: rgba(12, 36, 64, 0.5);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
}
.hero .meta-row svg { width: 1.1rem; height: 1.1rem; color: var(--accent); flex-shrink: 0; }
.meta-row-text { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.meta-row-label { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-foreground); }
.meta-row-value { font-size: 0.9375rem; font-weight: 600; color: var(--foreground); }

/* ---------- 5. Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3.25rem;
  padding-inline: 1.75rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { filter: brightness(1.08); box-shadow: var(--shadow-lift); }

.btn-ghost {
  background: rgba(12, 36, 64, 0.6);
  color: var(--foreground);
  border: 1px solid rgba(77, 163, 255, 0.3);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: rgba(77, 163, 255, 0.6); background: var(--card); }

.btn-outline {
  background: transparent;
  color: var(--muted-foreground);
  border: 1px solid var(--border);
}
.btn-outline:hover { color: var(--foreground); border-color: rgba(77, 163, 255, 0.5); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.hero .cta-row { margin-top: 2.25rem; display: flex; justify-content: center; }
.btn-hero-cta { height: 3.5rem; padding-inline: 2.25rem; font-size: 1rem; }
.btn-hero-cta svg { width: 1.15rem; height: 1.15rem; transition: transform 0.3s; }
.btn-hero-cta:hover svg { transform: translateX(4px); }

/* ---------- 5b. Secções da apresentação (Como funciona / O que será analisado) ---------- */
.band-gradient { background: linear-gradient(rgb(10, 31, 56) 0%, rgb(7, 24, 46) 100%); }

.how-it-works, .analysis-grid, .start-cta {
  padding-block: 4.5rem;
  border-bottom: 1px solid var(--border);
}
.section-head { text-align: center; max-width: 34rem; margin-inline: auto; }
.eyebrow-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.section-head h2 {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
  line-height: 1.15;
}

/* Fluxo "Como funciona" — 4 cards ligados por setas */
.flow {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}
.flow-card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: linear-gradient(rgba(12, 36, 64, 0.9), rgba(9, 28, 51, 0.9));
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}
.flow-card:hover { transform: translateY(-3px); border-color: rgba(77, 163, 255, 0.45); }
.flow-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(77, 163, 255, 0.15);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}
.flow-card p { font-size: 0.9375rem; font-weight: 500; line-height: 1.5; }
.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  opacity: 0.7;
}
.flow-arrow svg { width: 1.25rem; height: 1.25rem; transform: rotate(90deg); }

@media (min-width: 900px) {
  .flow { flex-direction: row; align-items: center; }
  .flow-card { flex: 1; }
  .flow-arrow svg { transform: rotate(0deg); }
}

/* Grade "O que será analisado" */
.checklist {
  margin-top: 2.5rem;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  max-width: 40rem;
  margin-inline: auto;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--border);
  background: rgba(12, 36, 64, 0.5);
  border-radius: 0.875rem;
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: border-color 0.3s, background 0.3s;
}
.checklist li:hover { border-color: rgba(77, 163, 255, 0.4); background: var(--card); }
.checklist li svg { width: 1.1rem; height: 1.1rem; color: var(--accent); flex-shrink: 0; }

@media (min-width: 640px) {
  .checklist { grid-template-columns: 1fr 1fr; }
}

/* CTA grande de início */
.start-cta { text-align: center; border-bottom: none; }
.start-cta-lead {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 1.75rem;
}
.btn-start-big {
  height: 3.75rem;
  padding-inline: 2.75rem;
  font-size: 1.0625rem;
}
.btn-start-big svg { width: 1.15rem; height: 1.15rem; transition: transform 0.3s; }
.btn-start-big:hover svg { transform: translateX(4px); }

/* Transição de saída da apresentação (ao clicar em Iniciar Diagnóstico) */
#presentation {
  transition: opacity 0.4s ease, transform 0.4s ease;
}
#presentation.is-leaving {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}
#presentation[hidden] { display: none; }

/* ---------- 6. Wizard ---------- */
.wizard {
  padding-block: 4.5rem;
  /* Escondido até o utilizador clicar em "Iniciar Diagnóstico" */
}
.wizard[hidden] { display: none; }

/* Modo "tela cheia": ativado via JS quando o diagnóstico começa,
   para que o wizard ocupe visualmente o ecrã inteiro, reforçando a
   sensação de um processo dedicado (e não apenas mais uma secção). */
.wizard.is-fullscreen {
  min-height: calc(100vh - 4.5rem); /* desconta a altura do header sticky */
  display: flex;
  align-items: center;
}
.wizard.is-fullscreen .container { width: 100%; }

.progress-wrap { margin-bottom: 2rem; }
.progress-labels {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-bottom: 0.625rem;
}
.progress-labels .step-count { font-weight: 600; color: var(--foreground); }
.progress-labels .step-percent { font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 600; }
.progress-track {
  height: 0.5rem;
  border-radius: 999px;
  background: var(--secondary);
  overflow: hidden;
  border: 1px solid var(--border);
}
/* Preenchimento com transição mais fluida (sensação premium) e leve
   brilho a percorrer a barra, reforçando a sofisticação do processo. */
.progress-bar {
  position: relative;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 10%; /* atualizado via JS */
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.progress-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.35) 45%, transparent 70%);
  background-size: 200% 100%;
  animation: ths-progress-sheen 2.2s ease-in-out infinite;
}
@keyframes ths-progress-sheen {
  0% { background-position: 200% 0; }
  100% { background-position: -60% 0; }
}

/* Card de cada etapa */
.step-card {
  position: relative;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background: linear-gradient(rgba(12, 36, 64, 0.9), rgba(9, 28, 51, 0.9));
  box-shadow: var(--shadow-soft);
  padding: clamp(1.75rem, 1.4rem + 1.5vw, 3rem);
}
.step-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.step-kicker .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: rgba(77, 163, 255, 0.15);
  color: var(--accent);
  font-size: 0.75rem;
}
.step-card h2 {
  margin-top: 0.875rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.375rem, 1.15rem + 1vw, 1.875rem);
  line-height: 1.2;
}
.step-card .step-desc {
  margin-top: 0.625rem;
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 40rem;
}

/* Pequeno texto de abertura de cada etapa (transforma o formulário numa
   conversa: uma frase de destaque + uma frase de contexto). Reaproveita
   .step-desc — mantemos a classe original para não alterar o HTML já
   existente, apenas o conteúdo passa a ter uma frase em destaque. */
.step-card .step-desc strong { color: var(--foreground); font-weight: 600; }

/* Área reservada às perguntas — agora populada com os campos reais */
.step-questions {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px dashed var(--border);
}
/* Quando ainda não há campos (placeholder de estrutura) mantemos o
   antigo layout centrado — usado apenas se `fields` estiver vazio. */
.step-questions.is-placeholder {
  min-height: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-questions .placeholder-note {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  border: 1px dashed var(--border);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  text-align: center;
}

/* ---------- 6b. Campos do formulário ---------- */
.field-group { display: flex; flex-direction: column; gap: 1.5rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}
.field-label .required-mark { color: var(--accent); margin-left: 0.2rem; }
.field-help { font-size: 0.8125rem; color: var(--muted-foreground); margin-top: -0.25rem; }

/* Inputs, textarea e select nativos, com a mesma linguagem visual do site */
.field-input,
.field-textarea,
.field-select {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--foreground);
  background: rgba(7, 24, 46, 0.6);
  border: 1px solid var(--input);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field-textarea { min-height: 6.5rem; resize: vertical; line-height: 1.5; }
.field-input::placeholder,
.field-textarea::placeholder { color: var(--muted-foreground); opacity: 0.7; }
.field-input:focus,
.field-textarea:focus,
.field-select:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.18);
}
.field-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239fbde0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Cards clicáveis — usados para perguntas de escolha única (radio) e
   múltipla (checkbox), sempre com input nativo acessível por trás. */
.field-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.625rem;
}
.field-card { position: relative; }
.field-card input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.field-card label {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: rgba(12, 36, 64, 0.5);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.25s ease;
}
.field-card label:hover { border-color: rgba(77, 163, 255, 0.45); color: var(--foreground); }
.field-card input:checked + label {
  border-color: var(--accent);
  background: rgba(22, 119, 255, 0.14);
  color: var(--foreground);
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.field-card input:focus-visible + label { outline: 2px solid var(--ring); outline-offset: 2px; }
.field-card .check-mark {
  display: none;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--accent);
}
.field-card input:checked + label .check-mark { display: inline-flex; }

/* Estado de erro (validação) — nunca usa alert(), apenas mensagem inline */
.field.has-error .field-input,
.field.has-error .field-textarea,
.field.has-error .field-select {
  border-color: var(--destructive);
  box-shadow: 0 0 0 3px rgba(255, 93, 93, 0.16);
}
.field.has-error .field-cards .field-card label { border-color: rgba(255, 93, 93, 0.5); }
.field-error {
  display: none;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--destructive);
}
.field-error svg { width: 0.9rem; height: 0.9rem; flex-shrink: 0; }
.field.has-error .field-error { display: flex; }

/* Pequena vibração no card quando há erro ao tentar avançar */
.step-card.is-shaking { animation: ths-shake 0.4s ease; }
@keyframes ths-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

/* Resumo de erro (anunciado a leitores de ecrã via aria-live) */
.field-error-summary {
  margin-top: -0.5rem;
  font-size: 0.8125rem;
  color: var(--destructive);
}

/* Notas informativas fixas (ex.: sobre fotos e textos fornecidos pela THS) */
.field-note {
  display: flex;
  gap: 0.625rem;
  border: 1px solid var(--border);
  background: rgba(77, 163, 255, 0.08);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}
.field-note svg { width: 1rem; height: 1rem; color: var(--accent); flex-shrink: 0; margin-top: 0.1rem; }

/* ---------- 6c. Envio para o Netlify Forms ---------- */

/* Mensagem de erro de envio — nunca alert(), sempre inline e elegante */
.submit-error {
  margin-top: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  border: 1px solid rgba(255, 93, 93, 0.35);
  background: rgba(255, 93, 93, 0.08);
  border-radius: 0.875rem;
  padding: 1rem 1.1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--foreground);
  animation: ths-step-fade-simple 0.35s ease;
}
.submit-error[hidden] { display: none; }
.submit-error svg { width: 1.1rem; height: 1.1rem; color: var(--destructive); flex-shrink: 0; margin-top: 0.1rem; }
.submit-error strong { display: block; margin-bottom: 0.2rem; color: var(--destructive); }
@keyframes ths-step-fade-simple {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Estado "a enviar…" no botão Concluir — pequeno spinner, sem alterar o layout do botão */
.btn.is-loading { pointer-events: none; opacity: 0.85; }
.btn .btn-spinner {
  display: none;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: currentColor;
  animation: ths-spin 0.7s linear infinite;
}
.btn.is-loading .btn-spinner { display: inline-block; }
.btn.is-loading .btn-label-default { display: none; }
.btn.is-loading svg:not(.btn-spinner) { display: none; }
@keyframes ths-spin {
  to { transform: rotate(360deg); }
}

/* Navegação do wizard */
.step-nav {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.step-nav .btn svg { width: 1.05rem; height: 1.05rem; }
.step-dots {
  display: flex;
  gap: 0.375rem;
}
.step-dots span {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--border);
  transition: background 0.3s, transform 0.3s;
}
.step-dots span.is-active { background: var(--accent); transform: scale(1.3); }
.step-dots span.is-done { background: var(--primary); }

/* Transições suaves e direcionais entre etapas.
   .is-entering-next  → a nova etapa desliza a partir da direita (avançar)
   .is-entering-back   → a nova etapa desliza a partir da esquerda (voltar) */
.step-card.is-entering-next {
  animation: ths-step-enter-next 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.step-card.is-entering-back {
  animation: ths-step-enter-back 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes ths-step-enter-next {
  0% { opacity: 0; transform: translateX(24px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes ths-step-enter-back {
  0% { opacity: 0; transform: translateX(-24px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* Ecrã de finalização */
.step-final-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.14);
  color: var(--whatsapp);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.step-final-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--whatsapp);
  margin-bottom: 0.5rem;
}
.final-checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.final-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--foreground);
}
.final-checklist svg { width: 1.1rem; height: 1.1rem; color: var(--accent); flex-shrink: 0; margin-top: 0.15rem; }
.step-final-thanks {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}
.step-final-actions { margin-top: 2rem; }

/* Animação de entrada reutilizável (igual ao .fade-up do site) */
.fade-up { animation: ths-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes ths-fade-up {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ---------- 7. Footer minimal ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2.5rem;
  background: var(--ink);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}
.site-footer a:hover { color: var(--foreground); }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ---------- 8. Responsividade ---------- */
@media (max-width: 640px) {
  .hero .container { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .step-card { padding: 1.5rem; }
  .step-nav { flex-wrap: wrap; }
  .step-nav .btn { flex: 1 1 auto; }
  .site-footer .container { flex-direction: column; align-items: flex-start; text-align: left; }
  .field-cards { grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); }
}

@media (min-width: 768px) {
  .container { padding-inline: 2rem; }
}

/* ---------- 9. Modo Demonstração privado ----------
   Este elemento só existe no DOM quando diagnostico.js o injeta (uso
   interno da THS Digital via chave de acesso). Nunca aparece para um
   visitante comum e não faz parte do layout normal da página. */
.demo-mode-badge {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
  background: rgba(12, 36, 64, 0.85);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
  pointer-events: none; /* nunca interfere com cliques da página */
}
.demo-mode-badge::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--accent);
}

@media (max-width: 640px) {
  .demo-mode-badge { right: 0.75rem; bottom: 0.75rem; font-size: 0.6875rem; padding: 0.35rem 0.7rem; }
}
