/* Raio-X do Escritório (Gestall) — estilo A, escuro premium, celular primeiro. */
:root {
  --fundo: #1a1917;
  --cartao: #232120;
  --cartao-2: #26241f;
  --borda: #3a3731;
  --borda-forte: #3d3a35;
  --texto: #f5f4f2;
  --texto-2: #b4b0aa;
  --texto-3: #8c8882;
  --laranja: #fc8036;
  --laranja-forte: #e4621a;
  --alerta-fundo: #3b2a12;
  --alerta-texto: #f5b25c;
  --erro: #ff8a7a;
  --raio: 12px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--fundo);
  color: var(--texto);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--laranja); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* Topo */
.topo {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid #2c2a26;
  position: sticky; top: 0; background: var(--fundo); z-index: 5;
}
.logo { height: 22px; width: auto; display: block; }
.topo-rotulo { font-size: 12px; color: #9a9793; }

.folha { max-width: 460px; margin: 0 auto; padding: 22px 18px 48px; }
.tela { animation: entra .25s ease-out; }
@keyframes entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tela { animation: none; } }

/* Abertura */
.selo {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .1em;
  padding: 6px 12px; border-radius: 99px; background: #2b2925; color: #c9c5bf; border: 1px solid var(--borda);
}
h1 { font-size: 28px; line-height: 1.15; margin: 14px 0 10px; font-weight: 800; letter-spacing: -.02em; }
h1 .destaque { color: var(--laranja); }
.sub { font-size: 15px; color: var(--texto-2); margin: 0 0 16px; }
.garantias { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.garantias li { font-size: 12px; padding: 6px 10px; border-radius: 99px; background: var(--cartao-2); border: 1px solid var(--borda); color: #d6d2cc; }

.cartao {
  background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--raio); padding: 18px;
}
.cartao-destaque { border-top: 2px solid var(--laranja); }
.cartao h2 { font-size: 17px; margin: 0 0 4px; }
.cartao .nota-cartao { font-size: 13px; color: #a29e98; margin: 0 0 12px; }

.campo { margin-top: 12px; }
.campo label { display: block; font-size: 13px; font-weight: 600; color: #a29e98; margin-bottom: 6px; }
.campo input {
  width: 100%; height: 46px; border-radius: 10px; padding: 0 12px; font: inherit; font-size: 16px;
  background: var(--fundo); border: 1px solid var(--borda-forte); color: var(--texto);
}
.campo input::placeholder { color: #6f6b65; }
.campo input:focus { outline: 2px solid var(--laranja); outline-offset: 1px; border-color: transparent; }
.campo .erro { display: block; font-size: 12.5px; color: var(--erro); margin-top: 5px; min-height: 0; }
.legal { font-size: 12px; color: #7d7973; margin: 12px 0 0; line-height: 1.45; }

.botao {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 50px; margin-top: 16px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--laranja); color: #fff; font: inherit; font-size: 16px; font-weight: 700;
  text-decoration: none;
}
.botao:hover { background: var(--laranja-forte); }
.botao:disabled { opacity: .55; cursor: default; }
.botao-claro { background: transparent; border: 1px solid var(--borda-forte); color: var(--texto); }
.botao-claro:hover { background: var(--cartao-2); }
.link-simples {
  display: block; width: 100%; margin-top: 10px; background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 14px; color: #c9c5bf; text-decoration: underline; text-underline-offset: 3px; text-align: center;
}

/* Quiz */
.progresso { margin-bottom: 18px; }
.progresso-linha { display: flex; justify-content: space-between; font-size: 13px; color: var(--texto-2); margin-bottom: 8px; }
.progresso-trilho { height: 6px; border-radius: 99px; background: #2f2c28; overflow: hidden; }
.progresso-trilho i { display: block; height: 100%; background: var(--laranja); border-radius: 99px; transition: width .25s; }
.pergunta-titulo { font-size: 22px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; margin: 0 0 8px; }
.pergunta-dica { font-size: 14px; color: var(--texto-2); margin: 0 0 14px; }
.opcoes { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.opcao {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 14px; cursor: pointer;
  border-radius: 10px; background: var(--cartao); border: 1px solid var(--borda); font-size: 15.5px;
}
.opcao input { accent-color: var(--laranja); width: 18px; height: 18px; flex: none; margin: 0; }
.opcao:has(input:checked) { border-color: var(--laranja); background: #2a2018; }
.navegacao { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 18px; }
.navegacao .botao { margin-top: 0; }

/* Calculando */
.calculando { text-align: center; padding: 60px 0; }
.giro {
  width: 42px; height: 42px; margin: 0 auto 16px; border-radius: 50%;
  border: 4px solid #2f2c28; border-top-color: var(--laranja); animation: gira .9s linear infinite;
}
@keyframes gira { to { transform: rotate(360deg); } }

/* Resultado */
.olho { font-size: 14px; color: var(--texto-2); margin: 0; }
.numero { font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--laranja); margin: 8px 0 0; }
.numero small { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--texto-2); }
.ano { font-size: 14px; color: var(--texto-2); margin: 10px 0 16px; }
.ano strong { color: var(--texto); }
.nota {
  display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 20px;
  padding: 11px 12px; border-radius: 10px; background: var(--cartao); border: 1px solid var(--borda);
}
.etiqueta-selo { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--alerta-fundo); color: var(--alerta-texto); }
.etiqueta-selo.critico { background: #3d1712; color: #ff9d8a; }
.etiqueta-selo.solida { background: #12301f; color: #6fdc9b; }
.secao-titulo { font-size: 15px; margin: 0 0 6px; }
.perda { padding: 13px 0; border-top: 1px solid #2c2a26; }
.perda-topo { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; font-weight: 600; margin-bottom: 7px; }
.perda-topo b { color: var(--laranja); white-space: nowrap; }
.medidor { height: 6px; border-radius: 99px; background: #2f2c28; overflow: hidden; margin-bottom: 8px; }
.medidor i { display: block; height: 100%; background: var(--laranja); border-radius: 99px; }
.perda p { margin: 0; font-size: 14px; color: var(--texto-2); line-height: 1.5; }
.perda strong { color: var(--texto); font-weight: 600; }
.caso {
  font-size: 14px; line-height: 1.55; border-radius: 10px; padding: 14px; margin: 18px 0 6px;
  background: var(--cartao-2); border-left: 3px solid var(--laranja); color: #d6d2cc;
}
.caso em { display: block; font-size: 12px; margin-top: 6px; color: var(--texto-3); font-style: normal; }
.convite { margin-top: 18px; }
.convite h2 { font-size: 18px; }
.convite p { margin: 0; font-size: 14px; color: var(--texto-2); }
.rodape { font-size: 12px; color: #7d7973; margin-top: 22px; line-height: 1.45; }

/* Agenda */
.dias { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; margin-top: 12px; scrollbar-width: none; }
.dia {
  flex: none; min-width: 64px; padding: 8px 10px; border-radius: 10px; cursor: pointer; text-align: center;
  background: transparent; border: 1px solid var(--borda-forte); color: #d6d2cc; font: inherit; font-size: 13px;
}
.dia[aria-pressed="true"] { border-color: var(--laranja); color: var(--laranja); font-weight: 700; }
.horarios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.horario {
  padding: 11px 0; border-radius: 9px; cursor: pointer; text-align: center; font: inherit; font-size: 14px;
  background: transparent; border: 1px solid var(--borda-forte); color: #d6d2cc;
}
.horario[aria-pressed="true"] { border-color: var(--laranja); color: var(--laranja); font-weight: 700; }
.horario:disabled { opacity: .35; text-decoration: line-through; cursor: default; }
.aviso { font-size: 13.5px; color: var(--alerta-texto); margin: 10px 0 0; }
.erro-geral { font-size: 14px; color: var(--erro); margin: 12px 0 0; }

/* Aviso de saída */
.aviso-saida {
  position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 18px;
  background: rgba(10, 9, 8, .72);
}
.aviso-saida .cartao { max-width: 400px; width: 100%; }

/* Página da política */
.doc h1 { font-size: 26px; }
.doc h2 { font-size: 17px; margin-top: 22px; }
.doc p, .doc li { color: #d6d2cc; font-size: 15px; }
.atualizado { font-size: 13px; color: var(--texto-3); }
.caixa { background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--raio); padding: 14px; font-size: 14px; }

@media (min-width: 720px) {
  .folha { padding-top: 36px; }
  h1 { font-size: 34px; }
}

/* "Baixar meu Raio-X em PDF": só o resultado vai para o papel. */
@media print {
  :root { --fundo: #fff; --texto: #111; --texto-2: #444; --cartao: #f6f6f6; --cartao-2: #f6f6f6; --borda: #ddd; }
  body { background: #fff; color: #111; }
  .topo { position: static; border-bottom: 1px solid #ddd; }
  .logo { filter: invert(1) hue-rotate(180deg); }
  .convite, .link-simples, .botao, .aviso-saida, #abertura, #perguntas { display: none !important; }
  .numero, .perda-topo b { color: #c4581a; }
}
