/* ═══════════════════════════════════════════════════════════════════
   RAIO-X DA RETENÇÃO — CXFit Consultoria
   Mobile first. Sem dependências externas.

   PALETA OFICIAL
   Cores extraídas por amostragem do arquivo original do logo
   ("CXFit Logo (novo).png"):

     #2A4398  azul institucional — tipografia CXFIT e CONSULTORIA
     #D3B769  dourado — contorno da lâmpada
     #302E30  grafite — rosca da lâmpada

   Todo o resto abaixo é derivado dessas três. Para ajustar a identidade,
   mexa apenas neste bloco — nenhum outro arquivo precisa ser tocado.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* --- Cores da marca --- */
  --cxfit-primary:        #2A4398;  /* azul do logo */
  --cxfit-primary-strong: #1C2E6B;  /* escurecido, para topos e ênfase */
  --cxfit-primary-soft:   #35509F;  /* hover dos botões */
  --cxfit-secondary:      #4A63B8;  /* azul de apoio, links e destaques */
  --cxfit-accent:         #D3B769;  /* dourado da lâmpada */
  --cxfit-accent-strong:  #B99A47;  /* dourado escurecido, para texto */
  --cxfit-graphite:       #302E30;  /* grafite do logo */
  --cxfit-background:     #F6F7FC;
  --cxfit-surface:        #FFFFFF;
  --cxfit-text:           #1E2340;
  --cxfit-text-muted:     #5F6883;
  --cxfit-border:         #E3E6F2;

  /* --- Derivados --- */
  --cxfit-primary-tint:   rgba(42, 67, 152, 0.06);
  --cxfit-primary-tint-2: rgba(42, 67, 152, 0.12);
  --cxfit-accent-tint:    rgba(211, 183, 105, 0.16);
  /* Alinhado ao vermelho da escala de gravidade (faixa REATIVO). */
  --cxfit-danger:         #A02D22;
  --cxfit-danger-tint:    rgba(160, 45, 34, 0.07);

  /* --- Tipografia --- */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;

  /* --- Espaçamento e forma --- */
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(30, 35, 64, 0.04),
               0 1px 3px rgba(30, 35, 64, 0.06);
  --shadow:    0 2px 4px rgba(30, 35, 64, 0.04),
               0 8px 24px rgba(30, 35, 64, 0.07);
  --shadow-lg: 0 4px 8px rgba(30, 35, 64, 0.05),
               0 20px 48px rgba(30, 35, 64, 0.10);

  --container: 680px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ─────────────── Reset ─────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* O atributo `hidden` precisa vencer qualquer `display` declarado depois.
   Sem esta regra, elementos com display próprio (`.actions { display: flex }`,
   por exemplo) continuam visíveis mesmo com hidden aplicado pelo JavaScript —
   o navegador só define `display: none` na folha padrão, que perde para
   qualquer regra de autor. Foi assim que o botão de agendar apareceu junto
   com a agenda embutida. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cxfit-text);
  background: var(--cxfit-background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { max-width: 100%; height: auto; display: block; }
button, input, a { font: inherit; color: inherit; }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--cxfit-primary); color: #fff;
  padding: 12px 20px; border-radius: 0 0 var(--radius-sm) 0; z-index: 100;
}
.skip-link:focus { left: 0; top: 0; }

:focus-visible {
  outline: 3px solid var(--cxfit-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ─────────────── Layout ─────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

main.container {
  flex: 1;
  padding-block: 28px 56px;
}

/* ─────────────── Header ─────────────── */
.site-header {
  background: var(--cxfit-surface);
  border-bottom: 1px solid var(--cxfit-border);
  padding-block: 14px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 34px; width: auto; }

.header-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cxfit-text-muted);
}

@media (max-width: 420px) {
  .logo img { height: 28px; }
  .header-tag { display: none; }
}

/* ─────────────── Footer ─────────────── */
.site-footer {
  border-top: 1px solid var(--cxfit-border);
  padding-block: 20px;
  background: var(--cxfit-surface);
}
.site-footer p {
  font-size: 13px;
  color: var(--cxfit-text-muted);
  text-align: center;
}

