/* Formulário de briefing · My Site
   Identidade "Azul de confiança": base branca, azul-marinho suave e um toque de laranja (o pingo). */

:root {
  --azul: #1f3a5f;
  --azul-hover: #2a4b77;
  --azul-escuro: #172c48;
  --laranja: #f08a5d;
  --nevoa: #e8eef5;
  --nevoa-forte: #d3deea;
  --fundo-cinza: #f5f6f8;
  --texto: #1e2430;
  --texto-suave: #586273;
  --borda: #d9e0e9;
  --branco: #ffffff;
  --erro: #b3261e;
  --erro-fundo: #fdf0ef;

  --fonte-titulo: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fonte-texto: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --raio: 20px;
  --raio-m: 16px;
  --raio-p: 12px;
  --sombra: 0 1px 2px rgba(30, 36, 48, 0.05), 0 10px 30px rgba(31, 58, 95, 0.08);
  --sombra-forte: 0 2px 6px rgba(30, 36, 48, 0.08), 0 24px 60px rgba(31, 58, 95, 0.2);
  --largura: 680px;
  --lateral: 20px;
  --altura-nav: 76px;

  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--branco);
  color: var(--texto);
  font-family: var(--fonte-texto);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.com-modal {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: var(--azul);
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid rgba(31, 58, 95, 0.35);
  outline-offset: 2px;
}

.visualmente-oculto {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ic {
  width: 20px;
  height: 20px;
  flex: none;
}

.app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

/* ---------- Topo ---------- */

.topo {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--nevoa);
}

.topo__linha {
  max-width: calc(var(--largura) + 2 * var(--lateral));
  margin: 0 auto;
  padding: 12px var(--lateral);
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
}

.topo__logo {
  width: 104px;
  height: auto;
}

.topo__acoes {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-salvo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--texto-suave);
  white-space: nowrap;
}

.status-salvo .ic {
  width: 18px;
  height: 18px;
}

.botao-perguntas {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--nevoa);
  color: var(--azul);
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s;
}

.botao-perguntas:hover {
  background: var(--nevoa-forte);
}

.progresso {
  height: 4px;
  background: var(--nevoa);
  position: relative;
}

.progresso__barra {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progresso, 0%);
  background: var(--azul);
  border-radius: 0 4px 4px 0;
  transition: width 0.4s ease;
}

.progresso__barra::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--laranja);
  box-shadow: 0 0 0 2px var(--branco);
}

/* ---------- Estrutura das telas ---------- */

.tela {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: entrar 0.32s ease both;
}

@keyframes entrar {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.conteudo {
  width: 100%;
  max-width: calc(var(--largura) + 2 * var(--lateral));
  margin: 0 auto;
  padding: 28px var(--lateral) 40px;
  flex: 1;
  position: relative;
}

.conteudo--centro {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.conteudo > * + * {
  margin-top: 20px;
}

/* Círculo decorativo Azul Névoa, sempre cortado pela borda */
.tela--inicio::before,
.tela--transicao::before,
.tela--final::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: var(--nevoa);
  top: -170px;
  right: -190px;
  pointer-events: none;
}

.tela--final::before {
  top: auto;
  bottom: -220px;
  left: -200px;
  right: auto;
}

/* ---------- Tipografia ---------- */

.titulo-grande,
.pergunta__titulo {
  font-family: var(--fonte-titulo);
  font-weight: 800;
  color: var(--azul);
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0;
  outline: none;
  text-wrap: balance;
}

.titulo-grande {
  font-size: clamp(30px, 7.6vw, 44px);
}

.pergunta__titulo {
  font-size: clamp(26px, 6.4vw, 36px);
}

.pingo {
  display: inline-block;
  width: 0.24em;
  height: 0.24em;
  border-radius: 50%;
  background: var(--laranja);
  margin-left: 0.08em;
}

.traco {
  display: block;
  width: 64px;
  height: 8px;
  border-radius: 8px;
  background: var(--laranja);
}

.texto-rico > * {
  margin: 0;
}

.texto-rico > * + * {
  margin-top: 12px;
}

.texto-rico ul {
  padding: 0;
  list-style: none;
}

.texto-rico li {
  position: relative;
  padding-left: 20px;
}

.texto-rico li + li {
  margin-top: 6px;
}

.texto-rico li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--azul);
  opacity: 0.55;
}

