/* Micro Crédito (Facio) — jornada do afiliado, celular primeiro (SPEC §3, PLANO Task C5).
   Público leigo: letra grande, botões gordos, um assunto por tela, ícone grande no topo e cor só onde guia o olho.
   Cores só por var(--de-…) (tokens.css e design-system.css). Sem !important. A plataforma do afiliado só tem tema claro. */

/* == CONTÊINERES == */
.mc-jornada, .mc-casa, .mc-embreve {
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  box-sizing: border-box;
  font-family: var(--de-fonte-texto);
  font-size: 18px;
  line-height: 1.55;
  color: var(--de-grafite);
  overflow-wrap: anywhere;
}
.mc-jornada {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 120px);
  background: var(--de-branco);
  border: 1px solid var(--de-borda);
  border-radius: var(--de-raio-card);
  box-shadow: var(--de-shadow-md);
}
.mc-casa, .mc-embreve { display: grid; gap: 16px; }
.mc-embreve { justify-items: center; text-align: center; padding: 32px 16px; background: var(--de-branco); border: 1px solid var(--de-borda); border-radius: var(--de-raio-card); }
.mc-jornada p, .mc-casa p, .mc-embreve p { margin: 0; }

/* == TOPO: "Passo 3 de 9" + barra == */
.mc-topo { display: grid; gap: 8px; padding: 16px 16px 0; }
.mc-casa .mc-topo { padding: 0; grid-template-columns: minmax(0, 1fr); justify-items: start; align-items: center; }
.mc-progresso { font-family: var(--de-fonte-titulo); font-size: 15px; font-weight: 800; letter-spacing: .02em; color: var(--de-laranja-escuro); }
.mc-barra { height: 14px; border-radius: var(--de-raio-pilula); background: var(--de-laranja-claro2); overflow: hidden; }
.mc-barra-cheia { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--de-laranja-principal), var(--de-laranja-hover)); transition: width .5s ease; }
.mc-p1 { width: 12.5%; }
.mc-p2 { width: 25%; }
.mc-p3 { width: 37.5%; }
.mc-p4 { width: 50%; }
.mc-p5 { width: 62.5%; }
.mc-p6 { width: 75%; }
.mc-p7 { width: 87.5%; }
.mc-p8 { width: 100%; }

/* == CORPO DE CADA TELA == */
.mc-corpo { flex: 1 0 auto; display: grid; gap: 16px; align-content: start; padding: 24px 16px 32px; min-width: 0; }
.mc-corpo > * { animation: mc-surge .45s ease both; }
.mc-titulo { margin: 0; font-family: var(--de-fonte-titulo); font-size: 30px; font-weight: 800; line-height: 1.15; letter-spacing: -.035em; color: var(--de-grafite); }
.mc-destaque { font-size: 21px; font-weight: 700; line-height: 1.45; color: var(--de-grafite); }
.mc-kicker {
  justify-self: start;
  padding: 6px 14px;
  border-radius: var(--de-raio-pilula);
  background: var(--de-laranja-principal);
  color: var(--de-grafite);
  font-family: var(--de-fonte-titulo);
  font-size: var(--de-tamanho-rotulo);
  font-weight: var(--de-peso-rotulo);
  letter-spacing: var(--de-espacamento-rotulo);
  text-transform: uppercase;
}
.mc-suave { font-weight: 500; color: var(--de-texto-secundario); }
.mc-aviso {
  padding: 14px 16px;
  border-left: 6px solid var(--de-laranja-principal);
  border-radius: var(--de-raio-controle);
  background: var(--de-laranja-claro);
  color: var(--de-laranja-escuro);
  font-weight: 600;
}
.mc-perfil { font-size: 16px; color: var(--de-texto-secundario); }
.mc-perfil a, .mc-perfil--falta a { display: inline-block; padding: 12px 0; color: var(--de-laranja-escuro); font-weight: 700; }
/* Telefone em falta: aviso amigável que leva ao Meu perfil (fora da lista de dados). */
.mc-perfil--falta { padding: 4px 16px; border: 2px dashed var(--de-laranja-claro4); border-radius: var(--de-raio-controle); background: var(--de-laranja-claro); color: var(--de-laranja-escuro); }

/* == ÍCONE GRANDE NO TOPO (lúdico, cor da marca) == */
.mc-icone {
  justify-self: center;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 32px;
  background: radial-gradient(circle at 30% 25%, var(--de-laranja-claro), var(--de-laranja-claro3));
  color: var(--de-laranja-hover);
  box-shadow: var(--de-sombra-botao);
  animation: mc-pula .7s ease both;
}
.mc-icone--grande { width: 136px; height: 136px; border-radius: 40px; }
.mc-icone-svg { width: 64px; height: 64px; }
.mc-icone--grande .mc-icone-svg { width: 80px; height: 80px; }