/* ─────────────── Telas ─────────────── */
.screen { display: none; }
.screen.is-active {
  display: block;
  animation: screen-in 0.4s var(--ease) both;
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ─────────────── Tipografia ─────────────── */
.display {
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--cxfit-primary);
}

.h1 { font-size: clamp(1.5rem, 5.5vw, 2rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
.h2 { font-size: clamp(1.25rem, 4.5vw, 1.5rem); line-height: 1.3; letter-spacing: -0.015em; font-weight: 700; }
.h3 { font-size: 1.0625rem; line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cxfit-secondary);
}

.lead { font-size: 1.0625rem; color: var(--cxfit-text-muted); line-height: 1.65; }
.muted { color: var(--cxfit-text-muted); }

.meta-note {
  font-size: 0.9375rem;
  color: var(--cxfit-text-muted);
  padding: 12px 16px;
  background: var(--cxfit-primary-tint);
  border-radius: var(--radius-sm);
  display: inline-block;
}

.fineprint { font-size: 13px; color: var(--cxfit-text-muted); text-align: center; }

.stack     > * + * { margin-top: 20px; }
.stack-sm  > * + * { margin-top: 8px; }
.stack-lg  > * + * { margin-top: 24px; }

/* ─────────────── Cards ─────────────── */
.card {
  background: var(--cxfit-surface);
  border: 1px solid var(--cxfit-border);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 16px; }
.card-centered { text-align: center; }

@media (min-width: 560px) { .card { padding: 32px; } }

/* ─────────────── Tela inicial ───────────────
   Bloco navy de alto contraste. A decisão é de leitura em estande de feira:
   luz alta, tela pequena, um metro de distância. Fundo claro sobre fundo claro
   não segura o olho nessas condições. No celular o bloco sangra até as bordas
   e encosta no cabeçalho — é o que dá presença sem precisar de imagem. */
.hero {
  background: var(--cxfit-primary-strong);
  color: #fff;
  padding: 44px 20px 40px;
  /* rompe o padding lateral e o respiro superior do container */
  margin: -28px -20px 0;
  border-bottom: 3px solid var(--cxfit-accent);
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cxfit-accent);
  margin-bottom: 18px;
}

/* LOCKUP DO TÍTULO
   Condensada em caixa alta, com "da Retenção" espaçado em dourado sobre um
   filete. Não é só um título de página: é um bloco reutilizável em peça
   gráfica, banner e apresentação.

   `Arial Narrow` é o plano B real — se a Barlow Condensed não carregar, o
   desenho continua condensado em vez de estourar a largura. */
.hero-title {
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  text-transform: uppercase;
  line-height: 0.9;
  margin-bottom: 22px;
}

.hero-title-main {
  display: block;
  font-size: clamp(3.25rem, 17vw, 4.75rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
}

.hero-title-sub {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-size: clamp(1.5rem, 7.5vw, 2.25rem);
  font-weight: 500;
  letter-spacing: 0.13em;
  color: var(--cxfit-accent);
}

.hero-title-dash {
  flex: 0 0 34px;
  height: 2px;
  background: var(--cxfit-accent);
}

.hero-lead {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #C6CEE6;
  max-width: 44ch;
}
.hero-lead strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-weight: 700;
}

/* Botão dourado, usado sobre os blocos navy (tela inicial e agendamento).
   O seletor é `.btn.btn-hero`, com dois nomes de classe, de propósito: a regra
   base `.btn` é declarada mais adiante no arquivo e, com especificidade igual,
   venceria pela ordem — pintando este botão de azul sobre fundo azul. Não
   troque por `.btn-hero` simples. */
.btn.btn-hero {
  --btn-bg: var(--cxfit-accent);
  --btn-fg: #2A2410;
  margin-top: 28px;
  min-height: 56px;
  padding-inline: 34px;
  font-size: 1.0625rem;
  width: 100%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}
.btn.btn-hero:hover:not(:disabled) { background: #E0C87F; }

.hero-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: #8E9BC2;
  text-align: center;
}

