/* ==========================================================================
   Markant — Teste do evento /teste
   Mobile first, uma tela por etapa. Cores só via variáveis.
   ========================================================================== */

:root {
  --lima:         #D9E021;
  --verde:        #336B24;
  --cinza-escuro: #2B2A29;
  --cinza:        #5D5E5D;
  --branco:       #F9F9F9;
  --erro:         #f87171; /* mesmo tom de valor negativo da calculadora de ROI */

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body:    'Lexend', sans-serif;

  --radius: 14px;
  --texto-suave: color-mix(in srgb, var(--branco) 76%, var(--cinza-escuro));
  --superficie:  color-mix(in srgb, var(--branco) 7%, var(--cinza-escuro));
  --borda:       color-mix(in srgb, var(--branco) 22%, var(--cinza-escuro));
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--cinza-escuro);
  color: var(--branco);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
}

[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--lima);
  outline-offset: 3px;
}

[tabindex="-1"]:focus { outline: none; }

/* ----- Topo ----- */

.teste-header {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 20px 16px 0;
}

/* O PNG do logo tem margem transparente; a caixa recorta só a marca. */
.teste-logo {
  position: relative;
  display: block;
  width: 140px;
  height: 30px;
  overflow: hidden;
  flex-shrink: 0;
}

.teste-logo img {
  position: absolute;
  width: 192px;
  max-width: none;
  height: auto;
  left: -26px;
  top: -29.8px;
}

.teste-tag {
  padding-left: 12px;
  border-left: 1px solid var(--borda);
  color: var(--lima);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-transform: uppercase;
}

/* ----- Etapas ----- */

.teste-main {
  flex: 1;
  display: flex;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 32px 16px calc(32px + env(safe-area-inset-bottom));
}

.teste-step {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 20px;
}

.teste-step--inicio { justify-content: center; }

.teste-title,
.teste-question,
.teste-subtitle,
.teste-score,
.teste-verdict {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.teste-title { font-size: clamp(2.25rem, 10.5vw, 3rem); }
.teste-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 6px;
  margin-top: 20px;
  border-radius: 3px;
  background: var(--lima);
}

.teste-title-tag {
  display: block;
  margin-bottom: 0.15em;
  color: var(--lima);
  font-size: 0.6em;
  letter-spacing: 0.02em;
}

.teste-hero { display: grid; gap: 32px; }
.teste-hero-text { display: flex; flex-direction: column; gap: 20px; }

/* O que o diagnóstico avalia: dá contexto a quem chega e às buscas */
.teste-about { padding-top: 24px; border-top: 1px solid var(--borda); }

.teste-about h2 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}

.teste-about ul { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.teste-about li { color: var(--texto-suave); }
.teste-about strong { color: var(--branco); font-weight: 500; }
.teste-about p { margin: 0; color: var(--texto-suave); }

.teste-lead {
  margin: 0 0 8px;
  color: var(--texto-suave);
  font-size: 1.125rem;
}

.teste-question { font-size: clamp(1.375rem, 6vw, 1.75rem); min-height: 4.6em; }
.teste-subtitle { font-size: clamp(1.5rem, 7vw, 1.875rem); }

/* ----- Botões ----- */

.teste-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 14px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.teste-btn:active { transform: scale(0.98); }

.teste-btn--primary {
  background: var(--lima);
  color: var(--cinza-escuro);
}

.teste-btn--primary:disabled {
  background: var(--cinza);
  color: var(--branco);
  cursor: progress;
}

.teste-options {
  display: grid;
  gap: 10px;
}

.teste-btn--option {
  min-height: 64px;
  justify-content: flex-start;
  padding: 12px 18px;
  background: var(--superficie);
  border-color: var(--borda);
  color: var(--branco);
  font-size: 1.0625rem;
  font-weight: 500;
  text-align: left;
}

.teste-btn--option[aria-pressed="true"] { border-color: var(--lima); }

.teste-btn--option.is-escolhido {
  background: var(--lima);
  border-color: var(--lima);
  color: var(--cinza-escuro);
}

@media (hover: hover) {
  .teste-btn--option:hover { border-color: var(--lima); }
  .teste-back:hover, .teste-link:hover { color: var(--lima); }
}

.teste-back,
.teste-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--texto-suave);
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
}