.texto-rico strong {
  font-weight: 600;
  color: var(--azul);
}

.pilula {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--azul);
  background: var(--nevoa);
  padding: 6px 12px;
  border-radius: 999px;
  line-height: 1.3;
}

.pilula--teste {
  background: var(--azul);
  color: var(--branco);
}

/* ---------- Botões ---------- */

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.botao:active {
  transform: scale(0.98);
}

.botao:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
}

.botao--primario {
  background: var(--azul);
  color: var(--branco);
}

.botao--primario:hover:not(:disabled) {
  background: var(--azul-hover);
}

.botao--secundario {
  background: var(--branco);
  color: var(--azul);
  border-color: var(--nevoa-forte);
}

.botao--secundario:hover:not(:disabled) {
  border-color: var(--azul);
}

.botao--fantasma {
  background: transparent;
  color: var(--azul);
  padding: 0 14px;
}

.botao--fantasma:hover:not(:disabled) {
  background: var(--nevoa);
}

.botao--perigo {
  background: var(--erro);
  color: var(--branco);
}

.botao--claro {
  background: var(--branco);
  color: var(--azul);
}

.botao--fantasma-claro {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
}

.botao--grande {
  min-height: 58px;
  padding: 0 30px;
  font-size: 17px;
}

.botao--largo {
  width: 100%;
}

.botao--mini {
  min-height: 36px;
  padding: 0 12px;
  font-size: 14px;
  gap: 6px;
  background: var(--branco);
  color: var(--azul);
  border-color: var(--nevoa-forte);
}

.botao--mini .ic {
  width: 16px;
  height: 16px;
}

.botao--fantasma.botao--mini {
  border-color: transparent;
  background: transparent;
}

.link {
  font-weight: 600;
  text-underline-offset: 3px;
}

/* ---------- Navegação inferior ---------- */

.navegacao {
  position: sticky;
  bottom: 0;
  z-index: 15;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--nevoa);
  padding: 12px var(--lateral) calc(12px + env(safe-area-inset-bottom));
}

.navegacao__dentro {
  max-width: var(--largura);
  margin: 0 auto;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.navegacao__dentro .botao:last-child {
  flex: 1;
  max-width: 320px;
}

.navegacao--revisar .navegacao__dentro .botao {
  flex: 1;
  max-width: none;
  padding: 0 14px;
}

.navegacao--revisar .botao--secundario .ic {
  display: none;
}

/* ---------- Apresentador e fala ---------- */

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: none;
  object-fit: cover;
  position: relative;
}

.avatar--iniciais {
  display: inline-grid;
  place-items: center;
  background: var(--azul);
  color: var(--branco);
  font-family: var(--fonte-titulo);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.avatar--iniciais::after {
  content: '';
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 26%;
  height: 26%;
  border-radius: 50%;
  background: var(--laranja);
  box-shadow: 0 0 0 2px var(--branco);
}

.avatar--g {
  width: 64px;
  height: 64px;
  font-size: 21px;
}

.avatar--xl {
  width: 76px;
  height: 76px;
  font-size: 25px;
}

.apresentador {
  display: flex;
  align-items: center;
  gap: 14px;
}

.apresentador strong {
  display: block;
  font-family: var(--fonte-titulo);
  font-weight: 800;
  font-size: 18px;
  color: var(--azul);
  line-height: 1.25;
}

.apresentador > div > span {
  font-size: 14px;
  color: var(--texto-suave);
}

.fala {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.fala__balao {
  flex: 1;
  min-width: 0;
  background: var(--fundo-cinza);
  border-radius: 6px var(--raio) var(--raio) var(--raio);
  padding: 14px 18px 16px;
  font-size: 16px;
}

.fala__nome {
  margin: 0 0 6px;
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 14px;
  color: var(--azul);
}

.fala__nome span {
  font-family: var(--fonte-texto);
  font-weight: 500;
  color: var(--texto-suave);
}

.fala--grande .fala__balao {
  font-size: 18px;
  line-height: 1.55;
  padding: 18px 20px 20px;
}

/* ---------- Boas-vindas ---------- */

.tela--inicio .conteudo {
  padding-top: 36px;
}

.inicio__texto {
  font-size: 18px;
  color: var(--texto);
}

.cartao {
  background: var(--branco);
  border: 1px solid var(--nevoa-forte);
  border-radius: var(--raio);
  padding: 20px;
}

.cartao--nevoa {
  background: var(--fundo-cinza);
  border-color: transparent;
}

.cartao__titulo {
  margin: 0 0 14px;
  font-family: var(--fonte-titulo);
  font-weight: 800;
  font-size: 18px;
  color: var(--azul);
}

.lista-check {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.lista-check li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.lista-check__selo {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--azul);
  color: var(--branco);
  display: grid;
  place-items: center;
  margin-top: 1px;
}

.lista-check__selo .ic {
  width: 15px;
  height: 15px;
  stroke-width: 2.6;
}

.fechamento {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 0;
  font-weight: 600;
  font-size: 17px;
  color: var(--azul);
}

.fechamento .ic {
  margin-top: 3px;
}

.acoes-inicio {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-top: 6px;
}

/* ---------- Transição de bloco ---------- */

.tela--transicao .conteudo {
  padding-top: 48px;
}

.tela--transicao .titulo-grande {
  font-size: clamp(36px, 10vw, 56px);
}

.transicao__info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--texto-suave);
  font-size: 15px;
}