@media (min-width: 560px) {
  .hero {
    margin: 0;
    padding: 56px 48px 50px;
    border-radius: var(--radius-lg);
    border-bottom: 0;
    border-left: 3px solid var(--cxfit-accent);
  }
  .btn-hero { width: auto; }
  .hero-note { text-align: left; }
}

/* ─────────────── Botões ─────────────── */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  --btn-bg: var(--cxfit-primary);
  --btn-fg: #fff;
  appearance: none;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.005em;
  padding: 14px 26px;
  min-height: 50px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition: background-color 0.18s var(--ease),
              transform 0.14s var(--ease),
              box-shadow 0.18s var(--ease),
              opacity 0.18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.btn:hover:not(:disabled) { background: var(--cxfit-primary-soft); }
.btn:active:not(:disabled) { transform: translateY(1px); }

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary { box-shadow: 0 4px 14px rgba(42, 67, 152, 0.22); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 6px 20px rgba(42, 67, 152, 0.30); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--cxfit-text-muted);
  border-color: var(--cxfit-border);
  box-shadow: none;
}
.btn-ghost:hover:not(:disabled) { background: var(--cxfit-primary-tint); color: var(--cxfit-text); }

.btn-lg { min-height: 56px; padding-inline: 32px; font-size: 1.0625rem; }
.btn-block { width: 100%; }

/* Spinner de loading */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  display: none;
  animation: spin 0.7s linear infinite;
}
.btn.is-loading .spinner { display: block; }
.btn.is-loading .btn-label { opacity: 0.7; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─────────────── Formulário ─────────────── */
.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--cxfit-text);
}

.field input {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  font-size: 16px; /* 16px evita zoom automático no iOS */
  border: 1px solid var(--cxfit-border);
  border-radius: var(--radius-sm);
  background: var(--cxfit-surface);
  color: var(--cxfit-text);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field input::placeholder { color: #A3AEC2; }
.field input:focus {
  outline: none;
  border-color: var(--cxfit-secondary);
  box-shadow: 0 0 0 3px var(--cxfit-accent-tint);
}
.field input[aria-invalid="true"] { border-color: var(--cxfit-danger); }

.hint { font-size: 13px; color: var(--cxfit-text-muted); margin-top: 6px; }
.error { font-size: 13px; color: var(--cxfit-danger); margin-top: 6px; font-weight: 500; }

.consent {
  padding: 16px;
  background: var(--cxfit-primary-tint);
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.checkbox input {
  appearance: none;
  flex: 0 0 auto;
  width: 22px; height: 22px;
  margin-top: 1px;
  border: 2px solid var(--cxfit-text-muted);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.checkbox input:checked {
  background: var(--cxfit-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5'/%3E%3C/svg%3E") center/14px no-repeat;
  border-color: var(--cxfit-primary);
}
.consent .hint { margin-left: 34px; }
.consent a { color: var(--cxfit-secondary); text-decoration: underline; text-underline-offset: 2px; }

/* ─────────────── Progresso ─────────────── */
.progress-block { margin-bottom: 20px; }

.progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.progress-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cxfit-text);
  font-variant-numeric: tabular-nums;
}

.progress-theme {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cxfit-secondary);
}

.progress-track {
  height: 6px;
  background: var(--cxfit-border);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cxfit-primary), var(--cxfit-accent));
  box-shadow: 0 0 8px rgba(211, 183, 105, 0.35);
  transition: width 0.5s var(--ease);
}

/* ─────────────── Perguntas ─────────────── */
.question-card { animation: question-in 0.32s var(--ease) both; }

@keyframes question-in {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: none; }
}
.question-card.is-back { animation-name: question-in-back; }
@keyframes question-in-back {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: none; }
}

.question-title {
  font-size: 1.1875rem;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--cxfit-text);
}

.question-hint {
  font-size: 0.875rem;
  color: var(--cxfit-text-muted);
  margin-top: 8px;
  line-height: 1.5;
}

.options { margin-top: 20px; display: grid; gap: 10px; }