.teste-link {
  align-self: center;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ----- Progresso ----- */

.teste-progress { display: grid; gap: 8px; }

.teste-progress-label {
  margin: 0;
  color: var(--lima);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
}

.teste-progress-track {
  height: 8px;
  border-radius: 4px;
  background: var(--superficie);
  overflow: hidden;
}

.teste-progress-fill {
  display: block;
  width: 10%;
  height: 100%;
  border-radius: inherit;
  background: var(--lima);
  transition: width 250ms ease;
}

/* ----- Resultado ----- */

.teste-score { display: grid; gap: 4px; }

.teste-score-label {
  color: var(--texto-suave);
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 400;
}

.teste-score-value { font-size: 2rem; }

.teste-score-value strong {
  color: var(--lima);
  font-size: 5.5rem;
  line-height: 1;
}

.teste-verdict { font-size: 1.375rem; }

/* Radar: as cores vêm daqui; o desenho é montado em teste.js. */
.teste-radar { width: 100%; max-width: 440px; margin: 0 auto; }
.teste-radar svg { display: block; width: 100%; height: auto; overflow: visible; }
.teste-radar-ring { fill: none; stroke: var(--borda); stroke-width: 1; }
.teste-radar-axis { stroke: var(--borda); stroke-width: 1; }
.teste-radar-area { fill: color-mix(in srgb, var(--lima) 32%, transparent); stroke: var(--lima); stroke-width: 2.5; stroke-linejoin: round; }
.teste-radar-dot { fill: var(--lima); }
.teste-radar-data { animation: teste-radar-entra 600ms ease-out; }
.teste-radar-name { fill: var(--branco); font-family: var(--font-heading); font-size: 15px; font-weight: 700; }
.teste-radar-value { fill: var(--lima); font-family: var(--font-heading); font-size: 16px; font-weight: 700; }

@keyframes teste-radar-entra {
  from { opacity: 0; transform: scale(0.2); }
  to { opacity: 1; transform: scale(1); }
}

.teste-radar-caption {
  margin-top: 8px;
  color: var(--texto-suave);
  font-size: 0.8125rem;
  text-align: center;
}

.teste-summary { margin: 0; font-size: 1.0625rem; }

.teste-tips-ok {
  margin: 0;
  padding: 14px 16px;
  border-left: 4px solid var(--lima);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--superficie);
  color: var(--texto-suave);
}

/* Relatório: um cartão por pergunta, com a borda e o selo conforme a resposta. */
.teste-report-title {
  margin: 12px 0 -12px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.teste-report-intro { margin: 0; color: var(--texto-suave); font-size: 0.9375rem; }

.teste-section-title {
  margin: 8px 0 -8px;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
}

.teste-report {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.teste-report-item {
  padding: 14px 16px 16px;
  border-left: 4px solid var(--lima);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--superficie);
}

.teste-report-item.is-nao { border-left-color: var(--erro); }
.teste-report-item.is-parte { border-left-color: var(--texto-suave); }

.teste-plan-when {
  display: block;
  margin-bottom: 4px;
  color: var(--lima);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
}

/* Área por área: abre e fecha sem JavaScript. */
.teste-areas { display: grid; gap: 10px; }

.teste-area {
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  background: var(--superficie);
}

.teste-area-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: start;
  min-height: 44px;
  padding: 14px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  list-style: none;
}

.teste-area-summary::-webkit-details-marker { display: none; }

.teste-area-name { display: grid; gap: 2px; min-width: 0; }
.teste-area-name strong { font-family: var(--font-heading); font-size: 1.0625rem; font-weight: 700; line-height: 1.25; }
.teste-area-about { color: var(--texto-suave); font-size: 0.875rem; line-height: 1.35; }

.teste-area-score {
  color: var(--lima);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  white-space: nowrap;
}

.teste-area-score::after {
  content: '+';
  display: inline-block;
  width: 1em;
  margin-left: 6px;
  color: var(--branco);
  text-align: center;
}

.teste-area[open] .teste-area-score::after { content: '\2212'; }

.teste-area-bar {
  grid-column: 1 / -1;
  display: block;
  height: 6px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--branco) 14%, var(--cinza-escuro));
  overflow: hidden;
}