/* ---------- Pergunta ---------- */

.pergunta__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pergunta__numero {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 13px;
  color: var(--texto-suave);
  white-space: nowrap;
}

.conteudo > .pergunta__titulo {
  margin-top: 14px;
}

.exemplo {
  border: 1.5px dashed var(--nevoa-forte);
  border-radius: var(--raio-m);
  padding: 14px 18px 16px;
  color: var(--texto);
  font-size: 15.5px;
}

.exemplo__rotulo {
  display: block;
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--texto-suave);
  margin-bottom: 6px;
}

.aviso {
  position: relative;
  background: var(--nevoa);
  border-radius: var(--raio-m);
  padding: 14px 18px 14px 22px;
  font-size: 15.5px;
  overflow: hidden;
}

.aviso::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--laranja);
}

.aviso--ok::before {
  background: var(--azul);
}

.resposta {
  padding-top: 4px;
}

.instrucao {
  margin: 0 0 10px;
  font-weight: 600;
  color: var(--azul);
}

.nota {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--texto-suave);
  font-size: 15px;
}

.nota .ic {
  margin-top: 2px;
  width: 18px;
  height: 18px;
}

.dica {
  margin: 8px 0 0;
  font-size: 14.5px;
  color: var(--texto-suave);
}

/* ---------- Campos ---------- */

.campo {
  width: 100%;
  display: block;
  background: var(--branco);
  border: 1.5px solid var(--borda);
  border-radius: var(--raio-m);
  padding: 14px 16px;
  font-size: 16px;
  line-height: 1.55;
  transition: border-color 0.15s, box-shadow 0.15s;
  resize: none;
  -webkit-appearance: none;
  appearance: none;
}

textarea.campo {
  min-height: 56px;
  overflow: hidden;
}

input.campo {
  min-height: 56px;
}

.campo::placeholder {
  color: #8a93a2;
}

.campo:hover {
  border-color: var(--nevoa-forte);
}

.campo:focus {
  outline: none;
  border-color: var(--azul);
  box-shadow: 0 0 0 4px rgba(31, 58, 95, 0.12);
}

.campo--mini {
  font-size: 16px;
  padding: 8px 10px;
  border-radius: var(--raio-p);
  min-height: 44px !important;
  line-height: 1.4;
}

.campos {
  display: grid;
  gap: 18px;
}

.grupo + .grupo {
  margin-top: 16px;
}

.grupo--outro {
  margin-top: 18px;
}

.rotulo {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: var(--azul);
  margin-bottom: 8px;
}

.rotulo--p {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--texto);
}

/* ---------- Opções (escolha / caixas) ---------- */

.opcoes {
  display: grid;
  gap: 10px;
}