/* == TELA 1 "O QUE É": visual, pouco texto (dono 21/10) == */
.mc-hero { position: relative; height: 148px; overflow: hidden; border-radius: var(--de-raio-card); background: radial-gradient(circle at 50% 115%, var(--de-laranja-claro3), var(--de-laranja-claro2) 45%, var(--de-laranja-claro) 80%); }
.mc-hero-celular { position: absolute; left: 50%; bottom: -78px; width: 128px; height: 196px; margin-left: -64px; padding: 9px; box-sizing: border-box; border-radius: 30px; background: var(--de-grafite); box-shadow: var(--de-shadow-md); animation: mc-surge .6s ease both; }
.mc-hero-tela { display: grid; justify-items: center; align-content: start; gap: 8px; height: 100%; padding: 16px 12px; box-sizing: border-box; border-radius: 22px; background: var(--de-branco); }
.mc-hero-ok { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--de-laranja-claro2); color: var(--de-laranja-hover); }
.mc-hero-ok .mc-icone-svg, .mc-hero-raio .mc-icone-svg { width: 30px; height: 30px; }
.mc-hero-pix { font-family: var(--de-fonte-titulo); font-size: 14px; font-weight: 800; line-height: 1.2; color: var(--de-grafite); }
.mc-hero-linha { width: 84%; height: 8px; border-radius: var(--de-raio-pilula); background: var(--de-divisoria); }
.mc-hero-linha--curta { width: 56%; }
.mc-hero-selo { position: absolute; z-index: 1; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: var(--de-raio-pilula); background: var(--de-branco); box-shadow: var(--de-sombra-menu); font-family: var(--de-fonte-titulo); font-size: 14px; font-weight: 800; }
.mc-hero-selo-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--de-laranja-principal); color: var(--de-grafite); }
.mc-hero-selo-ico .mc-icone-svg { width: 20px; height: 20px; }
.mc-hero-raio { position: absolute; right: 16px; bottom: 18px; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--de-laranja-principal); color: var(--de-grafite); box-shadow: var(--de-sombra-botao); animation: mc-pula .7s .25s ease both; }
.mc-chips { margin: 0; padding: 0; list-style: none; }
.mc-lead { margin: 0; font-size: 17px; line-height: 1.45; font-weight: 600; color: var(--de-texto-secundario); }
.mc-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mc-chip { display: grid; align-content: start; gap: 6px; padding: 10px 12px; border-radius: var(--de-raio-card); background: var(--de-marfim); font-size: 15px; font-weight: 700; line-height: 1.3; }
.mc-chip-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--de-laranja-claro2); color: var(--de-laranja-hover); }
.mc-chip-ico .mc-icone-svg { width: 24px; height: 24px; }
[data-mc-tela="novidade"] .mc-corpo { gap: 12px; padding-top: 16px; }
/* ADM: o seletor do vídeo Tutorial fica escondido (a tela saiu); o .field do style.css (display: grid) ganharia do [hidden]. */
[data-mc-videos] .field[hidden] { display: none; }

/* == LISTAS COM MARCA (✓, “, ✗) == */
.mc-lista { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.mc-lista li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--de-raio-controle); background: var(--de-marfim-apoio); border: 1px solid var(--de-divisoria); }
.mc-marca {
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--de-status-contrato-fundo);
  color: var(--de-status-contrato-texto);
  font-weight: 800;
}

/* == VÍDEO EM PÉ COM AUTOPLAY MUDO == */
.mc-video { justify-self: center; display: grid; gap: 8px; width: 100%; max-width: calc(60vh * 9 / 16); }
.mc-video video { display: block; width: 100%; max-height: 60vh; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 24px; background: var(--de-grafite); box-shadow: var(--de-shadow-md); }
.mc-som, .mc-video [data-mc="som"] {
  min-height: 48px;
  padding: 10px 20px;
  border: 2px solid var(--de-laranja-principal);
  border-radius: var(--de-raio-pilula);
  background: var(--de-branco);
  color: var(--de-laranja-escuro);
  font-size: 16px;
  font-weight: 800;
}
.mc-credito { font-size: 12px; line-height: 1.4; color: var(--de-muted); text-align: center; }