.teste-area-bar span { display: block; height: 100%; border-radius: inherit; background: var(--lima); }

.teste-area .teste-report { padding: 0 12px 12px; }
.teste-area .teste-report-item { background: color-mix(in srgb, var(--branco) 4%, var(--cinza-escuro)); }

.teste-report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.teste-report-name {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.25;
}

.teste-report-status {
  flex-shrink: 0;
  padding: 3px 10px;
  border: 1px solid var(--lima);
  border-radius: 999px;
  background: var(--lima);
  color: var(--cinza-escuro);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
}

.is-nao .teste-report-status {
  border-color: var(--erro);
  background: transparent;
  color: var(--erro);
}

.is-parte .teste-report-status {
  border-color: var(--texto-suave);
  background: transparent;
  color: var(--branco);
}

.teste-report-result { margin: 8px 0 0; }

.teste-report-why {
  margin: 6px 0 0;
  color: var(--texto-suave);
  font-size: 0.9375rem;
}

.teste-report-why strong { color: var(--branco); font-weight: 500; }

.teste-restart { align-self: center; }

.teste-report-actions { display: grid; gap: 12px; }
.teste-btn--secondary { background: var(--superficie); border-color: var(--borda); color: var(--branco); font-size: 1rem; }
.teste-btn--secondary:disabled { opacity: .6; cursor: wait; }
.teste-btn--secondary[aria-disabled="true"] { opacity: .6; cursor: wait; }
.teste-report-feedback { margin: 0; color: var(--texto-suave); font-size: .8125rem; }
.teste-report-feedback:empty { display: none; }
.teste-report-actions .teste-link { font-size: .875rem; }
@media (hover: hover) {
  .teste-btn--secondary:hover:not(:disabled) { border-color: var(--lima); }
}

/* ----- Formulário ----- */

.teste-form { display: grid; gap: 18px; }

.teste-field { display: grid; gap: 6px; }

.teste-field label {
  font-weight: 500;
}

.teste-field input:not([type="checkbox"]) {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 2px solid var(--borda);
  border-radius: var(--radius);
  background: var(--superficie);
  color: var(--branco);
  font-family: var(--font-body);
  font-size: 1rem;
}

.teste-field input::placeholder { color: color-mix(in srgb, var(--branco) 45%, var(--cinza-escuro)); }

.teste-field input:focus-visible {
  border-color: var(--lima);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lima) 35%, transparent);
}

.teste-field input[aria-invalid="true"] { border-color: var(--erro); }

.teste-field--check {
  grid-template-columns: 28px 1fr;
  align-items: start;
  column-gap: 12px;
}

.teste-field--check input {
  width: 28px;
  height: 28px;
  margin: 0;
  accent-color: var(--lima);
}

.teste-field--check label { font-weight: 400; color: var(--texto-suave); }
.teste-field--check .teste-error { grid-column: 1 / -1; }

.teste-error {
  margin: 0;
  color: var(--erro);
  font-size: 0.9375rem;
}

.teste-legal {
  margin: 0;
  color: var(--texto-suave);
  font-size: 0.8125rem;
}

.teste-legal a { color: var(--branco); }

/* Campo isca: fora da tela para pessoas, visível para robôs. */
.teste-isca {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ----- Tela grande (balcão do evento): abertura em duas colunas com QR code ----- */

@media (min-width: 768px) {
  .teste-header,
  .teste-main { max-width: 1200px; padding-left: 32px; padding-right: 32px; }

  .teste-step:not(.teste-step--inicio) { max-width: 640px; margin: 0 auto; }

  .teste-hero { max-width: 880px; gap: 40px; }

  .teste-title { font-size: clamp(2.75rem, 6vw, 4.75rem); }
  .teste-lead { font-size: 1.375rem; }

  .teste-btn--hero {
    width: auto;
    min-width: 320px;
    min-height: 72px;
    align-self: flex-start;
    font-size: 1.375rem;
  }
}

@media (min-width: 1024px) {
  .teste-header,
  .teste-main { padding-left: 80px; padding-right: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .teste-btn, .teste-progress-fill { transition: none; }
  .teste-radar-data { animation: none; }
  .teste-btn:active { transform: none; }
}
