/* ==========================================================
   Teste Vocacional Rocket — estilos
   Tokens da seção "Identidade visual" da especificação.
   Mobile-first: estilos base = celular; @media = telas maiores.
   ========================================================== */

:root {
  --blue: #2438F0;
  --blue-deep: #1A2BC9;
  --lime: #D4FF3F;
  --ink: #0E0F14;
  --paper: #F2F1EE;
  --muted: rgba(242, 241, 238, .72);
  --line: rgba(242, 241, 238, .28);
  --error: #FFB4A6;

  --f-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-accent: "Instrument Serif", Georgia, serif;

  --gutter: 16px;
  --radius: 10px;
  --card-bg: rgba(14, 15, 20, .16);
  --card-bg-hover: rgba(14, 15, 20, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--blue);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; }

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

/* ---------- Barra de progresso ---------- */
.progress {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 6px;
  margin: 0;
  background: var(--line);
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}
.progress__fill {
  height: 100%;
  width: 0;
  background: var(--lime);
  border-radius: 6px;
  transition: width .5s var(--ease);
}

/* ---------- Cabeçalho ---------- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px var(--gutter) 8px;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
/* O logo.png já traz "A Escola do Novo Mercado" desenhado ao lado de ROCKET */
.brand { display: flex; align-items: center; min-width: 0; }
.brand__logo { height: auto; width: min(64vw, 303px); }
.counter {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* ---------- Área principal ---------- */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px var(--gutter) 32px;
  outline: none;
}
.main--quiz { justify-content: center; }

.screen { animation: screen-in .45s var(--ease) both; }
@keyframes screen-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Títulos ---------- */
.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lime);
  letter-spacing: .02em;
}
.title {
  margin: 0 0 28px;
  font-family: var(--f-display);
  font-weight: 820;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: -0.48px;
  font-size: clamp(32px, 9vw, 96px);
  overflow-wrap: break-word;
  max-width: 14ch;
}
.title em,
.accent {
  font-family: var(--f-accent);
  font-style: italic;
  font-weight: 400;
  text-transform: lowercase;
  color: var(--lime);
  letter-spacing: 0;
}
/* Perguntas são frases longas: título um pouco menor para as opções caberem na tela */
.title--question { font-size: clamp(30px, 8vw, 60px); max-width: 18ch; }
.lead { margin: 0 0 32px; color: var(--muted); max-width: 520px; font-size: 17px; }

/* ---------- Botões ---------- */
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 16px 24px;
  border: 0;
  border-radius: var(--radius);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.1;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .15s var(--ease), filter .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--lime); color: var(--ink); }
.btn--primary:hover { filter: brightness(1.06); }
.btn--block { width: 100%; }
.hint { font-size: 13px; color: var(--muted); }
.hint--desktop { display: none; }

.btn-link {
  background: none;
  border: 0;
  padding: 10px 0;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  font-size: 15px;
}
.btn-link:hover { color: var(--paper); }

/* ---------- Opções de resposta ---------- */
.options {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 520px;
}
.option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  text-align: left;
  background: var(--card-bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  color: var(--paper);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.option:hover { background: var(--card-bg-hover); }
.option:active { transform: scale(.99); }
.option__key {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: inherit;
}
.option__text { flex: 1; }
.option__check { flex-shrink: 0; font-weight: 700; opacity: 0; transition: opacity .15s; }
.option.is-selected {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}
.option.is-selected .option__key { background: var(--ink); border-color: var(--ink); color: var(--lime); }
.option.is-selected .option__check { opacity: 1; }
.options.is-locked .option { pointer-events: none; }

/* ---------- Campo de texto ---------- */
.field {
  display: block;
  width: 100%;
  max-width: 620px;
  margin: 0 0 12px;
  padding: 8px 0 10px;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--line);
  border-radius: 0;
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 30px;
  font-weight: 500;
  outline: none;
  transition: border-color .2s;
}
.field::placeholder { color: var(--line); }
.field:focus { border-bottom-color: var(--lime); }
.error { min-height: 22px; margin: 0 0 22px; color: var(--error); font-size: 14px; }

/* ---------- Rodapé ---------- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px var(--gutter);
  padding-bottom: max(14px, env(safe-area-inset-bottom));
  font-size: 13px;
  color: var(--muted);
}
.footer__nav { display: flex; gap: 6px; }
.footer__nav[hidden] { display: none; }
.nav-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--blue-deep);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  color: var(--paper);
  font-size: 18px;
  cursor: pointer;
  transition: background .15s, opacity .15s;
}
.nav-btn:hover:not(:disabled) { background: #1424b0; }
.nav-btn:disabled { opacity: .35; cursor: default; }

/* ==========================================================
   Página de resultado
   ========================================================== */
.result { display: flex; flex-direction: column; gap: 56px; padding-bottom: 24px; }
.block__label {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lime);
  letter-spacing: .02em;
}
.title--result { max-width: 16ch; margin-bottom: 18px; }
.moment { margin: 0 0 28px; font-size: 19px; color: var(--paper); max-width: 560px; }

