/* Raio-X de Posicionamento — visual aprovado (form-v2 + fundo A + carregamento 1) */
@font-face { font-family: 'Kanit'; font-weight: 300; font-display: swap; src: url('fonts/Kanit-Light.ttf') format('truetype'); }
@font-face { font-family: 'Kanit'; font-weight: 400; font-display: swap; src: url('fonts/Kanit-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Kanit'; font-weight: 500; font-display: swap; src: url('fonts/Kanit-Medium.ttf') format('truetype'); }
@font-face { font-family: 'Kanit'; font-weight: 600; font-display: swap; src: url('fonts/Kanit-SemiBold.ttf') format('truetype'); }

:root {
  --preto: #111111;
  --lima: #DBFB03;
  --rosa: #FF228D;
  --branco: #FFFFFF;
  --cinza: #828282;
  --borda: #2A2A2A;
  --borda-forte: #444444;
  --letra-fundo: #191919;
  --campo: #161616;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--preto);
  color: var(--branco);
  font-family: 'Kanit', system-ui, sans-serif;
  font-weight: 400;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Fundo: faixas diagonais tom sobre tom (raios do site, em preto sobre preto) */
.bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; background: var(--preto); }
.bg svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bg-d { display: none; }
.bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #111 0%, rgba(17,17,17,.9) 45%, rgba(17,17,17,0) 80%); }
@media (min-width: 769px) { .bg-m { display: none; } .bg-d { display: block; } }
/* Iluminação de fundo bem leve nas cores da marca (lima em cima à esquerda, rosa embaixo à direita). */
.bg::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(55% 45% at 8% -6%, rgba(219, 251, 3, .07), rgba(219, 251, 3, 0) 70%),
    radial-gradient(50% 42% at 100% 104%, rgba(255, 34, 141, .06), rgba(255, 34, 141, 0) 70%); }
.bg::after { z-index: 1; }
/* A luz é só do formulário: no documento (página do link e tela após o envio) ela sai. */
body.pagina-doc .bg::before, body.modo-doc .bg::before { display: none; }

/* Barra de progresso */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 5; }
.progress-bar { height: 100%; width: 0; background: var(--lima); transition: width .4s ease; }

