/* Paleta e tipografia extraídas de scaffoldplay.com.br */
:root {
  color-scheme: dark;
  --pretinho: #121212;
  --vermelhinho: #f16522;
  --verdinho: #62d377;
  --amarelinho: #f7c800;
  --rosinha: #fe94ba;
  --azulzinho: #0061ff;
  --branco: #ffffff;
  --laranja-vivo: #ff8a00; /* só no radar, para se diferenciar do laranja da marca */

  /* Modo noturno: mesma marca, superfícies escuras */
  --bg: #121212;
  --surface: #1c1c1c;
  --surface-2: #242424;
  --texto: #f2f2f2;
  --texto-2: #b5b5b5;
  --cinza-bg: var(--surface);
  --cinza-borda: #3a3a3a;
  --cinza-texto: #9a9a9a;

  --font-head: "Manrope", Arial, sans-serif;
  --font-body: "DM Sans", "Manrope", Arial, sans-serif;

  --radius-pill: 50px;
  --radius: 10px;
  --wrap: 1120px;
  --wrap-narrow: 760px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--texto);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; }

button { font: inherit; }

[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.wrap--narrow { max-width: var(--wrap-narrow); }

.muted { color: var(--cinza-texto); }

.kicker {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vermelhinho);
  margin-bottom: 12px;
}
.kicker--light { color: rgba(255, 255, 255, 0.85); }
.kicker--green { color: var(--verdinho); }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--bg);
  border-bottom: 1px solid #2a2a2a;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.topbar__logo img { display: block; height: 28px; width: auto; filter: invert(1); }
.topbar__tag {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  background: var(--texto);
  color: var(--pretinho);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, opacity .15s ease, box-shadow .15s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--amarelinho); outline-offset: 3px; }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn--lg { min-height: 58px; padding: 16px 32px; font-size: 18px; }
.btn--green { background: var(--verdinho); color: var(--pretinho); border-color: var(--pretinho); }
.btn--orange { background: var(--vermelhinho); color: var(--pretinho); border-color: var(--pretinho); }
.btn--orange:hover { box-shadow: 4px 4px 0 var(--texto); }
.btn--green:hover { box-shadow: 4px 4px 0 var(--texto); }
.btn--dark { background: var(--texto); color: var(--pretinho); }
.btn--ghost { background: transparent; color: var(--texto); border-color: var(--cinza-borda); }
.btn--ghost:hover:not(:disabled) { border-color: var(--texto); }
.btn--outline-light { background: transparent; color: var(--branco); border-color: rgba(255,255,255,.4); }
.btn--outline-light:hover { border-color: var(--branco); }
.btn__arrow { font-size: 1.15em; line-height: 1; }

/* ---------- Intro / Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  color: var(--vermelhinho);
  border-bottom: 1px solid #2a2a2a;
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 64px;
  padding-bottom: 72px;
}
.hero__title {
  font-size: clamp(1.9rem, 7vw, 4rem);
  max-width: 15ch;
  overflow-wrap: break-word;
  margin-bottom: 20px;
}
.hero__lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 54ch;
  color: var(--vermelhinho);
  margin-bottom: 28px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
}
.chips li {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(241, 101, 34, .12);
  color: var(--vermelhinho);
}

@media (max-width: 599px) { .hero .btn--lg { width: 100%; } }

.how {
  display: grid;
  gap: 16px;
  padding-top: 48px;
  padding-bottom: 72px;
}
@media (min-width: 640px) { .how { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .how { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.how__item {
  background: var(--cinza-bg);
  border-radius: var(--radius);
  padding: 28px;
}
.how__num {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  color: var(--vermelhinho);
  margin-bottom: 14px;
}
.how__item h3 { font-size: 22px; margin-bottom: 8px; }
.how__item p { color: var(--texto-2); font-size: 16px; }

/* ---------- Quiz ---------- */
.screen--quiz { padding: 32px 0 72px; }

.progress {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 6px;
  margin-bottom: 28px;
}
.progress span {
  height: 8px;
  border-radius: 2px;
  background: #333;
  transition: background-color .2s ease;
}
.progress span.is-done { background: var(--texto); }
.progress span.is-current { background: var(--vermelhinho); }