/* == LINKS PRONTOS PARA COPIAR == */
.mc-link-caixa { display: grid; gap: 12px; padding: 16px; border: 2px dashed var(--de-laranja-claro4); border-radius: var(--de-raio-card); background: var(--de-laranja-claro); min-width: 0; }
.mc-link, .mc-link-caixa .mc-link {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--de-borda);
  border-radius: var(--de-raio-controle);
  background: var(--de-branco);
  color: var(--de-grafite);
  font-size: 16px;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
}
/* Campo só de leitura: 16px ou mais para o iPhone não dar zoom; e-mail/link longo quebra (ganha do input 14px do style.css). */
.mc-jornada input[readonly], .mc-casa input[readonly] { font-size: 16px; overflow-wrap: anywhere; }
.mc-acoes, .mc-atalhos { display: grid; gap: 12px; }
.mc-espera { display: grid; justify-items: center; gap: 12px; padding: 20px 16px; border-radius: var(--de-raio-card); background: var(--de-marfim); text-align: center; font-weight: 600; }
.mc-espera .mc-icone { width: 88px; height: 88px; border-radius: 28px; }

/* == DADOS PARA PREENCHER == */
.mc-dados { margin: 0; display: grid; gap: 8px; }
.mc-dado { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--de-raio-controle); background: var(--de-marfim-apoio); border: 1px solid var(--de-divisoria); }
.mc-dado dt { font-size: 13px; font-weight: 700; color: var(--de-texto-secundario); text-transform: uppercase; letter-spacing: .06em; }
.mc-dado dd { margin: 0; font-size: 18px; font-weight: 700; }
.mc-preencha { padding: 12px 14px; border-radius: var(--de-raio-controle); background: var(--de-marfim); }

/* == BOTÕES (grandes, laranja; claro = secundário) == */
.mc-botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 14px 22px;
  box-sizing: border-box;
  border: 2px solid var(--de-laranja-principal);
  border-radius: var(--de-raio-pilula);
  background: var(--de-laranja-principal);
  color: var(--de-grafite);
  font-family: var(--de-fonte-titulo);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--de-sombra-botao);
  transition: transform var(--de-transition), background-color var(--de-transition);
}
.mc-botao:hover { background: var(--de-laranja-hover); border-color: var(--de-laranja-hover); filter: none; }
.mc-botao:active { transform: scale(.97); }
.mc-botao--claro { background: var(--de-branco); color: var(--de-laranja-escuro); box-shadow: none; }
.mc-botao--claro:hover { background: var(--de-laranja-claro); color: var(--de-laranja-escuro); }
.mc-botao--pequeno { width: auto; padding: 10px 16px; font-size: 15px; }

/* == RODAPÉ GRUDADO: Voltar / Avançar sempre à mão == */
.mc-nav, .mc-rodape {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--de-branco);
  border-top: 1px solid var(--de-borda);
  border-radius: 0 0 var(--de-raio-card) var(--de-raio-card);
}
.mc-nav .mc-botao { min-height: 56px; }
/* Celular: a barra de baixo do app (.de-bottom-nav, fixa, z-index 40) mede 58,19 px em 390x844. A barra da jornada
   gruda em cima dela (58 px: a barra de baixo, z-index 40, cobre o 0,19 px que sobra, sem fresta). A barra de baixo não usa safe-area, então aqui não se soma o recorte. */
@media (max-width: 767px) {
  .mc-nav, .mc-rodape { bottom: 58px; padding-bottom: 12px; }
}