.opcao-bloco {
  border: 1.5px solid var(--borda);
  border-radius: var(--raio-m);
  background: var(--branco);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.opcao-bloco:hover {
  border-color: var(--nevoa-forte);
}

.opcao-bloco.is-marcada {
  border-color: var(--azul);
  background: #f7f9fc;
  box-shadow: 0 0 0 1px var(--azul);
}

.opcao-bloco--sem {
  margin-top: 14px;
}

.opcao {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.opcao__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.opcao__marca {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border: 2px solid var(--nevoa-forte);
  background: var(--branco);
  display: grid;
  place-items: center;
  color: transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.opcao--multipla .opcao__marca {
  border-radius: 7px;
}

.opcao--unica .opcao__marca {
  border-radius: 50%;
}

.opcao__marca .ic {
  width: 15px;
  height: 15px;
  stroke-width: 2.8;
}

.opcao__input:checked + .opcao__marca {
  background: var(--azul);
  border-color: var(--azul);
  color: var(--branco);
}

.opcao__input:focus-visible + .opcao__marca {
  box-shadow: 0 0 0 4px rgba(31, 58, 95, 0.2);
}

.opcao__texto {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.opcao__rotulo {
  font-weight: 600;
  color: var(--texto);
  line-height: 1.4;
}

.opcao__descricao {
  font-size: 14.5px;
  color: var(--texto-suave);
  line-height: 1.45;
}

.opcao__detalhe {
  padding: 0 16px 16px 54px;
}

/* ---------- Envio de arquivos ---------- */

.enviador {
  display: grid;
  gap: 14px;
}

.enviador__nota {
  font-size: 15px;
  color: var(--texto);
  background: var(--fundo-cinza);
  border-radius: var(--raio-m);
  padding: 14px 18px;
}

.enviador__zona {
  border: 2px dashed var(--nevoa-forte);
  background: var(--fundo-cinza);
  border-radius: var(--raio);
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}

.enviador__zona.is-arrastando {
  border-color: var(--azul);
  background: var(--nevoa);
}

.enviador__icone {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--nevoa);
  color: var(--azul);
  display: grid;
  place-items: center;
}

.enviador__icone .ic {
  width: 28px;
  height: 28px;
}

.enviador__dica {
  font-size: 14px;
  color: var(--texto-suave);
}

.so-computador {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .so-computador {
    display: inline;
  }
}

.enviador--compacto .enviador__zona {
  padding: 0;
  border: 0;
  background: none;
  align-items: flex-start;
}

.enviador__contagem {
  display: grid;
  gap: 8px;
  font-size: 15px;
}

.contagem__linha {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: center;
}

.contagem__linha strong {
  color: var(--azul);
}

.contagem__estado {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--texto-suave);
}

.contagem__estado .ic {
  width: 16px;
  height: 16px;
}

.contagem__estado--ok {
  color: var(--azul);
}

.contagem__estado--erro {
  color: var(--erro);
}

.contagem__meta {
  font-size: 14px;
  color: var(--texto-suave);
}

.medidor {
  height: 8px;
  border-radius: 8px;
  background: var(--nevoa);
  overflow: hidden;
}

.medidor span {
  display: block;
  height: 100%;
  background: var(--azul);
  border-radius: 8px;
  transition: width 0.3s;
}

.grade {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
}

.grade:empty {
  display: none;
}

@media (min-width: 560px) {
  .enviador:not(.enviador--pares) .grade {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.enviador--pares .grade {
  gap: 18px 10px;
}

.arquivo {
  margin: 0;
  min-width: 0;
}

.arquivo__previa {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--raio-m);
  overflow: hidden;
  background: var(--nevoa);
}

.arquivo__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arquivo__icone {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--azul);
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.arquivo__icone .ic {
  width: 30px;
  height: 30px;
}

.tem-previa .arquivo__icone {
  display: none;
}

.arquivo__numero {
  position: absolute;
  top: 8px;
  left: 8px;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--azul);
  font-family: var(--fonte-titulo);
  font-weight: 800;
  font-size: 12.5px;
  display: grid;
  place-items: center;
}

.arquivo__remover {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.94);
  color: var(--texto);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.arquivo__remover .ic {
  width: 17px;
  height: 17px;
}

.arquivo__status {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  font-size: 13px;
  font-weight: 600;
}

.is-enviando .arquivo__status,
.is-erro .arquivo__status {
  inset: 0;
  flex-direction: column;
  background: rgba(23, 44, 72, 0.58);
  color: var(--branco);
  text-align: center;
}

.is-erro .arquivo__status {
  background: rgba(120, 25, 20, 0.66);
}

.is-ok .arquivo__status {
  inset: auto 8px 8px auto;
  padding: 0;
}

.arquivo__ok {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--azul);
  color: var(--branco);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px var(--branco);
}

.arquivo__ok .ic {
  width: 15px;
  height: 15px;
  stroke-width: 2.8;
}

.arquivo__legenda {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.arquivo__nome {
  font-size: 12.5px;
  color: var(--texto-suave);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Depoimentos ---------- */

.depoimentos {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.depoimento__topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.depoimento__topo h3 {
  margin: 0;
  font-family: var(--fonte-titulo);
  font-weight: 800;
  font-size: 17px;
  color: var(--azul);
}

/* ---------- Áudio ---------- */

.audio {
  border-top: 1px solid var(--nevoa);
  padding-top: 20px;
}

.audio__gravar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.botao--audio {
  background: var(--nevoa);
  color: var(--azul);
  min-height: 48px;
  padding: 0 18px;
}

.botao--audio:hover:not(:disabled) {
  background: var(--nevoa-forte);
}

.audio__dica {
  font-size: 14.5px;
  color: var(--texto-suave);
}

.audio__nota {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--texto-suave);
  margin: 0;
}

.audio__lista {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.audio__cartao {
  background: var(--fundo-cinza);
  border-radius: var(--raio-m);
  padding: 12px 14px;
}

.audio__topo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.audio__tocar,
.audio__icone {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: var(--azul);
  color: var(--branco);
  display: grid;
  place-items: center;
  flex: none;
  cursor: pointer;
}

.audio__icone {
  background: var(--nevoa-forte);
  color: var(--azul);
  cursor: default;
}

.audio__tocar .ic,
.audio__icone .ic {
  width: 18px;
  height: 18px;
}

.audio__tocar .ic {
  fill: currentColor;
}

.audio__titulo {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  color: var(--azul);
}

.audio__titulo span {
  font-family: var(--fonte-texto);
  font-weight: 500;
  color: var(--texto-suave);
}

.audio__estado {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 13.5px;
  color: var(--texto-suave);
}

.audio__estado .ic {
  width: 15px;
  height: 15px;
}

.audio__estado--ok {
  color: var(--azul);
}

.audio__estado--erro {
  color: var(--erro);
}

.audio__apagar {
  margin-left: auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--texto-suave);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.audio__apagar:hover {
  background: var(--nevoa);
  color: var(--erro);
}

.audio__transcricao {
  margin: 10px 0 0;
  padding: 10px 14px;
  background: var(--branco);
  border-radius: var(--raio-p);
  font-size: 15px;
  color: var(--texto);
  white-space: pre-wrap;
}

.audio__aviso {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--texto-suave);
}

.audio__aviso p {
  margin: 0 0 8px;
}

.audio__aviso--erro {
  color: var(--erro);
}

.gravando {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  background: var(--azul);
  color: var(--branco);
  border-radius: var(--raio);
  padding: 14px 14px 14px 18px;
}

.gravando--preparando {
  font-weight: 600;
}

.gravando__ponto {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--laranja);
  animation: pulsar 1.2s ease-in-out infinite;
}

@keyframes pulsar {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(240, 138, 93, 0.6);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(240, 138, 93, 0);
  }
}

.gravando__texto {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  display: flex;
  gap: 8px;
}

.gravando__tempo {
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
}

.gravando__nivel {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 24px;
  --nivel: 0;
  margin-right: auto;
}

.gravando__nivel i {
  display: block;
  width: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.85);
  height: calc(5px + var(--nivel) * 19px);
  transition: height 0.08s;
}