.quiz__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin-bottom: 18px;
}
.quiz__count {
  flex: 0 0 auto;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  color: var(--texto-2);
}
.quiz__comp {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.3;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--verdinho);
  color: var(--pretinho);
}
.quiz__question {
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 28px;
  outline: none;
}

.options {
  border: 0;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 12px;
}
.option {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1.5px solid var(--cinza-borda);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.option:hover { border-color: var(--verdinho); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option__letter {
  flex: 0 0 auto;
  color: var(--texto);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-2);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  transition: background-color .15s ease, color .15s ease;
}
.option__text { padding-top: 5px; font-size: 16.5px; }
.option:has(input:checked) {
  border-color: var(--verdinho);
  background: var(--surface-2);
  box-shadow: 4px 4px 0 var(--verdinho);
}
.option:has(input:checked) .option__letter { background: var(--verdinho); color: var(--pretinho); }
.option:has(input:focus-visible) { outline: 3px solid var(--verdinho); outline-offset: 2px; }

.quiz__nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.quiz__nav .btn { white-space: nowrap; }
.quiz__nav .btn--dark { min-width: 160px; }
@media (max-width: 420px) { .quiz__nav .btn--ghost { padding: 12px 18px; } .quiz__nav .btn--dark { min-width: 0; flex: 1; } }
.quiz__hint {
  margin-top: 20px;
  font-size: 13px;
  color: var(--cinza-texto);
  text-align: center;
}
@media (hover: none) { .quiz__hint { display: none; } }

/* ---------- Result ---------- */
.result-hero {
  background: var(--surface);
  color: var(--texto);
  border-bottom: 1px solid #2a2a2a;
}
.result-hero__inner {
  display: grid;
  gap: 24px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 36px;
}
@media (min-width: 760px) { .result-hero__inner { grid-template-columns: auto 1fr; gap: 48px; } }
.score {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 800;
}
.score__num {
  font-size: clamp(5rem, 14vw, 8rem);
  line-height: .9;
  color: var(--verdinho);
}
.score__total { font-size: 2rem; color: rgba(255,255,255,.6); }
.result-hero__title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px; }
.result-hero__lead { color: rgba(255,255,255,.82); max-width: 60ch; }

.section-head { padding-top: 64px; margin-bottom: 28px; max-width: 70ch; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 10px; }