/* == CARROSSEL DO PASSO A PASSO DA CONTA == */
.mc-carrossel { display: grid; gap: 16px; min-width: 0; }
.mc-etapa {
  justify-self: center;
  padding: 6px 16px;
  border-radius: var(--de-raio-pilula);
  background: var(--de-grafite);
  color: var(--de-branco);
  font-family: var(--de-fonte-titulo);
  font-weight: 800;
}
.mc-cartoes { min-width: 0; }
.mc-cartao { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 16px; border-radius: var(--de-raio-card); background: var(--de-marfim); animation: mc-surge .35s ease both; }
.mc-cartao[hidden] { display: none; }
.mc-cartao-titulo { margin: 0; font-family: var(--de-fonte-titulo); font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.mc-prints { display: flex; justify-content: center; gap: 8px; min-width: 0; max-width: 100%; }
.mc-carrossel img { max-width: 100%; height: auto; }
.mc-print {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  max-height: 60vh;
  object-fit: contain;
  border: 6px solid var(--de-grafite);
  border-radius: 24px;
  background: var(--de-grafite);
  box-shadow: var(--de-shadow-md);
}
.mc-setas { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mc-seta {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  min-height: 56px;
  padding: 0;
  border-radius: 50%;
  background: var(--de-laranja-principal);
  color: var(--de-grafite);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  box-shadow: var(--de-sombra-botao);
}
.mc-pontos { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; min-width: 0; }
.mc-ponto { width: 10px; height: 10px; border-radius: 50%; background: var(--de-laranja-claro3); transition: width .3s ease; }
.mc-ponto--atual { width: 26px; border-radius: var(--de-raio-pilula); background: var(--de-laranja-principal); }

/* == COMO VENDER (frases, objeções, o que não prometer) == */
.mc-bloco { display: grid; gap: 12px; padding: 18px 16px; border: 1px solid var(--de-borda); border-radius: var(--de-raio-card); background: var(--de-branco); min-width: 0; }
.mc-bloco h2 { margin: 0; font-family: var(--de-fonte-titulo); font-size: 21px; font-weight: 800; line-height: 1.25; }
.mc-bloco--aviso { background: var(--de-status-frio-fundo); border-color: var(--de-status-frio-fundo); }
.mc-bloco--aviso h2 { color: var(--de-status-frio-texto); }
.mc-bloco--aviso .mc-lista li { background: var(--de-branco); }
.mc-bloco--aviso .mc-marca { background: var(--de-status-frio-fundo); color: var(--de-status-frio-ponto); }
.mc-lista .mc-objecao { display: grid; gap: 8px; }
.mc-cliente, .mc-resposta { padding: 10px 14px; border-radius: 18px; max-width: 92%; }
.mc-cliente { justify-self: start; background: var(--de-divisoria); border-bottom-left-radius: 4px; }
.mc-resposta { justify-self: end; background: var(--de-laranja-claro2); border-bottom-right-radius: 4px; font-weight: 600; }

/* == PERGUNTAS (sanfona grande) == */
.mc-perguntas { display: grid; gap: 12px; }
.mc-pergunta { padding: 0; border: 1px solid var(--de-borda); border-radius: var(--de-raio-card); background: var(--de-branco); }
.mc-pergunta summary { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; font-weight: 700; list-style: none; }
.mc-pergunta summary::-webkit-details-marker { display: none; }
.mc-pergunta summary::after { content: "+"; margin-left: auto; font-size: 26px; font-weight: 800; color: var(--de-laranja-hover); }
.mc-pergunta[open] summary::after { content: "−"; }
.mc-pergunta[open] { border-color: var(--de-laranja-claro4); background: var(--de-laranja-claro); }
.mc-pergunta p { padding: 0 16px 16px; }

/* == CARD "NOVIDADE" NA TELA DE INÍCIO == */
.mc-card { display: grid; gap: 10px; align-content: start; border-color: var(--de-laranja-claro4); background: var(--de-laranja-claro); }
.mc-card h3 { margin: 0; font-family: var(--de-fonte-titulo); font-size: 22px; font-weight: 800; }
.mc-card-novo {
  justify-self: start;
  padding: 4px 12px;
  border-radius: var(--de-raio-pilula);
  background: var(--de-grafite);
  color: var(--de-branco);
  font-size: var(--de-tamanho-rotulo);
  font-weight: var(--de-peso-rotulo);
  letter-spacing: var(--de-espacamento-rotulo);
  text-transform: uppercase;
}

/* == FOCO VISÍVEL (teclado) == */
.mc-jornada :focus-visible, .mc-casa :focus-visible, .mc-embreve :focus-visible, .mc-card :focus-visible { outline: 3px solid var(--de-laranja-escuro); outline-offset: 3px; }

/* == ANIMAÇÕES LEVES == */
@keyframes mc-surge { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes mc-pula { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .mc-corpo > *, .mc-icone, .mc-cartao, .mc-hero-celular, .mc-hero-raio { animation: none; }
  .mc-barra-cheia, .mc-botao, .mc-ponto { transition: none; }
  .mc-botao:active { transform: none; }
}

/* == COMPUTADOR == */
@media (min-width: 900px) {
  .mc-jornada { max-width: 720px; }
  .mc-casa, .mc-embreve { max-width: 720px; }
  .mc-corpo { padding: 32px 40px 40px; }
  .mc-topo { padding: 24px 40px 0; }
  .mc-nav, .mc-rodape { padding: 16px 40px; }
  .mc-titulo { font-size: 36px; }
  .mc-acoes, .mc-atalhos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mc-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mc-hero { height: 200px; }
  .mc-hero-celular { bottom: -44px; }
  .mc-casa .mc-topo { grid-template-columns: minmax(0, 1fr) auto; }
}