/* Coluna */
.col { position: relative; z-index: 2; width: min(520px, 100% - 40px); margin: 0 auto; padding: 34px 0 96px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--borda); }
.logo { height: 26px; width: auto; display: block; }
.top-title { font-size: 13px; font-weight: 500; color: #dddddd; text-align: right; }

#app { padding-top: 40px; }
.screen { animation: entra .25s ease both; }
@keyframes entra { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hello { border-left: 2px solid var(--lima); padding-left: 10px; font-size: 18px; font-weight: 500; margin-bottom: 22px; }
.intro { font-size: 15px; color: #bbbbbb; line-height: 1.5; font-weight: 300; margin-bottom: 26px; }
.step { font-size: 12px; color: var(--cinza); margin-bottom: 10px; }
.q { font-size: 21px; font-weight: 500; line-height: 1.3; margin-bottom: 8px; }
.q-small { font-size: 16px; }
.help { font-size: 13px; color: var(--cinza); margin-bottom: 18px; font-weight: 300; }

.field-label { display: block; font-size: 12px; color: var(--cinza); margin: 4px 0 6px; }
.input, .textarea {
  width: 100%; background: var(--campo); border: 1px solid var(--borda-forte); border-radius: 10px;
  padding: 13px 14px; font: inherit; font-size: 16px; color: var(--branco); outline: none;
  transition: border-color .15s ease;
}
.input + .field-label { margin-top: 14px; }
.textarea { resize: none; min-height: 96px; line-height: 1.45; overflow: hidden; }
.input::placeholder, .textarea::placeholder { color: #5a5a5a; }
.input:focus, .textarea:focus { border-color: var(--lima); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--rosa); }
.hint-kbd { font-size: 11px; color: #5f5f5f; margin-top: 8px; }

.opts { display: flex; flex-direction: column; gap: 8px; }
.opt {
  display: flex; gap: 12px; align-items: center; width: 100%; text-align: left;
  background: rgba(17,17,17,.88); border: 1px solid #333333; border-radius: 10px;
  padding: 12px 14px; font: inherit; font-size: 15px; color: #dddddd; cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.opt:hover { border-color: #555555; }
.opt:focus-visible { outline: 2px solid #8a8a8a; outline-offset: 2px; }
.opt kbd {
  flex: none; font-family: inherit; font-size: 11px; border: 1px solid var(--borda-forte); border-radius: 4px;
  width: 22px; height: 22px; display: grid; place-items: center; color: #888888;
}
.opt[aria-checked="true"] { border-color: var(--lima); color: var(--branco); }
.opt[aria-checked="true"] kbd { background: var(--lima); color: var(--preto); border-color: var(--lima); }

.error { color: var(--rosa); font-size: 13px; margin-top: 10px; min-height: 18px; }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.btn {
  background: var(--lima); color: var(--preto); font: inherit; font-weight: 600; font-size: 15px;
  border: 0; border-radius: 999px; padding: 10px 22px; cursor: pointer; transition: opacity .15s ease;
}
.btn:disabled { opacity: .5; cursor: progress; }
.btn:focus-visible, .link:focus-visible { outline: 2px solid var(--branco); outline-offset: 3px; }
.link { background: none; border: 0; font: inherit; font-size: 14px; color: var(--cinza); cursor: pointer; padding: 6px 2px; }
.link:hover { color: #bbbbbb; }
.btn-ghost { background: none; border: 1px solid var(--borda-forte); color: #dddddd; font-weight: 500; }
.legal { font-size: 12px; color: #6d6d6d; margin-top: 28px; line-height: 1.5; }
.legal a { color: #a3a3a3; }

/* Carregamento: logo balançando */
.loading { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 70px; }
.wobble { height: 64px; width: auto; animation: wob 1.6s ease-in-out infinite; }
@keyframes wob { 0%, 100% { transform: rotate(-5deg) scale(1); } 50% { transform: rotate(3deg) scale(1.08); } }
.loading-title { margin-top: 30px; font-size: 18px; font-weight: 500; }
.loading-note { margin-top: 26px; font-size: 13px; color: #b5b5b5; max-width: 360px; line-height: 1.5; }
.loading-sub { margin-top: 12px; font-size: 16px; color: var(--lima); font-weight: 500; min-height: 44px; max-width: 340px; line-height: 1.4; animation: entra .3s ease both; }
.bar-indet { width: 200px; height: 3px; background: #222222; border-radius: 9px; margin-top: 22px; overflow: hidden; }
.bar-indet div { height: 100%; width: 40%; background: var(--lima); animation: indet 2.4s ease-in-out infinite; }
@keyframes indet { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* Tela final provisória */
.done-list { margin-top: 22px; border-top: 1px solid var(--borda); }
.done-item { padding: 12px 0; border-bottom: 1px solid var(--borda); }
.done-item dt { font-size: 12px; color: var(--cinza); margin-bottom: 3px; }
.done-item dd { font-size: 14px; color: #dddddd; white-space: pre-wrap; word-break: break-word; }

/* Faixa de teste */
.test-banner {
  display: table; margin: 48px auto 0; background: #1c1c1c; border: 1px dashed var(--borda-forte); color: #9a9a9a;
  font-size: 11px; letter-spacing: 2px; padding: 5px 14px; border-radius: 999px;
}
.test-inline { display: inline-block; margin-bottom: 14px; font-size: 11px; letter-spacing: 2px; color: var(--preto); background: var(--lima); padding: 3px 10px; border-radius: 4px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.noscript { position: relative; z-index: 3; text-align: center; padding: 40px 20px; color: #bbbbbb; }

@media (prefers-reduced-motion: reduce) {
  .screen, .loading-sub { animation: none; }
  .wobble, .bar-indet div { animation-duration: 0s; animation-iteration-count: 1; }
  .progress-bar { transition: none; }
}