.map {
  list-style: none;
  padding: 0;
  margin: 0 0 72px;
  display: grid;
  gap: 12px;
}
@media (min-width: 640px) { .map { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .map { grid-template-columns: repeat(3, 1fr); } }
.map__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1.5px solid var(--cinza-borda);
}
.map__item.is-ok { border-color: var(--verdinho); background: rgba(98, 211, 119, .08); }
.map__item.is-miss { border-color: var(--vermelhinho); background: rgba(241, 101, 34, .08); }
.map__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.map__mod {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  color: var(--cinza-texto);
}
.map__name { font-family: var(--font-head); font-size: 18px; font-weight: 700; line-height: 1.25; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.badge--ok { background: var(--verdinho); color: var(--pretinho); }
.badge--miss { background: var(--vermelhinho); color: var(--branco); }
.map__note { font-size: 14px; color: var(--texto-2); }

.cta { background: var(--surface); color: var(--texto); border-top: 1px solid #2a2a2a; border-bottom: 1px solid #2a2a2a; }
.cta__inner {
  display: grid;
  gap: 32px;
  padding-top: 56px;
  padding-bottom: 56px;
}
@media (min-width: 900px) { .cta__inner { grid-template-columns: 1.4fr 1fr; align-items: center; gap: 56px; } }
.cta h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin-bottom: 20px; }
.compare { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.compare li {
  position: relative;
  padding-left: 26px;
  color: rgba(255,255,255,.85);
}
.compare li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 12px;
  height: 12px;
  background: var(--verdinho);
}
.compare strong { color: var(--branco); }
.cta__actions { display: grid; gap: 12px; }
@media (max-width: 899px) { .cta__actions .btn { width: 100%; } }

.review { display: grid; gap: 12px; }
.rv {
  border: 1.5px solid var(--cinza-borda);
  border-radius: var(--radius);
  overflow: hidden;
}
.rv[open] { border-color: var(--texto); }
.rv summary {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
}
.rv summary::-webkit-details-marker { display: none; }
.rv summary:focus-visible { outline: 3px solid var(--amarelinho); outline-offset: -3px; }
.rv__icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-weight: 800;
  font-size: 15px;
}
.rv.is-ok .rv__icon { background: var(--verdinho); color: var(--pretinho); }
.rv.is-miss .rv__icon { background: var(--vermelhinho); color: var(--branco); }
.rv__head { flex: 1; min-width: 0; }
.rv__comp { font-family: var(--font-head); font-size: 13px; font-weight: 700; color: var(--cinza-texto); margin-bottom: 2px; }
.rv__q { font-family: var(--font-head); font-weight: 700; font-size: 16.5px; line-height: 1.35; }
.rv__chev { flex: 0 0 auto; transition: transform .2s ease; margin-top: 4px; }
.rv[open] .rv__chev { transform: rotate(180deg); }
.rv__body { padding: 0 20px 20px; display: grid; gap: 10px; }
.rv__alt {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 4px 12px;
  padding: 14px;
  border-radius: 8px;
  background: var(--cinza-bg);
}
.rv__alt.is-correct { background: rgba(98, 211, 119, .08); box-shadow: inset 3px 0 0 var(--verdinho); }
.rv__alt.is-chosen-wrong { background: rgba(241, 101, 34, .08); box-shadow: inset 3px 0 0 var(--vermelhinho); }
.rv__alt-letter { font-family: var(--font-head); font-weight: 800; }
.rv__alt-text { font-weight: 600; }
.rv__alt-tags { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.rv__alt-fb { grid-column: 2; font-size: 15px; color: var(--texto-2); }
.rv__alt-aula { grid-column: 2; font-size: 14px; }
.rv__alt-aula a { font-weight: 700; color: var(--texto); text-decoration-color: var(--vermelhinho); text-underline-offset: 3px; }
.tag {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 2px 8px;
  border-radius: 4px;
}
.tag--correct { background: var(--verdinho); color: var(--pretinho); }
.tag--chosen { background: var(--texto); color: var(--pretinho); }

.restart { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 40px 0 12px; }
.share__status { min-height: 1.5em; text-align: center; font-size: 14px; font-weight: 600; color: var(--texto-2); padding-bottom: 64px; }
[data-action="share"].is-done { background: var(--verdinho); color: var(--pretinho); }
@media (max-width: 480px) { .restart .btn { width: 100%; } }

/* ---------- Footer ---------- */
.footer { background: #0b0b0b; color: rgba(255,255,255,.7); font-size: 15px; }
/* Faixa de cubinhos amarelos, como no rodapé do site */
.footer__cubes {
  height: 16px;
  background:
    linear-gradient(90deg, var(--amarelinho) 50%, transparent 50%) 0 0 / 32px 8px repeat-x,
    linear-gradient(90deg, transparent 50%, var(--amarelinho) 50%) 0 8px / 32px 8px repeat-x;
}
.footer__grid {
  display: grid;
  gap: 36px 24px;
  grid-template-columns: repeat(2, 1fr);
  padding-top: 56px;
  padding-bottom: 40px;
}
.footer__brand { grid-column: 1 / -1; }
@media (min-width: 600px) { .footer__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 860px) {
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer__brand { grid-column: auto; }
}
.footer__brand img { filter: invert(1); height: 32px; width: auto; display: block; margin-bottom: 14px; }
.footer__brand p { margin-bottom: 20px; }
.social { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; }
.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.25);
  color: var(--branco);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.social a:hover { background: var(--vermelhinho); border-color: var(--vermelhinho); color: var(--pretinho); }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h4 {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  color: var(--branco);
  margin: 0 0 6px;
}
.footer__col a, .footer__bottom a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer__col a:hover, .footer__bottom a:hover { color: var(--vermelhinho); }
.footer a:focus-visible { outline: 2px solid var(--vermelhinho); outline-offset: 3px; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 13px;
  color: rgba(255,255,255,.5);
}
.footer__bottom a { color: var(--branco); font-weight: 600; }

/* Entrada suave das telas */
.screen:not([hidden]) { animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .screen:not([hidden]) { animation: none; }
  .btn, .option, .option__letter, .progress span, .rv__chev, .social a { transition: none; }
}

/* Telas estreitas: menos padding aninhado na revisão e nos botões grandes */
@media (max-width: 480px) {
  .rv summary { padding: 14px; gap: 10px; }
  .rv__body { padding: 0 10px 12px; }
  .rv__alt { grid-template-columns: 18px 1fr; gap: 4px 8px; padding: 12px; }
  .rv__q { font-size: 15.5px; }
  .btn--lg { padding: 14px 22px; font-size: 17px; }
  .option { padding: 14px; gap: 12px; }
  .map__item, .how__item { padding: 18px; }
}

/* ---------- Radar ---------- */
.quiz-layout { display: grid; gap: 32px; max-width: 760px; }
@media (min-width: 1080px) {
  .quiz-layout { max-width: var(--wrap); grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
  .quiz-layout .radar-card { position: sticky; top: 96px; }
}

.radar-card {
  background: var(--surface);
  border: 1px solid #2a2a2a;
  border-radius: var(--radius);
  padding: 20px;
}
.radar-card__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  color: var(--pretinho);
  background: var(--amarelinho);
  margin: -20px -20px 16px;
  padding: 12px 20px;
  border-radius: var(--radius) var(--radius) 0 0;
  text-align: center;
}
/* Cabeçalho do radar no quiz: laranja, com indicador "ao vivo" */
.radar-card__title--live {
  background: var(--vermelhinho);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.radar-card__live { display: inline-block; min-width: 0; font-size: 15px; line-height: 1.3; text-align: left; }
/* "Computing": três cubinhos girando num quadrado 2x2, com um espaço vazio que circula.
   O de cima vai para a direita, o de baixo à esquerda sobe, o de baixo à direita
   vai para a esquerda e o da direita desce. Repete (12 passos até as cores voltarem). */
.cubes-loader {
  position: relative;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
}
.cubes-loader i {
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 1.5px;
  animation: 4.8s cubic-bezier(.55,0,.25,1) infinite both;
}
.cubes-loader i:nth-child(1) { background: var(--pretinho); animation-name: cube-a; }
.cubes-loader i:nth-child(2) { background: var(--pretinho); animation-name: cube-b; }
.cubes-loader i:nth-child(3) { background: var(--pretinho); animation-name: cube-c; }
@keyframes cube-a {
  0% { transform: translate(0px, 0px); }
  0.000% { transform: translate(0px, 0px); }
  4.583% { transform: translate(9px, 0px); }
  25.000% { transform: translate(9px, 0px); }
  29.583% { transform: translate(9px, 9px); }
  50.000% { transform: translate(9px, 9px); }
  54.583% { transform: translate(0px, 9px); }
  75.000% { transform: translate(0px, 9px); }
  79.583% { transform: translate(0px, 0px); }
  100% { transform: translate(0px, 0px); }
}
@keyframes cube-b {
  0% { transform: translate(0px, 9px); }
  8.333% { transform: translate(0px, 9px); }
  12.917% { transform: translate(0px, 0px); }
  33.333% { transform: translate(0px, 0px); }
  37.917% { transform: translate(9px, 0px); }
  58.333% { transform: translate(9px, 0px); }
  62.917% { transform: translate(9px, 9px); }
  83.333% { transform: translate(9px, 9px); }
  87.917% { transform: translate(0px, 9px); }
  100% { transform: translate(0px, 9px); }
}
@keyframes cube-c {
  0% { transform: translate(9px, 9px); }
  16.667% { transform: translate(9px, 9px); }
  21.250% { transform: translate(0px, 9px); }
  41.667% { transform: translate(0px, 9px); }
  46.250% { transform: translate(0px, 0px); }
  66.667% { transform: translate(0px, 0px); }
  71.250% { transform: translate(9px, 0px); }
  91.667% { transform: translate(9px, 0px); }
  96.250% { transform: translate(9px, 9px); }
  100% { transform: translate(9px, 9px); }
}
@media (prefers-reduced-motion: reduce) {
  .cubes-loader i { animation: none; }
  .cubes-loader i:nth-child(2) { transform: translate(0, 9px); }
  .cubes-loader i:nth-child(3) { transform: translate(9px, 9px); }
}
.radar-card__note { font-size: 13px; color: var(--texto-2); text-align: center; margin-top: 8px; }
.radar-card__note strong { color: var(--texto); }
.radar { max-width: 320px; margin: 0 auto; }
.radar svg { display: block; width: 100%; height: auto; overflow: visible; }
.radar .r-grid { fill: none; stroke: #3a3a3a; stroke-width: 1; }
.radar .r-axis { stroke: #333; stroke-width: 1; }
.radar .r-axis.is-current { stroke: var(--vermelhinho); stroke-width: 1.5; stroke-dasharray: 3 3; }
.radar .r-shape { fill: rgba(255, 138, 0, .3); stroke: var(--laranja-vivo); stroke-width: 2; stroke-linejoin: round; }
.radar .r-pt { fill: var(--laranja-vivo); stroke: var(--surface); stroke-width: 1; }
/* Ponto de atenção: vazado (forma, não só cor) */
.radar .r-pt.is-miss { fill: var(--surface); stroke: var(--laranja-vivo); stroke-width: 1.5; }
.radar .r-hit { fill: transparent; cursor: default; }
.radar .r-label { font-family: var(--font-head); font-size: 11px; font-weight: 600; fill: var(--texto-2); }
.radar .r-label.is-current { fill: var(--vermelhinho); font-weight: 800; }

.map-layout { display: grid; gap: 16px; margin-bottom: 72px; }
.map-layout .map { margin-bottom: 0; }
@media (min-width: 980px) {
  .map-layout { grid-template-columns: 360px minmax(0, 1fr); align-items: start; }
  .map-layout .map { grid-template-columns: repeat(2, 1fr); }
}

/* Telas menores: radar compacto acima da questão, para a mudança ficar visível */
@media (max-width: 1079px) {
  .quiz-layout { gap: 20px; }
  .quiz-layout .radar-card {
    order: -1;
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 6px 14px;
    align-items: center;
    padding: 12px 14px;
  }
  .quiz-layout .radar-card__title {
    grid-column: 1 / -1;
    margin: -12px -14px 4px;
    padding: 7px 14px;
    font-size: 14px;
    text-align: left;
  }
  .quiz-layout .radar { max-width: 104px; margin: 0; }
  .quiz-layout .radar .r-label { display: none; }
  .quiz-layout .radar svg { overflow: hidden; }
  .quiz-layout .radar-card__note { text-align: left; margin: 0; }
}

/* Radar vivo: respiração contínua (CSS) + "pump" a cada clique (Web Animations no grupo interno) */
.radar .r-breath {
  transform-box: view-box;
  transform-origin: var(--cx) var(--cy);
  animation: radar-breath 3.4s ease-in-out infinite;
}
/* Balão em repouso: enche, esvazia e dá uma pulsadinha no fim de cada ciclo */
@keyframes radar-breath {
  0%, 100% { transform: scale(1); }
  38% { transform: scale(1.04); }
  70% { transform: scale(0.993); }
  81% { transform: scale(1.013); }
  91% { transform: scale(0.998); }
}
.radar .r-pump { transform-box: view-box; transform-origin: var(--cx) var(--cy); }
.radar .r-shape { transition: fill .4s ease; }
.radar.is-pumping .r-shape { fill: rgba(255, 138, 0, .48); }
@media (prefers-reduced-motion: reduce) {
  .radar .r-breath { animation: none; }
}

@media (max-width: 480px) {
  .quiz__comp { font-size: 14px; padding: 6px 12px; border-radius: 16px; }
}
@media (max-width: 1079px) { .quiz-layout .radar-card__title--live { justify-content: flex-start; } }

/* Texto personalizado do mapa */
.map-summary { display: grid; gap: 12px; margin-top: 14px; color: var(--texto-2); font-size: 17px; line-height: 1.6; }
.map-summary strong { color: var(--texto); font-weight: 700; }
.map-summary em { color: var(--texto); font-style: normal; text-decoration: underline; text-decoration-color: var(--vermelhinho); text-underline-offset: 3px; }
.map-summary p:last-child { padding: 14px 16px; border-left: 3px solid var(--vermelhinho); background: var(--surface); border-radius: 0 8px 8px 0; }
.map-footnote { margin-top: 16px; font-size: 13px; color: var(--cinza-texto); }
.section-head:has(.map-summary) { max-width: 78ch; }

/* Radar do resultado: já computado, fica parado */
[data-radar="result"] .r-breath { animation: none; }

/* Formulário de e-mail da home */
.start-form { max-width: 640px; }
.start-form__row { display: flex; gap: 10px; align-items: stretch; }
.start-form__input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 58px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--cinza-borda);
  background: var(--bg);
  color: var(--texto);
  font-family: var(--font-body);
  font-size: 17px;
}
.start-form__input::placeholder { color: var(--cinza-texto); }
.start-form__input:focus { outline: none; border-color: var(--vermelhinho); box-shadow: 0 0 0 3px rgba(241, 101, 34, .25); }
.start-form__input[aria-invalid="true"] { border-color: var(--vermelhinho); }
.start-form__row .btn { flex: 0 0 auto; white-space: nowrap; }
.start-form__error { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--vermelhinho); }
.start-form__legal { margin-top: 12px; font-size: 13px; color: var(--cinza-texto); }
.start-form__legal a { color: var(--texto-2); }
@media (max-width: 640px) {
  .start-form__row { flex-direction: column; }
  .start-form__row .btn { width: 100%; }
}

/* CTA logo abaixo do resultado, separado por um divisor */
.result-cta {
  display: grid;
  gap: 20px;
  align-items: center;
  padding: 28px 0 40px;
  border-top: 1px solid #333;
}
@media (min-width: 860px) { .result-cta { grid-template-columns: 1fr auto; gap: 40px; } }
.result-cta__title { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.25rem, 2.6vw, 1.55rem); letter-spacing: -0.02em; margin-bottom: 6px; }
.result-cta__lead { color: var(--texto-2); max-width: 60ch; }
@media (max-width: 859px) { .result-cta .btn { width: 100%; } }