.option {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px 16px;
  min-height: 56px;
  border: 1px solid var(--cxfit-border);
  border-radius: var(--radius-sm);
  background: var(--cxfit-surface);
  cursor: pointer;
  text-align: left;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--cxfit-text);
  transition: border-color 0.15s var(--ease),
              background-color 0.15s var(--ease),
              transform 0.12s var(--ease);
  -webkit-tap-highlight-color: transparent;
  width: 100%;
}

.option:hover { border-color: var(--cxfit-secondary); background: var(--cxfit-primary-tint); }
.option:active { transform: scale(0.995); }

.option.is-selected {
  border-color: var(--cxfit-primary);
  background: var(--cxfit-primary-tint);
  box-shadow: inset 0 0 0 1px var(--cxfit-primary);
}

.option-marker {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border: 2px solid #C3CCDB;
  background: #fff;
  margin-top: 1px;
  transition: all 0.15s var(--ease);
}
.option[data-type="single"] .option-marker { border-radius: 50%; }
.option[data-type="multi"]  .option-marker { border-radius: 6px; }

.option.is-selected .option-marker {
  border-color: var(--cxfit-primary);
  background: var(--cxfit-primary);
  box-shadow: inset 0 0 0 3px #fff;
}
.option[data-type="multi"].is-selected .option-marker {
  box-shadow: none;
  background: var(--cxfit-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5'/%3E%3C/svg%3E") center/13px no-repeat;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}
.quiz-nav .btn { flex: 1; }
@media (min-width: 560px) {
  .quiz-nav .btn { flex: 0 0 auto; min-width: 150px; }
}

/* ─────────────── Pré-resultado ─────────────── */
.ready-mark {
  color: var(--cxfit-accent-strong);
  display: flex;
  justify-content: center;
  animation: mark-in 0.6s var(--ease) both;
}
@keyframes mark-in {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: none; }
}

/* ─────────────── Resultado ───────────────

   ESCALA DE GRAVIDADE — verde/amarelo/laranja/vermelho.

   A cor não é decoração: ela informa. Um 22 e um 92 não podem ter a mesma
   temperatura. Os matizes são os da régua clássica de severidade (a mesma
   lógica de escalas de dor), em versão aprofundada — inconfundível como sinal,
   sem cair no visual de semáforo.

   O azul e o dourado da CXFit continuam sendo a MARCA (topo, agendamento).
   Esta paleta é o INSTRUMENTO. Separar as duas coisas é proposital.

   `--faixa`       cor cheia: anel, barra da régua, filetes
   `--faixa-texto` versão escurecida, para texto sobre branco (contraste) */

#screen-result[data-faixa="REATIVO"]       { --faixa: #C0392B; --faixa-texto: #A02D22; }
#screen-result[data-faixa="APRENDIZAGEM"]  { --faixa: #D97706; --faixa-texto: #A85A05; }
#screen-result[data-faixa="ESTRUTURACAO"]  { --faixa: #E8B90B; --faixa-texto: #8A6D04; }
#screen-result[data-faixa="APRIMORAMENTO"] { --faixa: #3E9E5F; --faixa-texto: #2C7444; }

/* Antes de o resultado ser calculado, cai no azul da marca. */
#screen-result { --faixa: var(--cxfit-primary); --faixa-texto: var(--cxfit-primary); }

.result-card {
  text-align: center;
  border-top: 4px solid var(--faixa);
}

.result-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cxfit-text-muted);
  line-height: 1.5;
}

.result-sublabel {
  font-size: 12.5px;
  line-height: 1.5;
  color: #8189A3;
  margin-top: 8px;
  max-width: 34ch;
  margin-inline: auto;
}

.score-display { display: flex; justify-content: center; margin-block: 20px 24px; }

.score-ring { position: relative; width: 200px; height: 200px; }
.score-ring svg { transform: rotate(-90deg); }