.gravando__nivel i:nth-child(2),
.gravando__nivel i:nth-child(4) {
  height: calc(5px + var(--nivel) * 13px);
}

.gravando__nivel i:nth-child(1),
.gravando__nivel i:nth-child(5) {
  height: calc(4px + var(--nivel) * 8px);
}

.gravando .botao--claro {
  min-height: 44px;
  padding: 0 16px;
  font-size: 15px;
}

/* ---------- Lista de perguntas ---------- */

.indice__resumo {
  font-size: 17px;
}

.indice__acoes {
  padding-bottom: 8px;
}

.indice__bloco,
.revisao__bloco {
  margin-top: 30px;
}

.indice__titulo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 10px;
  font-family: var(--fonte-titulo);
  font-weight: 800;
  font-size: 19px;
  color: var(--azul);
}

.indice__titulo span {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--texto-suave);
}

.indice__lista {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.indice__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--raio-m);
  border: 1.5px solid var(--nevoa);
  text-decoration: none;
  color: var(--texto);
  transition: border-color 0.15s, background 0.15s;
}

.indice__item:hover {
  border-color: var(--nevoa-forte);
  background: var(--fundo-cinza);
}

.indice__item.is-aqui {
  border-color: var(--azul);
}

.indice__status {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--nevoa-forte);
  display: grid;
  place-items: center;
}