/* Gabarito dentro de cada card do mapa */
.map { align-items: start; }
.map__item:has(.gab[open]) { grid-column: 1 / -1; }
.gab { margin-top: 4px; }
.gab__toggle {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--cinza-texto);
  cursor: pointer;
  padding: 4px 0;
  transition: color .15s ease;
}
.gab__toggle::-webkit-details-marker { display: none; }
.gab__toggle:hover { color: var(--texto); }
.gab__toggle:focus-visible { outline: 2px solid var(--verdinho); outline-offset: 3px; border-radius: 4px; }
.gab__toggle svg { transition: transform .2s ease; }
.gab[open] .gab__toggle svg { transform: rotate(180deg); }
.gab__close { display: none; }
.gab[open] .gab__open { display: none; }
.gab[open] .gab__close { display: inline; }
.gab__body { display: grid; gap: 10px; margin-top: 12px; }
.gab__q { font-family: var(--font-head); font-weight: 700; font-size: 16px; line-height: 1.4; color: var(--texto); margin-bottom: 4px; }
@media (max-width: 480px) { .gab .rv__alt { grid-template-columns: 18px 1fr; gap: 4px 8px; padding: 12px; } }
@media (prefers-reduced-motion: reduce) { .gab__toggle svg { transition: none; } }

