/**
 * boas-vindas.css — a tela que aparece uma vez só (/app/boas-vindas).
 *
 * Tela cheia, sem a casca da área: fundo creme com manchas suaves de bordô e
 * ouro, dois aros dourados ao fundo, um cartão central com o passo da vez e,
 * no fim, pétalas caindo. Toda animação respeita "reduzir movimento".
 * Cores só pelos tokens (claro e escuro), como o resto da plataforma.
 */

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal; font-style: normal; line-height: 1;
  letter-spacing: normal; text-transform: none; display: inline-block;
  white-space: nowrap; direction: ltr; -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  font-size: 20px; flex-shrink: 0; overflow: hidden; width: 1em; height: 1em;
}
.oculto-visual { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

body.bv {
  min-height: 100dvh; margin: 0; background: var(--fundo); color: var(--texto);
  display: grid; grid-template-rows: auto 1fr; overflow-x: hidden;
}

/* ─── Fundo ─────────────────────────────────────────────────────────────── */
.bv-fundo { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bv-mancha { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.bv-mancha.um { width: 520px; height: 520px; left: -160px; top: -180px; background: color-mix(in srgb, var(--p-500) 22%, transparent); }
.bv-mancha.dois { width: 460px; height: 460px; right: -140px; top: 10%; background: color-mix(in srgb, var(--ouro-400) 30%, transparent); }
.bv-mancha.tres { width: 420px; height: 420px; left: 30%; bottom: -220px; background: color-mix(in srgb, var(--p-300) 35%, transparent); }
.bv-aros { position: absolute; right: 4%; bottom: 6%; width: min(38vw, 360px); color: var(--ouro-500); opacity: .28; }
.bv-ramo { position: absolute; left: -20px; top: 18%; width: min(30vw, 260px); color: var(--p-500); opacity: .12; }

/* ─── Topo ──────────────────────────────────────────────────────────────── */
.bv-topo {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: max(16px, env(safe-area-inset-top)) clamp(16px, 4vw, 40px) 8px;
}
.bv-marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--p-500);
  font-family: var(--fonte-display); font-size: 20px; font-weight: 600; }
.bv-pular { background: none; border: 0; color: var(--texto-soft); font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; padding: 8px 10px; border-radius: 999px; }
.bv-pular:hover { color: var(--p-500); background: color-mix(in srgb, var(--p-500) 8%, transparent); }

/* ─── Palco e cartão ────────────────────────────────────────────────────── */
.bv-palco { position: relative; z-index: 1; display: grid; place-items: start center; padding: 8px 16px 32px; }
@media (min-height: 760px) { .bv-palco { place-items: center; } }

.bv-cartao {
  width: min(100%, 620px); box-sizing: border-box; position: relative; /* sem overflow: a lista de cidades pode passar da borda */
  background: color-mix(in srgb, var(--superficie) 88%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--borda-ouro); border-radius: 28px; box-shadow: var(--sombra-xl);
  padding: clamp(22px, 5vw, 44px) clamp(18px, 5vw, 48px) clamp(18px, 4vw, 32px);
}
.bv-cartao::before { /* filete dourado no alto */
  content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 2px; background: var(--filete-ouro);
}

.bv-progresso { display: flex; gap: 5px; margin-bottom: clamp(18px, 4vw, 28px); }
.bv-progresso i { flex: 1; height: 4px; border-radius: 4px; background: var(--borda-forte); transition: background .35s ease, flex .35s ease; }
.bv-progresso i.feito { background: var(--ouro-400); }
.bv-progresso i.agora { background: var(--p-500); flex: 2.4; }

.bv-passo { display: grid; gap: 14px; animation: bv-entrar .42s cubic-bezier(.2, .8, .2, 1); }
.bv-passo[hidden] { display: none; }
@keyframes bv-entrar { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.bv-sobre { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ouro-700); }
.bv-titulo { margin: 0; font-family: var(--fonte-display); font-weight: 600; color: var(--p-500);
  font-size: clamp(28px, 6vw, 38px); line-height: 1.15; outline: none; }
.bv-texto { margin: 0; font-size: 16px; line-height: 1.65; color: var(--texto-soft); }
.bv-texto strong { color: var(--texto); }
.bv-nota { margin: 0; font-size: 13px; color: var(--texto-muted); }

/* Medalha: círculo bordô com o ícone e um aro dourado em volta */
.bv-medalha {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--p-500), color-mix(in srgb, var(--p-500) 60%, var(--p-300)));
  color: var(--p-texto); box-shadow: 0 0 0 5px var(--superficie), 0 0 0 6px var(--ouro-400), 0 14px 28px -10px color-mix(in srgb, var(--p-500) 60%, transparent);
  margin-bottom: 4px;
}
.bv-medalha .material-symbols-outlined { font-size: 30px; font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }
.bv-medalha.grande { width: 84px; height: 84px; justify-self: center; }
.bv-medalha.grande .material-symbols-outlined { font-size: 40px; }