.profiles { display: grid; gap: 10px; margin-bottom: 32px; }
.profile-card {
  padding: 16px;
  background: var(--card-bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
}
.profile-card__name {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 6px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 17px;
  text-transform: uppercase;
}
.profile-card p { margin: 0; color: var(--muted); }
.letter-key {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 6px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 700;
}

/* Barras de afinidade */
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 620px; }
.bar__head { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 14px; }
.bar__name { font-weight: 600; }
.bar__value { color: var(--muted); font-variant-numeric: tabular-nums; }
.bar__track { height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; }
.bar__fill {
  height: 100%;
  width: 0;
  background: var(--paper);
  opacity: .55;
  border-radius: 6px;
  transition: width .9s var(--ease);
}
.bar.is-top .bar__fill { background: var(--lime); opacity: 1; }
.bar.is-top .bar__value { color: var(--lime); }

/* Destaque do novo mercado (único bloco claro) */
.spotlight {
  padding: 28px 20px;
  background: var(--lime);
  color: var(--ink);
  border-radius: 18px;
}
.spotlight .block__label { color: var(--ink); opacity: .7; }
.spotlight__lead {
  margin: 0 0 22px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}
.spotlight__track {
  margin: 0 0 14px;
  font-family: var(--f-display);
  font-weight: 820;
  font-size: clamp(28px, 7.4vw, 56px);
  line-height: .98;
  letter-spacing: -0.48px;
  text-transform: uppercase;
}
.chips { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 12px;
  border: 1.5px solid rgba(14, 15, 20, .35);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}
.salary { padding-top: 22px; border-top: 1.5px solid rgba(14, 15, 20, .18); }
.salary__prefix { display: block; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.salary__value {
  display: block;
  font-family: var(--f-display);
  font-weight: 850;
  font-size: clamp(44px, 12.5vw, 132px);
  line-height: .9;
  letter-spacing: -0.03em;
}
.salary__num { white-space: nowrap; }
.salary__suffix { font-size: .32em; letter-spacing: 0; font-weight: 800; }
.salary__label { margin: 10px 0 0; font-size: 15px; font-weight: 600; }
.salary__detail { margin: 10px 0 0; font-size: 15px; }
.salary__source { margin: 12px 0 0; font-size: 12px; opacity: .75; }
.salary__source a { text-underline-offset: 2px; }
.salary__warning {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 600;
  opacity: .85;
}
.spotlight__text { margin: 24px 0 0; font-size: 17px; line-height: 1.45; }
.spotlight__quote {
  margin: 20px 0 0;
  font-family: var(--f-accent);
  font-style: italic;
  font-size: 24px;
  line-height: 1.2;
}
.spotlight__also {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1.5px solid rgba(14, 15, 20, .18);
  font-size: 15px;
}
.spotlight__also strong { font-weight: 700; }

/* Comparação faculdade x novo mercado */
.title--section { font-size: clamp(30px, 8vw, 64px); max-width: 16ch; margin-bottom: 24px; }
.compare { display: grid; gap: 12px; margin-bottom: 28px; }
.compare-card {
  padding: 18px 16px;
  background: var(--card-bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
}
.compare-card--new { border-color: var(--lime); }
.compare-card__title {
  margin: 0 0 14px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 17px;
  text-transform: uppercase;
}
.compare-card--new .compare-card__title { color: var(--lime); }
.compare-card dl { margin: 0; display: grid; gap: 12px; }
.compare-card dt { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.compare-card dd { margin: 0; font-weight: 500; }

.quotes { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 12px; max-width: 720px; }
.quotes li { padding-left: 14px; border-left: 3px solid var(--lime); font-size: 17px; }
.statement {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 820;
  text-transform: uppercase;
  font-size: clamp(26px, 7vw, 52px);
  line-height: .98;
  letter-spacing: -0.48px;
  max-width: 20ch;
}

/* Pitch */
.pitch { display: grid; gap: 14px; max-width: 720px; }
.pitch p { margin: 0; font-size: 18px; }
.pitch .title--section { margin-bottom: 6px; }

/* Inglês */
.english { margin: 0; font-size: 20px; max-width: 720px; }

/* CTA */
.cta {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: 28px 20px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: var(--card-bg);
}
.cta__above { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 22px; line-height: 1.1; text-transform: uppercase; }
.cta__below { margin: 0; color: var(--muted); font-size: 15px; }
.cta .btn { width: 100%; }
.restart { align-self: center; }

/* Botão fixo do WhatsApp */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  padding: 12px var(--gutter);
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--blue) 70%, rgba(36, 56, 240, 0));
  transition: transform .3s var(--ease), opacity .3s;
}
.sticky-cta[hidden] { display: block; transform: translateY(110%); opacity: 0; pointer-events: none; }
.sticky-cta .btn { max-width: 520px; margin: 0 auto; display: flex; }
body.has-sticky { padding-bottom: 88px; }

.noscript { color: var(--error); }

/* ==========================================================
   Telas maiores
   ========================================================== */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .brand__logo { width: auto; height: 22px; }
  .header { padding-top: 26px; }
  .main { padding-top: 40px; }
  .hint--desktop { display: inline; }
  .profiles { grid-template-columns: 1fr 1fr; }
  .compare { grid-template-columns: 1fr 1fr; }
  .spotlight { padding: 44px 40px; }
  .cta { padding: 36px 32px; }
  .cta .btn { width: auto; }
}

@media (min-width: 1024px) {
  :root { --gutter: 48px; }
  .result { gap: 80px; }
  .spotlight { padding: 56px; }
}

/* Celulares bem baixos: reduz espaços para as opções caberem */
@media (max-height: 700px) and (max-width: 639px) {
  .main { padding-top: 12px; }
  .title--question { margin-bottom: 18px; font-size: 26px; }
  .option { min-height: 46px; padding: 10px 14px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