/* ---------- Banner de compra (como o topo da página oficial da trilha) ---------- */
.buy {
  /* Sempre escuro (vídeo + véu), em qualquer tema */
  --texto: #f2f2f2;
  --texto-2: rgba(255, 255, 255, .85);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--pretinho);
  color: var(--texto);
}
.buy__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.buy__overlay { position: absolute; inset: 0; background: rgba(18, 18, 18, .55); z-index: -1; }
.buy__inner {
  display: grid;
  gap: 40px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}
@media (min-width: 900px) { .buy__inner { grid-template-columns: 1fr 430px; gap: 64px; } }
.buy__title { font-size: clamp(2rem, 4.6vw, 3rem); letter-spacing: -0.03em; margin-bottom: 14px; }
.buy__lead { color: var(--texto-2); font-size: clamp(1.05rem, 1.8vw, 1.2rem); max-width: 46ch; margin-bottom: 28px; }
.btn--buy {
  background: var(--vermelhinho);
  color: var(--branco);
  border-radius: 6px;
  min-height: 52px;
  padding: 12px 48px;
  font-size: 18px;
  font-weight: 600;
}
.btn--buy:hover { background: #ff7433; box-shadow: 0 8px 24px rgba(241, 101, 34, .3); }

/* Cartão de preço com cantos recortados (formato de "+") */
.price-card {
  --nx: 38px; --ny: 36px;
  background: var(--vermelhinho);
  color: var(--branco);
  padding: calc(var(--ny) + 4px) calc(var(--nx) + 30px);
  clip-path: polygon(
    var(--nx) 0, calc(100% - var(--nx)) 0, calc(100% - var(--nx)) var(--ny), 100% var(--ny),
    100% calc(100% - var(--ny)), calc(100% - var(--nx)) calc(100% - var(--ny)), calc(100% - var(--nx)) 100%,
    var(--nx) 100%, var(--nx) calc(100% - var(--ny)), 0 calc(100% - var(--ny)), 0 var(--ny), var(--nx) var(--ny)
  );
}
.price-card__name { font-family: var(--font-head); font-weight: 700; font-size: 20px; line-height: 1.25; margin-bottom: 26px; }
.price-card__from { font-size: 16px; opacity: .9; }
.price-card__value {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 25px;
  letter-spacing: -0.01em;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .7);
  margin-bottom: 22px;
}
.price-card__inc { font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.price-card__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 15px; line-height: 1.4; }
.price-card__list li { position: relative; padding-left: 28px; }
.price-card__list li::before { content: "✓"; position: absolute; left: 6px; top: 0; }
.price-card__list strong { font-weight: 700; }
@media (max-width: 899px) {
  .buy__text { text-align: center; }
  .buy__lead { margin-left: auto; margin-right: auto; }
  .btn--buy { width: 100%; max-width: 360px; }
}
@media (max-width: 480px) {
  .price-card { --nx: 20px; --ny: 30px; padding: 42px 44px; }
  .price-card__value { font-size: 22px; }
}

