:root{
  --navy: #0B69C1;
  --navy-light: #2E86D8;
  --navy-dark: #083F73;
  --navy-darker: #062C50;
  --ink: #10233A;
  --ink-soft: #43607C;
  --ink-mute: #8CA1B8;
  --hairline: #E4EBF3;
  --paper: #FDFEFF;
  --success: #1FA97A;
  --amber: #B9821F;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{ background:#04070F; }
body{
  font-family:'Inter', -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: var(--ink);
  min-height: 100vh;
  display:flex; align-items:flex-start; justify-content:center;
  padding: 48px 20px;
}
/* Fundo fixo: cobre a tela inteira e não se repete quando a página fica mais alta */
body::before{
  content:""; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:
    radial-gradient(1100px 600px at 15% -10%, rgba(46,134,216,0.35), transparent 60%),
    radial-gradient(900px 700px at 100% 10%, rgba(11,105,193,0.25), transparent 55%),
    linear-gradient(180deg, #071427 0%, #050D1A 55%, #04070F 100%);
}
.wrap{ width: 100%; max-width: 540px; }

.logo-row{ display:flex; align-items:center; justify-content:center; gap:16px; margin-bottom: 32px; }
.logo-badge{ width: 64px; height:64px; border-radius: 16px; overflow:hidden; display:flex; align-items:center; justify-content:center; flex-shrink:0; box-shadow: 0 8px 22px rgba(11,105,193,0.5); }
.logo-badge img{ width: 100%; height:100%; object-fit: cover; display:block; }
.brand-name{ font-weight:700; letter-spacing:1.2px; font-size:16px; color:#F3F8FF; }
.brand-sub{ font-size:12px; color:#93AECB; letter-spacing:1.6px; text-transform:uppercase; margin-top:2px; }

.card{
  background: var(--paper);
  border-radius: 26px;
  padding: 42px 36px;
  box-shadow: 0 30px 80px rgba(2,10,25,0.55), 0 2px 0 rgba(255,255,255,0.6) inset;
  position: relative;
  border: 1px solid rgba(255,255,255,0.5);
}

.screen{ display:none; }
.screen.active{ display:block; animation: fadeIn .45s cubic-bezier(.22,.61,.36,1); }
@keyframes fadeIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }

.eyebrow{ font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:1.6px; color: var(--navy); margin-bottom:14px; }

h1{ font-family:'Fraunces', serif; font-weight:600; font-size: 29px; color: var(--ink); margin-bottom: 14px; line-height:1.3; letter-spacing:-0.3px; }
p.lede{ color: var(--ink-soft); font-size:16.5px; margin-bottom: 28px; line-height:1.7; }

/* Cabeçalho do quiz + barra de progresso */
.quiz-head{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:12px; }
.quiz-head .eyebrow{ margin-bottom:0; }
.step-count{ font-size:12.5px; font-weight:700; color: var(--ink-mute); white-space:nowrap; font-variant-numeric: tabular-nums; }
.step-count strong{ color: var(--ink); }
.progress{ height:6px; border-radius:6px; background: var(--hairline); overflow:hidden; margin-bottom:30px; }
.progress-fill{ height:100%; width:0%; border-radius:6px; background: linear-gradient(90deg, var(--navy), var(--navy-light)); transition: width .45s cubic-bezier(.22,.61,.36,1); }

.step-anim{ animation: stepIn .38s cubic-bezier(.22,.61,.36,1); }
.step-anim.voltar{ animation-name: stepInBack; }
@keyframes stepIn{ from{opacity:0; transform:translateX(18px);} to{opacity:1; transform:translateX(0);} }
@keyframes stepInBack{ from{opacity:0; transform:translateX(-18px);} to{opacity:1; transform:translateX(0);} }

.q-title{ font-family:'Fraunces', serif; font-weight:500; font-size: 22px; margin-bottom:8px; color: var(--ink); line-height:1.42; letter-spacing:-0.2px; }
.q-hint{ font-size:13px; color: var(--ink-mute); margin-bottom:20px; }

.options{ display:flex; flex-direction:column; gap:10px; margin-bottom: 26px;}
.opt{
  width:100%; border: 1.5px solid var(--hairline); background: #FBFCFE; border-radius:14px; padding: 14px 16px;
  font-size:16px; line-height:1.5; cursor:pointer; text-align:left; display:flex; align-items:center; gap:14px;
  transition: border-color .18s ease, background .18s ease, transform .12s ease, box-shadow .18s ease;
  color: var(--ink); font-family:inherit;
}
.opt:hover{ border-color: var(--navy-light); background:#F3F8FE; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(11,105,193,0.10); }
.opt:focus-visible{ outline:none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(11,105,193,0.18); }
.opt.selected{ border-color: var(--navy); background: #EBF3FC; box-shadow: 0 6px 18px rgba(11,105,193,0.16); }
.opt .key{
  width:30px; height:30px; border-radius:9px; flex-shrink:0; display:flex; align-items:center; justify-content:center;
  font-size:13px; font-weight:700; color: var(--ink-soft); background:white; border:1.5px solid var(--hairline);
  transition: all .18s ease;
}
.opt:hover .key{ border-color: var(--navy-light); color: var(--navy); }
.opt.selected .key{ background: var(--navy); border-color: var(--navy); color:white; }
.opt .opt-text{ flex:1; }
.opt .check{ width:20px; height:20px; flex-shrink:0; opacity:0; transform: scale(.6); transition: all .2s ease; color: var(--navy); }
.opt.selected .check{ opacity:1; transform: scale(1); }

.char-count{ text-align:right; font-size:12px; color: var(--ink-mute); margin:-8px 0 18px; }

textarea, input[type=text], input[type=tel], input[type=email]{
  width:100%; border:1.5px solid var(--hairline); border-radius:12px; padding:15px 16px;
  font-size:16px; font-family:inherit; color: var(--ink); margin-bottom:14px; outline:none;
  transition: border-color .15s ease, box-shadow .15s ease; background:#FBFCFE;
}
textarea{ min-height:100px; resize:vertical; line-height:1.55; }
textarea:focus, input:focus{ border-color: var(--navy); box-shadow: 0 0 0 4px rgba(11,105,193,0.10); background:white; }
label.field-label{ font-size:13.5px; font-weight:700; color: var(--ink-soft); margin-bottom:8px; display:block; letter-spacing:0.2px; }
.field{ margin-bottom:14px; }
.field input{ margin-bottom:0; }
.field.invalido input{ border-color:#D9534F; background:#FFF8F7; }
.field .erro{ display:none; font-size:12.5px; color:#C7443A; margin-top:6px; }
.field.invalido .erro{ display:block; }

.consent{ display:flex; align-items:flex-start; gap:10px; font-size:13.5px; line-height:1.55; color: var(--ink-soft); margin: 4px 0 18px; cursor:pointer; }
.consent input{ width:18px; height:18px; margin-top:2px; flex-shrink:0; accent-color: var(--navy); cursor:pointer; }
.consent a{ color: var(--navy); font-weight:600; }

.btn{
  width:100%; padding: 16px; border:none; border-radius: 13px;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color:white; font-size:16.5px; font-weight:700; cursor:pointer;
  transition: transform .12s ease, box-shadow .18s ease; font-family:inherit;
  box-shadow: 0 10px 24px rgba(11,105,193,0.32);
}
.btn:hover{ transform: translateY(-1px); box-shadow: 0 14px 30px rgba(11,105,193,0.4); }
.btn:active{ transform: translateY(0); }
.btn:disabled{ background:#D5DEE8; cursor:not-allowed; box-shadow:none; transform:none; }
.btn:focus-visible, .back:focus-visible, .btn-skip:focus-visible{ outline:3px solid rgba(46,134,216,0.45); outline-offset:2px; }
.btn-skip{
  display:block; width:100%; border:none; background:transparent; color: var(--ink-mute); font-weight:600;
  margin-top:12px; padding:8px; text-align:center; cursor:pointer; font-size:13px; font-family:inherit;
}
.btn-skip:hover{ color: var(--ink-soft); }

.nav-row{ display:flex; gap:10px; }
.nav-row .back{
  flex:0 0 auto; width:54px; display:flex; align-items:center; justify-content:center; border-radius:13px;
  border:1.5px solid var(--hairline); background:white; color: var(--ink-soft); cursor:pointer; font-size:18px;
  transition: border-color .15s ease, color .15s ease; font-family:inherit;
}
.nav-row .back:hover{ border-color: var(--navy-light); color: var(--navy); }
.nav-row .btn{ flex:1; }
.kbd-hint{ text-align:center; font-size:12px; color: var(--ink-mute); margin-top:14px; }
.kbd-hint kbd{ font-family:inherit; font-size:11px; font-weight:700; padding:2px 6px; border-radius:5px; border:1px solid var(--hairline); background:#F6F9FC; color: var(--ink-soft); }
@media (hover:none){ .kbd-hint{ display:none; } }

.loading-wrap{ text-align:center; padding: 38px 0 18px; }
.spinner-ring{ width:60px; height:60px; margin:0 auto 26px; position:relative; }
.spinner-ring svg{ width:100%; height:100%; animation: rotate 1.4s linear infinite; }
.spinner-ring circle{ fill:none; stroke-width:5; stroke-linecap:round; stroke-dasharray: 90 150; stroke: var(--navy); }
@keyframes rotate{ to{ transform: rotate(360deg); } }
.loading-text{ font-size:14.5px; color: var(--ink-soft); min-height:20px; font-family:'Fraunces', serif; font-size:16px; }

.greeting{ font-size:13px; color: var(--navy); font-weight:700; letter-spacing:0.3px; margin-bottom:10px; text-transform:uppercase; }

.score-hero{ text-align:center; margin-bottom: 22px; }
.score-ring{ width:164px; height:164px; margin:0 auto 16px; position:relative; }
.score-ring svg{ width:100%; height:100%; transform: rotate(-90deg); }
.score-ring .bg{ fill:none; stroke: var(--hairline); stroke-width:10; }
.score-ring .fg{ fill:none; stroke: url(#scoreGradient); stroke-width:10; stroke-linecap:round; transition: stroke-dashoffset 1.1s cubic-bezier(.22,.61,.36,1); }
.score-num{ position:absolute; top:0; left:0; width:100%; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.score-num .val{ font-family:'Fraunces', serif; font-size:42px; font-weight:600; color: var(--ink); line-height:1; }
.score-num .of{ font-size:10.5px; color: var(--ink-mute); margin-top:4px; text-transform:uppercase; letter-spacing:1px; }

.badge{ display:inline-block; padding:8px 19px; border-radius:20px; font-size:13.5px; font-weight:700; margin-bottom: 12px; letter-spacing:0.3px; }
.badge.executor, .badge.especialista{ background:#FCF3E3; color: var(--amber); }
.badge.estrategista{ background:#E7F1FC; color: var(--navy); }
.badge.comunicador{ background:#E7F7F0; color: var(--success); }

h1.result-title{ font-size:23px; }

.feedback-text{ font-size:16.5px; color: var(--ink-soft); line-height:1.8; margin: 18px 0 26px; }
.feedback-text strong{ color: var(--ink); }

.dual-score{ display:flex; gap:10px; margin-bottom:24px; }
.dual-score .box{ flex:1; background:#FBFCFE; border:1.5px solid var(--hairline); border-radius:14px; padding:17px; text-align:center; }
.dual-score .box .num{ font-family:'Fraunces', serif; font-size:29px; font-weight:600; color: var(--ink); }
.dual-score .box .lbl{ font-size:11.5px; color: var(--ink-mute); text-transform:uppercase; letter-spacing:0.6px; margin-top:4px; }

.quadrant-title{ font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:1px; color: var(--ink-mute); margin-bottom:12px; }
.quadrant-box{
  position:relative; width:100%; aspect-ratio: 1.7/1; background:#FBFCFE; border:1.5px solid var(--hairline);
  border-radius:14px; margin-bottom:9px; overflow:hidden;
}
.quadrant-box::before, .quadrant-box::after{ content:""; position:absolute; background: var(--hairline); }
.quadrant-box::before{ left:50%; top:0; bottom:0; width:1px; }
.quadrant-box::after{ top:50%; left:0; right:0; height:1px; }
.q-label{ position:absolute; font-size:10.5px; color: var(--ink-mute); font-weight:700; text-transform:uppercase; letter-spacing:0.3px; line-height:1.4; }
.q-label.tl{ top:8px; left:10px; } .q-label.tr{ top:8px; right:10px; text-align:right; }
.q-label.bl{ bottom:8px; left:10px; } .q-label.br{ bottom:8px; right:10px; text-align:right; }
.q-dot{ position:absolute; width:15px; height:15px; border-radius:50%; background: var(--navy); border:3px solid white; box-shadow:0 3px 10px rgba(11,105,193,0.55); transform:translate(-50%,50%); transition: all 1.1s cubic-bezier(.22,.61,.36,1); }

.cta-box{
  background: linear-gradient(135deg, var(--navy), var(--navy-dark) 60%, var(--navy-darker));
  border-radius:18px; padding:24px; color:white; text-align:center; margin-bottom:16px;
  box-shadow: 0 16px 32px rgba(8,63,115,0.35);
}
.cta-box h3{ font-family:'Fraunces', serif; font-weight:600; font-size:20px; margin-bottom:9px; letter-spacing:-0.2px; }
.cta-box p{ font-size:14.5px; color:#CFE0F5; margin-bottom:17px; line-height:1.65; }
.cta-box .trigger{ font-size:12.5px; color:#9FC4EA; margin-top:-6px; margin-bottom:16px; line-height:1.5; }
.cta-box .btn{ background:white; color: var(--navy-dark); box-shadow:0 8px 20px rgba(0,0,0,0.18); }
.cta-box .btn:hover{ background:#F3F8FF; }

.footer-note{ text-align:center; font-size:13px; color: var(--ink-mute); margin-top:6px; }
.footer-note-dark{ text-align:center; font-size:12px; color:#7691AD; margin-top:20px; letter-spacing:0.3px; }
.restart-link{ display:block; text-align:center; margin-top:16px; font-size:13.5px; color: var(--ink-mute); cursor:pointer; text-decoration:underline; }
.restart-link:hover{ color: var(--ink-soft); }

/* Popup: Política de Privacidade */
.footer-note-dark a{ color:#93AECB; }
.footer-note-dark a:hover{ color:#CFE0F5; }

.modal-overlay{
  display:none; position:fixed; inset:0; z-index:100;
  background: rgba(4,10,22,0.72); backdrop-filter: blur(3px);
  align-items:center; justify-content:center; padding:16px;
}
.modal-overlay.open{ display:flex; animation: fadeIn .25s ease; }
.modal{
  background: var(--paper); border-radius:20px; width:100%; max-width:560px; max-height:88vh;
  display:flex; flex-direction:column; box-shadow: 0 30px 80px rgba(2,10,25,0.6); overflow:hidden;
}
.modal-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:22px 24px 14px; border-bottom:1px solid var(--hairline); }
.modal-head h2{ font-family:'Fraunces', serif; font-weight:600; font-size:21px; color: var(--ink); }
.modal-close{ width:36px; height:36px; border:none; border-radius:10px; background:#F1F5FA; color: var(--ink-soft); font-size:22px; line-height:1; cursor:pointer; flex-shrink:0; }
.modal-close:hover{ background: var(--hairline); }
.modal-body{ padding:18px 24px; overflow-y:auto; font-size:14.5px; line-height:1.7; color: var(--ink-soft); }
.modal-body h3{ font-size:14px; font-weight:700; color: var(--ink); margin:18px 0 6px; }
.modal-body p{ margin-bottom:8px; }
.modal-body ul{ padding-left:20px; margin-bottom:8px; }
.modal-body li{ margin-bottom:4px; }
.modal-body strong{ color: var(--ink); }
.modal-body a, .modal-body a strong{ color: var(--navy); }
.modal-update{ font-size:12.5px; color: var(--ink-mute); }
.modal-foot{ padding:14px 24px 20px; border-top:1px solid var(--hairline); }
/* ---------------- CELULAR ---------------- */
@media (max-width: 480px){
  body{ padding: 28px 16px; }
  .logo-row{ margin-bottom:22px; gap:12px; }
  .logo-badge{ width:52px; height:52px; border-radius:13px; }
  .brand-name{ font-size:14px; }
  .brand-sub{ font-size:10.5px; }
  .card{ padding: 28px 20px; border-radius:22px; }
  h1{ font-size:24px; }
  p.lede{ font-size:15.5px; }
  .q-title{ font-size:19.5px; }
  .opt{ padding:13px 14px; font-size:15px; gap:12px; }
  .opt .key{ width:28px; height:28px; }
  .dual-score .box .num{ font-size:25px; }
  .q-label{ font-size:9.5px; }
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ animation-duration:.01ms !important; transition-duration:.01ms !important; }
}