.bv-aneis { width: 132px; margin: 0 0 4px -6px; animation: bv-flutuar 5s ease-in-out infinite; }
@keyframes bv-flutuar { 50% { transform: translateY(-5px) rotate(-2deg); } }

.bv-lista-leve { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 8px; }
.bv-lista-leve li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px;
  background: color-mix(in srgb, var(--p-500) 5%, var(--superficie)); border: 1px solid var(--borda); font-weight: 600; font-size: 14px; }
.bv-lista-leve .material-symbols-outlined { color: var(--p-500); }

/* ─── Campos ────────────────────────────────────────────────────────────── */
.bv-campo { display: grid; gap: 6px; position: relative; }
.bv-campo > span, .bv-campo > label > span { font-size: 13px; font-weight: 700; color: var(--texto-soft); }
.bv-campo small { font-weight: 500; color: var(--texto-muted); }
.bv-campo .input { min-height: 50px; font-size: 16px; border-radius: 14px; }

.bv-nomes { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 12px; }
.bv-e { font-family: var(--fonte-display); font-style: italic; font-size: 40px; color: var(--ouro-500); line-height: 50px; }
@media (max-width: 480px) {
  .bv-nomes { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .bv-e { font-size: 30px; line-height: 1; text-align: center; }
}

.bv-marcar { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.bv-marcar input { width: 20px; height: 20px; accent-color: var(--p-500); }
.bv-contagem { margin: 0; display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 8px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--ouro-400) 18%, var(--superficie)); color: var(--ouro-900, var(--texto)); font-weight: 700; font-size: 14px; }
.bv-contagem[hidden] { display: none; }

.bv-sugestoes { position: absolute; z-index: 5; top: 100%; left: 0; right: 0; margin: 4px 0 0; padding: 6px; list-style: none;
  background: var(--superficie); border: 1px solid var(--borda-forte); border-radius: 14px; box-shadow: var(--sombra-lg); max-height: 260px; overflow-y: auto; }
.bv-sugestoes[hidden] { display: none; }
.bv-sugestoes button { width: 100%; display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 0; border-radius: 10px;
  background: none; font: inherit; color: var(--texto); cursor: pointer; text-align: left; }
.bv-sugestoes button:hover, .bv-sugestoes button[aria-selected="true"] { background: var(--p-100); color: var(--p-600); }
.bv-sugestoes .uf { color: var(--texto-muted); font-weight: 700; font-size: 13px; }

.bv-numero { display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.bv-numero-valor { width: 4.2ch; border: 0; background: none; text-align: right; color: var(--p-500);
  font-family: var(--fonte-display); font-size: clamp(52px, 12vw, 72px); font-weight: 600; padding: 0; -moz-appearance: textfield; }
.bv-numero-valor::-webkit-outer-spin-button, .bv-numero-valor::-webkit-inner-spin-button { -webkit-appearance: none; }
.bv-numero-valor:focus { outline: none; border-bottom: 2px solid var(--ouro-400); }
.bv-numero span { font-size: 18px; font-weight: 600; color: var(--texto-soft); }
.bv-regua { width: 100%; accent-color: var(--p-500); height: 28px; }

.bv-fichas { display: flex; flex-wrap: wrap; gap: 8px; }
.bv-fichas button { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--borda-forte); background: var(--superficie); color: var(--texto); transition: all .2s ease; }
.bv-fichas button:hover { border-color: var(--p-500); color: var(--p-500); }
.bv-fichas button[aria-pressed="true"] { background: var(--p-500); border-color: var(--p-500); color: var(--p-texto); }

.bv-dinheiro { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; }
.bv-dinheiro > span { padding: 0 12px; height: 50px; display: grid; place-items: center; font-weight: 700; color: var(--texto-soft);
  border: 1px solid var(--borda-forte); border-right: 0; border-radius: 14px 0 0 14px; background: var(--superficie-2); }
.bv-dinheiro .input { border-radius: 0 14px 14px 0; }