.is-feita .indice__status {
  background: var(--azul);
  border-color: var(--azul);
  color: var(--branco);
}

.indice__status .ic {
  width: 15px;
  height: 15px;
  stroke-width: 2.8;
}

.indice__texto {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.indice__pergunta {
  font-weight: 600;
  line-height: 1.4;
}

.indice__estado {
  font-size: 13.5px;
  color: var(--texto-suave);
}

.is-aqui .indice__estado {
  color: var(--azul);
  font-weight: 600;
}

.indice__seta {
  color: var(--texto-suave);
  width: 18px;
  height: 18px;
}

.indice__fim {
  margin-top: 30px !important;
}

/* ---------- Revisão ---------- */

.revisao__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--raio-m);
  background: var(--fundo-cinza);
  text-decoration: none;
  color: var(--texto);
  transition: background 0.15s;
}

.revisao__item + .revisao__item {
  margin-top: 8px;
}

.revisao__item:hover {
  background: var(--nevoa);
}

.revisao__item.is-vazia {
  background: var(--branco);
  border: 1.5px dashed var(--nevoa-forte);
}

.revisao__num {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--azul);
  color: var(--branco);
  display: grid;
  place-items: center;
  font-family: var(--fonte-titulo);
  font-weight: 800;
  font-size: 13px;
}

.is-vazia .revisao__num {
  background: var(--branco);
  color: var(--azul);
  box-shadow: inset 0 0 0 2px var(--nevoa-forte);
}

.revisao__texto {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.revisao__pergunta {
  font-weight: 600;
  line-height: 1.4;
}

.revisao__resposta {
  font-size: 14.5px;
  color: var(--texto-suave);
  overflow-wrap: anywhere;
}

.is-vazia .revisao__resposta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--azul);
}

.is-vazia .revisao__resposta::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--laranja);
}

.revisao__editar {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--azul);
  padding-top: 3px;
}

.revisao__editar .ic {
  width: 16px;
  height: 16px;
}

/* ---------- Tela final ---------- */

.tela--final .conteudo {
  padding-top: 56px;
  padding-bottom: 56px;
}

.tela--final .texto-rico {
  font-size: 17.5px;
  max-width: 520px;
}

.selo-final {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--azul);
  color: var(--branco);
  display: grid;
  place-items: center;
  position: relative;
}

.selo-final::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--laranja);
  box-shadow: 0 0 0 4px var(--branco);
}

.selo-final .ic {
  width: 42px;
  height: 42px;
  stroke-width: 2.4;
}

.selo-final--erro {
  background: var(--erro);
}

.final__data {
  font-size: 14px;
  color: var(--texto-suave);
}

.assinatura {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding-top: 8px;
}

.assinatura strong {
  display: block;
  font-family: var(--fonte-titulo);
  font-weight: 800;
  color: var(--azul);
}

.assinatura > div > span {
  font-size: 14px;
  color: var(--texto-suave);
}

.final__teste {
  margin-top: 36px !important;
  padding: 18px;
  border-radius: var(--raio);
  background: var(--fundo-cinza);
  font-size: 15px;
  color: var(--texto-suave);
  display: grid;
  justify-items: center;
  gap: 4px;
}

.final__teste p {
  margin: 0 0 8px;
}