.ring-track, .ring-value {
  fill: none;
  stroke-width: 14;
  stroke-linecap: round;
}
.ring-track { stroke: #EEF0F5; }
.ring-value {
  stroke: var(--faixa);
  stroke-dasharray: 553;
  stroke-dashoffset: 553;
  transition: stroke-dashoffset 1.2s var(--ease), stroke 0.4s var(--ease);
}

/* Duas camadas de propósito:
   .score-number centraliza o conjunto dentro do anel;
   .score-figure alinha o número e o "/100" pela linha de base entre si.
   Fazer as duas coisas no mesmo elemento não funciona — `align-items: baseline`
   num contêiner de altura total joga o conteúdo para o topo. */
.score-number {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.score-figure {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-weight: 700;
  color: var(--faixa-texto);
  letter-spacing: -0.04em;
}

#score-value { font-size: 3.75rem; line-height: 1; font-variant-numeric: tabular-nums; }
.score-total { font-size: 1.25rem; color: var(--cxfit-text-muted); font-weight: 600; }

.classification { padding-top: 4px; }

.classification-badge {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faixa-texto);
  background: var(--cxfit-surface);
  border: 1.5px solid var(--faixa);
  padding: 8px 20px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.classification-text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--cxfit-text-muted);
  max-width: 46ch;
  margin-inline: auto;
}

/* ─────────────── Régua das faixas ─────────────── */
.scale { margin-top: 26px; }

.scale-track {
  position: relative;
  display: flex;
  gap: 3px;
}

.scale-seg { flex: 1; height: 14px; }
.scale-seg:first-child { border-radius: 4px 0 0 4px; }
.scale-seg:last-child  { border-radius: 0 4px 4px 0; }