/* Prévia da divisão do orçamento */
.bv-divisao { display: grid; gap: 10px; padding: 16px; border-radius: 18px; border: 1px dashed var(--borda-ouro);
  background: color-mix(in srgb, var(--ouro-400) 7%, var(--superficie)); }
.bv-divisao[hidden] { display: none; }
.bv-divisao h3 { margin: 0; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.bv-divisao h3 .material-symbols-outlined { color: var(--ouro-500); }
.bv-divisao ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bv-divisao li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-size: 14px; }
.bv-divisao li b { font-variant-numeric: tabular-nums; }
.bv-divisao li i { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--borda); overflow: hidden; }
.bv-divisao li i span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--p-500), var(--p-300)); }
.bv-divisao p { margin: 0; font-size: 13px; color: var(--texto-soft); line-height: 1.5; }

/* ─── Tour ──────────────────────────────────────────────────────────────── */
.bv-ilustracao {
  border-radius: 22px; padding: clamp(18px, 4vw, 28px); margin-bottom: 6px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--p-500) 90%, black), var(--p-500) 55%, color-mix(in srgb, var(--p-500) 55%, var(--ouro-400)));
  display: grid; place-items: center; min-height: 190px; position: relative; overflow: hidden;
}
.bv-ilustracao::after { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; right: -80px; top: -90px;
  border: 1.5px solid color-mix(in srgb, var(--ouro-300) 55%, transparent); }
.bv-mock { width: min(100%, 330px); background: var(--superficie); color: var(--texto); border-radius: 16px; padding: 14px 16px;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .45); display: grid; gap: 10px; font-size: 13px; position: relative; z-index: 1;
  animation: bv-subir .6s .1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes bv-subir { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.bv-mock b { font-weight: 700; }
.bv-mock small { color: var(--texto-muted); font-size: 12px; }
.bv-mock-topo { display: flex; justify-content: space-between; align-items: baseline; }
.bv-mock-topo i { font-style: normal; color: var(--texto-muted); font-size: 12px; }
.bv-mock-barra { height: 6px; border-radius: 6px; background: var(--borda); overflow: hidden; }
.bv-mock-barra span { display: block; height: 100%; background: var(--ouro-400); }
.bv-mock-destaque { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: var(--p-100); color: var(--p-600); }
.bv-mock-destaque div { display: grid; }
.bv-mock-passos { display: flex; gap: 6px; }
.bv-mock-passos i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--borda-forte); }
.bv-mock-passos i.feito { background: var(--ouro-400); border-color: var(--ouro-400); }
.bv-mock-passos i.agora { border-color: var(--p-500); background: var(--p-200); }
.bv-mock-pilha { display: flex; gap: 3px; height: 12px; }
.bv-mock-pilha span { border-radius: 6px; }
.pago { background: var(--p-500); } .fechado { background: var(--ouro-400); } .livre { background: var(--borda-forte); }
.bv-mock-legenda { display: flex; gap: 10px; align-items: center; color: var(--texto-soft); font-size: 12px; flex-wrap: wrap; }
.bv-mock-legenda i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: -5px; }
.bv-mock-dica { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: color-mix(in srgb, var(--ouro-400) 16%, var(--superficie)); }
.bv-mock-dica div { display: grid; }
.bv-mock-dica .material-symbols-outlined { color: var(--ouro-700); }
.bv-mock-perfil { display: flex; gap: 10px; align-items: center; }
.bv-mock-perfil div { display: grid; }
.bv-mock-perfil small { display: inline-flex; align-items: center; gap: 3px; }
.bv-mock-perfil small .material-symbols-outlined { font-size: 14px; color: var(--ouro-500); font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 20; }
.bv-mock-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--p-200); color: var(--p-600); font-weight: 700; }
.bv-mock-etapas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bv-mock-etapas > span { display: grid; justify-items: center; gap: 4px; padding: 8px 4px; border-radius: 10px; background: var(--superficie-2); font-weight: 600; font-size: 12px; }
.bv-mock-etapas .material-symbols-outlined { color: var(--p-500); }
.bv-mock-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bv-mock-lista li { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.bv-mock-lista li .material-symbols-outlined { color: var(--sucesso); font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }
.bv-mock-lista li.espera .material-symbols-outlined { color: var(--ouro-500); }

/* ─── Pronto ────────────────────────────────────────────────────────────── */
.bv-pronto { text-align: center; justify-items: center; position: relative; }
.bv-resumo { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; width: 100%; text-align: left; }
.bv-resumo li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--borda);
  background: var(--superficie); font-size: 14px; }