/* ---------- Teste: tela de resultado em tema claro ---------- */
body.theme-light {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f2f2f2;
  --surface-2: #e9e9e9;
  --texto: #121212;
  --texto-2: #4a4a4a;
  --cinza-bg: #f2f2f2;
  --cinza-borda: #cfcfcf;
  --cinza-texto: #686868;
}
.theme-light .topbar { border-bottom-color: #e8e8e8; }
.theme-light .topbar__logo img { filter: none; }
.theme-light .topbar__tag { color: var(--branco); }
/* Bloco do resultado continua escuro, como na versão original */
.theme-light .result-hero {
  --surface: #121212;
  --texto: #f2f2f2;
  --texto-2: #b5b5b5;
  color: var(--texto);
  border-bottom: none;
}
.theme-light .radar-card { border-color: #e2e2e2; }
.theme-light .radar .r-grid { stroke: #d6d6d6; }
.theme-light .radar .r-axis { stroke: #e0e0e0; }
.theme-light .radar .r-shape { fill: rgba(255, 138, 0, .22); }
.theme-light .map__item.is-ok { background: #effbf1; }
.theme-light .map__item.is-miss { background: #fff4ee; }
.theme-light .rv__alt.is-correct { background: #effbf1; }
.theme-light .rv__alt.is-chosen-wrong { background: #fff4ee; }
.theme-light .tag--chosen { color: var(--branco); }
.theme-light .btn--dark { color: var(--branco); }
.theme-light [data-action="share"].is-done { color: var(--pretinho); }
.theme-light .map-summary p:last-child { background: #f6f6f6; }

.result-cta__lead a { color: var(--texto); font-weight: 600; text-decoration: underline; text-decoration-color: var(--vermelhinho); text-underline-offset: 3px; }
.result-cta__lead a:hover { color: var(--vermelhinho); }
.result-cta__lead a:focus-visible { outline: 2px solid var(--vermelhinho); outline-offset: 2px; border-radius: 2px; }

/* 4º passo: o maior destaque, leva para a trilha */
.how__item--play {
  display: flex;
  flex-direction: column;
  background: var(--vermelhinho);
  color: var(--pretinho);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.how__item--play:hover { transform: translateY(-2px); box-shadow: 4px 4px 0 var(--texto); }
.how__item--play:focus-visible { outline: 3px solid var(--texto); outline-offset: 3px; }
.how__item--play .how__num { color: var(--pretinho); }
.how__item--play p { color: rgba(18, 18, 18, .85); }
.how__link { margin-top: auto; padding-top: 16px; font-family: var(--font-head); font-weight: 700; font-size: 14px; color: rgba(18, 18, 18, .75); text-decoration: underline; text-underline-offset: 3px; }
.how__item--play:hover .how__link { color: var(--pretinho); }
@media (prefers-reduced-motion: reduce) { .how__item--play { transition: none; } }