.scale-seg[data-faixa="REATIVO"]       { background: #C0392B; }
.scale-seg[data-faixa="APRENDIZAGEM"]  { background: #D97706; }
.scale-seg[data-faixa="ESTRUTURACAO"]  { background: #E8B90B; }
.scale-seg[data-faixa="APRIMORAMENTO"] { background: #3E9E5F; }

/* O segmento alcançado ganha um contorno escuro para se destacar dos vizinhos. */
.scale-seg.is-atual { box-shadow: 0 0 0 2.5px var(--cxfit-text); }

.scale-marker {
  position: absolute;
  top: -11px;
  left: 0;
  width: 0; height: 0;
  transform: translateX(-7px);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid var(--cxfit-text);
  transition: left 0.9s var(--ease);
}

.scale-labels {
  display: flex;
  gap: 3px;
  margin-top: 8px;
}
.scale-labels > span {
  flex: 1;
  font-size: 9.5px;
  line-height: 1.35;
  color: #8189A3;
}
.scale-labels > span.is-atual {
  color: var(--faixa-texto);
  font-weight: 700;
}
.scale-labels b { display: block; font-weight: inherit; }

/* ─────────────── Pontos críticos ─────────────── */
.flags-title {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--cxfit-text);
  letter-spacing: -0.01em;
}

/* O número faz mais peso do que qualquer tom de fundo. */
.flags-count {
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 700;
  color: var(--cxfit-danger);
  font-variant-numeric: tabular-nums;
}

.flag-list { display: grid; gap: 8px; margin-top: 15px; }

.flag-list li {
  padding: 12px 15px;
  background: #FDF1EF;
  border-left: 3px solid var(--cxfit-danger);
  border-radius: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  color: #6E211A;
  animation: flag-in 0.4s var(--ease) both;
}
@keyframes flag-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.no-flags {
  margin-top: 14px;
  padding: 16px;
  background: var(--cxfit-primary-tint);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--cxfit-text-muted);
  line-height: 1.6;
}

/* ─────────────── Agendamento ───────────────
   Navy, igual à tela inicial. Fecha o ciclo visual: a pessoa começou num bloco
   escuro e termina noutro. Depois de dois cards brancos com o resultado, o
   contraste faz o convite ser a última coisa que ela enxerga. */
.booking-card {
  background: var(--cxfit-primary-strong);
  border: 0;
  border-top: 3px solid var(--cxfit-accent);
  box-shadow: var(--shadow);
  color: #fff;
}

.booking-title {
  font-size: clamp(1.1875rem, 5.2vw, 1.5rem);
  line-height: 1.32;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: #fff;
}
.booking-title .destaque { color: var(--cxfit-accent); }

.booking-lead {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #C6CEE6;
  margin-block: 12px 22px;
}

/* O rótulo do botão é longo de propósito. Em telas estreitas ele quebra em
   duas linhas — o botão precisa acomodar isso sem espremer o texto. */
.booking-card .btn.btn-hero {
  margin-top: 0;
  height: auto;
  min-height: 58px;
  padding: 15px 26px;
  line-height: 1.3;
  white-space: normal;
  text-align: center;
}

.booking-card .fineprint { color: #8E9BC2; }
.booking-card .fineprint a { color: var(--cxfit-accent); }

.booking-embed {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  margin-bottom: 14px;
}
/* O widget do Calendly cria o iframe aqui dentro e cuida da própria altura,
   crescendo conforme a pessoa avança pelas etapas. A altura mínima abaixo
   apenas evita que o bloco nasça achatado enquanto carrega. */
#booking-widget {
  min-width: 0;
  min-height: 700px;
}
.booking-embed iframe {
  width: 100%;
  border: 0;
  display: block;
}
@media (max-width: 560px) { #booking-widget { min-height: 780px; } }

.result-footer {
  margin-top: 24px;
  font-size: 12.5px;
  color: var(--cxfit-text-muted);
  text-align: center;
  line-height: 1.6;
}

/* ─────────────── Toast ─────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  background: var(--cxfit-text);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 60;
  opacity: 0;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  max-width: calc(100vw - 40px);
  text-align: center;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%); }

/* ─────────────── Acessibilidade e preferências ─────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header, .site-footer, .booking-card, .toast { display: none !important; }
  .card { box-shadow: none; border-color: #ccc; }
}

/* ═══════════════════════════════════════════════════════════════════
   MODO COMPACTO DO QUESTIONÁRIO — celular

   Problema real: a P12 tem enunciado de quatro linhas e cinco alternativas,
   várias com duas linhas. Somando cabeçalho fixo, barra de progresso, cartão,
   navegação e rodapé, o conteúdo passava da altura da tela e obrigava a rolar
   no meio da pergunta — o que faz a pessoa achar que já viu tudo e clicar em
   "Continuar" sem ler as últimas opções.

   A solução é orçamentária: cada regra abaixo devolve altura. Somadas, elas
   liberam cerca de 195 px, o suficiente para as perguntas longas caberem
   inteiras nos aparelhos atuais.

   O que NÃO foi feito: diminuir a área de toque das alternativas abaixo de
   48 px. Espremer o alvo do dedo para ganhar pixel é troca ruim.
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 560px) {

  /* O rodapé não tem função durante o questionário. ~61 px */
  body[data-tela="screen-quiz"] .site-footer { display: none; }

  /* Respiro do container: o cartão já tem o seu. ~50 px */
  body[data-tela="screen-quiz"] main.container { padding-block: 14px 20px; }

  /* Cabeçalho mais enxuto — o logo continua legível. ~16 px */
  body[data-tela="screen-quiz"] .site-header { padding-block: 10px; }
  body[data-tela="screen-quiz"] .logo img { height: 26px; }

  /* Barra de progresso. ~8 px */
  body[data-tela="screen-quiz"] .progress-block { margin-bottom: 12px; }

  /* Cartão da pergunta. ~16 px */
  body[data-tela="screen-quiz"] .question-card { padding: 18px 16px; }

  .question-title { font-size: 1.125rem; line-height: 1.35; }
  .options { margin-top: 16px; gap: 8px; }

  /* Alternativas: menos respiro vertical, mesma área de toque. ~38 px */
  .option {
    padding: 12px 14px;
    min-height: 48px;
    line-height: 1.35;
  }

  /* Navegação. ~8 px */
  .quiz-nav { margin-top: 12px; }
  .quiz-nav .btn { min-height: 48px; }
}

/* Trechos do rótulo do botão que não quebram por dentro.
   A quebra, quando necessária, acontece só no espaço entre eles. */
.btn-linha { display: inline-block; white-space: nowrap; }