/* ---------- Carregando, avisos, janelas ---------- */

.carregando {
  flex: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--texto-suave);
}

.girador {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--nevoa-forte);
  border-top-color: var(--azul);
  animation: girar 0.8s linear infinite;
  flex: none;
}

.girador--p {
  width: 14px;
  height: 14px;
  border-width: 2px;
}

.is-enviando .girador,
.girador--claro {
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: var(--branco);
}

@keyframes girar {
  to {
    transform: rotate(360deg);
  }
}

.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: calc(var(--altura-nav) + 16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(480px, calc(100% - 32px));
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--azul-escuro);
  color: var(--branco);
  padding: 14px 16px;
  border-radius: var(--raio-m);
  box-shadow: var(--sombra-forte);
  font-size: 15px;
  animation: subir 0.25s ease both;
}

.toast--erro {
  background: #5c1612;
}

.toast .ic {
  margin-top: 2px;
}

.toast.is-saindo {
  opacity: 0;
  transition: opacity 0.4s;
}

@keyframes subir {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(23, 30, 42, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  animation: aparecer 0.2s ease both;
}

@keyframes aparecer {
  from {
    opacity: 0;
  }
}

.modal__caixa {
  width: 100%;
  max-width: 500px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  background: var(--branco);
  border-radius: 24px;
  padding: 24px 22px calc(20px + env(safe-area-inset-bottom));
  box-shadow: var(--sombra-forte);
  animation: subirModal 0.25s ease both;
}

@keyframes subirModal {
  from {
    transform: translateY(16px);
  }
}

.modal__titulo {
  margin: 0;
  font-family: var(--fonte-titulo);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.2;
  color: var(--azul);
  outline: none;
}

.modal__corpo {
  margin-top: 12px;
  font-size: 15.5px;
}

.modal__corpo p {
  margin: 0 0 12px;
}

.modal__lista {
  margin: 0 0 14px;
  padding: 12px 14px 12px 32px;
  background: var(--fundo-cinza);
  border-radius: var(--raio-p);
  max-height: 240px;
  overflow-y: auto;
}

.modal__lista li + li {
  margin-top: 6px;
}

.modal__lista--links a {
  color: var(--azul);
  font-weight: 500;
}

.modal__destaque {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--azul);
}

.modal__botoes {
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  margin-top: 18px;
}

.modal__botoes .botao {
  width: 100%;
}

@media (min-width: 560px) {
  .modal {
    align-items: center;
  }

  .modal__caixa {
    padding: 28px;
  }

  .modal__botoes {
    flex-direction: row;
    justify-content: flex-end;
  }

  .modal__botoes .botao {
    width: auto;
  }
}

.cobertura {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  padding: 20px;
}

.cobertura__caixa {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 4px;
  color: var(--texto-suave);
}

.cobertura__caixa strong {
  font-family: var(--fonte-titulo);
  font-size: 20px;
  color: var(--azul);
}

.cobertura__caixa p {
  margin: 0;
}

/* ---------- Telas maiores ---------- */

@media (min-width: 760px) {
  :root {
    --lateral: 32px;
  }

  .conteudo {
    padding-top: 44px;
    padding-bottom: 56px;
  }

  .conteudo > * + * {
    margin-top: 24px;
  }

  .tela--inicio .conteudo {
    padding-top: 64px;
  }

  .tela--transicao .conteudo {
    padding-top: 96px;
  }

  .tela--inicio::before,
  .tela--transicao::before {
    width: 640px;
    height: 640px;
    top: -260px;
    right: -260px;
  }

  .navegacao {
    padding-top: 14px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }

  .cartao {
    padding: 26px 28px;
  }
}

@media (max-width: 520px) {
  .topo__linha {
    gap: 8px;
  }

  .topo__logo {
    width: 100px;
  }

  .status-salvo__texto {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .status-salvo {
    width: 32px;
    justify-content: center;
  }

  .pilula--teste {
    padding: 5px 9px;
    font-size: 10.5px;
  }
}

@media (max-width: 360px) {
  :root {
    --lateral: 16px;
  }

  .botao-perguntas span {
    display: none;
  }

  .botao-perguntas {
    width: 40px;
    padding: 0;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