.bv-resumo li .material-symbols-outlined { color: var(--sucesso); font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }
.bv-resumo li.falta .material-symbols-outlined { color: var(--texto-muted); font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24; }
.bv-resumo li div { display: grid; }
.bv-resumo li small { color: var(--texto-muted); }

.bv-petalas { position: absolute; inset: -40px 0 0; pointer-events: none; overflow: hidden; }
.bv-petalas i { position: absolute; top: -20px; width: 12px; height: 16px; border-radius: 80% 0 80% 0; opacity: 0;
  background: linear-gradient(135deg, var(--p-300), var(--p-500)); animation: bv-cair 3.6s ease-in forwards; }
.bv-petalas i:nth-child(3n) { background: linear-gradient(135deg, var(--ouro-300), var(--ouro-500)); width: 9px; height: 12px; }
.bv-petalas i:nth-child(1) { left: 6%; animation-delay: .0s; } .bv-petalas i:nth-child(2) { left: 16%; animation-delay: .5s; }
.bv-petalas i:nth-child(3) { left: 26%; animation-delay: .2s; } .bv-petalas i:nth-child(4) { left: 36%; animation-delay: .8s; }
.bv-petalas i:nth-child(5) { left: 46%; animation-delay: .35s; } .bv-petalas i:nth-child(6) { left: 56%; animation-delay: 1s; }
.bv-petalas i:nth-child(7) { left: 64%; animation-delay: .15s; } .bv-petalas i:nth-child(8) { left: 72%; animation-delay: .65s; }
.bv-petalas i:nth-child(9) { left: 80%; animation-delay: .45s; } .bv-petalas i:nth-child(10) { left: 88%; animation-delay: .9s; }
.bv-petalas i:nth-child(11) { left: 94%; animation-delay: .25s; } .bv-petalas i:nth-child(12) { left: 50%; animation-delay: 1.2s; }
@keyframes bv-cair {
  0% { opacity: 0; transform: translate(0, 0) rotate(0); }
  10% { opacity: .9; }
  100% { opacity: 0; transform: translate(40px, 420px) rotate(320deg); }
}

/* ─── Ações ─────────────────────────────────────────────────────────────── */
.bv-acoes { display: flex; align-items: center; gap: 10px; margin-top: clamp(22px, 4vw, 30px); padding-top: 18px; border-top: 1px solid var(--borda); }
.bv-acoes [data-avancar] { margin-left: auto; min-width: 150px; justify-content: center; border-radius: 999px; }
.bv-acoes .btn-fantasma { border-radius: 999px; }
.bv-acoes [hidden] { display: none !important; }
.bv-erro-campo { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--erro-fundo); color: var(--erro-texto); font-size: 14px; }
.bv-erro-campo[hidden] { display: none; }
@media (max-width: 520px) {
  .bv-acoes { flex-wrap: wrap; }
  .bv-acoes [data-avancar] { order: -1; width: 100%; margin-left: 0; }
  .bv-acoes .bv-saltar { margin-left: auto; }
}

/* ─── Carregando / erro ─────────────────────────────────────────────────── */
.bv-carregando, .bv-erro { display: grid; justify-items: center; gap: 14px; text-align: center; color: var(--texto-soft); margin-top: 18vh; }
.bv-carregando[hidden], .bv-erro[hidden] { display: none; }
.bv-coracao .material-symbols-outlined { font-size: 44px; width: 44px; height: 44px; color: var(--p-500);
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; animation: bv-bater 1.1s ease-in-out infinite; }
@keyframes bv-bater { 30% { transform: scale(1.18); } 60% { transform: scale(.96); } }

@media (prefers-reduced-motion: reduce) {
  .bv-passo, .bv-mock, .bv-aneis, .bv-coracao .material-symbols-outlined { animation: none; }
  .bv-petalas { display: none; }
}

/* Pétalas por trás do texto; itens do resumo com atalho para preencher */
.bv-pronto > *:not(.bv-petalas) { position: relative; z-index: 1; }
.bv-petalas { z-index: 0; }
.bv-resumo li div { flex: 1; }
.bv-resumo-acao { flex-shrink: 0; font-size: 13px; font-weight: 700; color: var(--p-500); text-decoration: none; padding: 6px 12px;
  border-radius: 999px; border: 1px solid color-mix(in srgb, var(--p-500) 35%, transparent); }
.bv-resumo-acao:hover { background: var(--p-100); }
@media (max-width: 400px) {
  .bv-resumo li { flex-wrap: wrap; }
  .bv-resumo-acao { margin-left: 32px; }
}
