/* CartaViva — estilos das páginas de aplicação (editor, área do cliente, admin)
   A paleta vem do Manual de Identidade: dourado, vermelho, preto e creme.
   A landing usa marca.css + home.css; estas páginas herdam daqui. */
:root {
  --bg: #F8F6F2; --card: #ffffff; --ink: #0B0B0B; --muted: #6E6E73; --line: #E7E1D6;
  --brand: #B8912E; --brand-2: #8B1E1E; --soft: #F7EFDC; --gold: #D4AF37;
  --ok: #2f7a4a; --bad: #b3261e;
  --r: 16px; --shadow: 0 1px 2px rgba(11,11,11,.04), 0 12px 34px rgba(11,11,11,.08);
  --serif: "Playfair Display", Georgia, serif; --sans: "Montserrat", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); background: var(--bg); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .4em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.center { text-align: center; }

.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.logo { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.logo i { font-style: normal; color: var(--brand); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none;
  background: var(--brand); color: #fff; font: 600 15px var(--sans); letter-spacing: .02em; padding: 14px 26px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(212,175,55,.30); transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); background: var(--brand-2); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { background: #fff; }
.btn.sm { padding: 9px 16px; font-size: 14px; }
.btn.block { width: 100%; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--brand-2); }
.pill.ok { background: #e6f3ea; color: var(--ok); } .pill.warn { background: #fff4d6; color: #7a5a00; } .pill.bad { background: #fde8e6; color: var(--bad); }

/* formulários */
label.f { display: block; font-weight: 600; font-size: 14px; margin: 16px 0 6px; }
input[type=text], input[type=tel], input[type=date], input[type=url], input[type=password], textarea, select {
  width: 100%; padding: 13px 14px; font: 16px var(--sans); color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 12px; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(200,54,95,.12); }
textarea { min-height: 160px; resize: vertical; }
.ajuda { font-size: 13px; color: var(--muted); margin-top: 6px; }
.erro { color: var(--bad); font-size: 14px; min-height: 1.3em; margin: 8px 0 0; }

/* ---------- landing ---------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 40px 0 72px; }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); }
.hero h1 em { font-style: italic; color: var(--brand); }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 520px; margin: 0 0 28px; }
.hero .acoes { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .nota { font-size: 14px; color: var(--muted); margin-top: 18px; }
.telefone { justify-self: center; width: min(320px, 82vw); aspect-ratio: 9 / 19; border-radius: 44px; padding: 12px; background: #1d1719;
  box-shadow: 0 30px 80px rgba(34,26,29,.25), inset 0 0 0 2px #3a3033; position: relative; }
.telefone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; background: #1d1719; border-radius: 0 0 14px 14px; z-index: 2; }
.telefone iframe { width: 100%; height: 100%; border: 0; border-radius: 34px; background: #fff; }

.secao { padding: 72px 0; }
.secao > .wrap > h2, .titulo-secao { font-size: clamp(30px, 4vw, 44px); }
.grelha { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, 1fr); } .g5 { grid-template-columns: repeat(5, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.tipo { cursor: pointer; transition: transform .2s, border-color .2s; text-decoration: none; color: inherit; }
.tipo:hover { transform: translateY(-3px); border-color: var(--brand); }
.tipo .ic { font-size: 28px; }
.tipo h3 { font-size: 20px; margin: 10px 0 6px; }
.tipo p { margin: 0; color: var(--muted); font-size: 15px; }
.passo .n { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; margin-bottom: 12px; }
.passo h3 { font-size: 20px; }
.passo p { margin: 0; color: var(--muted); }
.faixa { background: #221a1d; color: #fbf8f6; border-radius: 28px; padding: 56px 32px; text-align: center; }
.faixa h2 { font-size: clamp(28px, 4vw, 42px); }
.faixa p { color: #d7cbcf; max-width: 560px; margin: 0 auto 26px; }

.planos { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 20px; justify-content: center; margin-top: 28px; }
.plano { position: relative; display: flex; flex-direction: column; }
.plano.destaque { border: 2px solid var(--brand); }
.plano .fita { position: absolute; top: -13px; left: 24px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.plano .preco { font: 600 44px var(--serif); margin: 6px 0 2px; }
.plano .preco small { font: 500 16px var(--sans); color: var(--muted); }
.plano ul { list-style: none; padding: 0; margin: 16px 0 24px; flex: 1; }
.plano li { padding: 7px 0 7px 28px; position: relative; }
.plano li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.demos { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 22px 0; }
.demos button { border: 1px solid var(--line); background: #fff; padding: 10px 18px; border-radius: 999px; font: 600 14px var(--sans); cursor: pointer; }
.demos button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 10px 0 0; }
footer.rodape { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- assistente (criar) ---------- */
.assistente { max-width: 640px; margin: 8px auto 64px; }
.progresso { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 10px 0 26px; }
.progresso i { display: block; height: 100%; background: var(--brand); transition: width .35s ease; }
.passo-t h2 { font-size: 32px; }
.opcoes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.opcao { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, background .15s; }
.opcao:hover { border-color: #d9b7c2; }
.opcao.on { border-color: var(--brand); background: var(--soft); }
/* Era font-size porque era um emoji. Agora e um SVG, e quem manda e a cor:
   herda-a por currentColor. O tamanho vem no proprio SVG. */
.opcao .ic { display: inline-flex; line-height: 0; color: var(--brand); }
.opcao.on .ic { color: var(--ink); }
.opcao b { display: block; } .opcao span { font-size: 14px; color: var(--muted); }
.nav-passos { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.fotos-grelha { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 16px; }
.foto-mini { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--line); }
.foto-mini img { width: 100%; height: 100%; object-fit: cover; }
.foto-mini button { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: 15px; }
.foto-add { aspect-ratio: 1; border: 2px dashed #dcc7ce; border-radius: 12px; display: grid; place-items: center; text-align: center; cursor: pointer; color: var(--muted); font-size: 13px; background: #fff; }
.foto-add b { display: block; font-size: 26px; color: var(--brand); }
.segmentado { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.segmentado button { flex: 1; min-width: 120px; padding: 12px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; font: 600 14px var(--sans); cursor: pointer; }
.segmentado button.on { border-color: var(--brand); background: var(--soft); color: var(--brand-2); }
.aviso { background: #fff7e0; border: 1px solid #f1dc9e; color: #6d5200; padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-top: 14px; }
.plano-opcao { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plano-opcao .v { font: 600 22px var(--serif); white-space: nowrap; }

/* ---------- área do cliente ---------- */
.ref { font: 700 30px var(--serif); letter-spacing: .06em; text-align: center; background: var(--soft); color: var(--brand-2); border-radius: 14px; padding: 14px; }
.linha-pag { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.linha-pag:last-child { border: 0; }
.linha-pag .ic { font-size: 22px; }
.copiar { display: flex; gap: 8px; } .copiar input { flex: 1; min-width: 0; }
.qr { width: 200px; margin: 0 auto; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }

/* ---------- admin ---------- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabela { overflow-x: auto; }

/* ---------- pré-visualização ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(20,14,16,.7); display: grid; place-items: center; padding: 16px; }
.overlay .fechar { position: fixed; top: 14px; right: 14px; z-index: 60; }
.overlay .telefone { width: min(380px, 92vw); height: min(800px, 86vh); aspect-ratio: auto; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 16px; }
  .g3, .g4 { grid-template-columns: 1fr 1fr; } .g5 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .g3, .g4, .g5, .planos, .opcoes { grid-template-columns: 1fr; }
  .secao { padding: 48px 0; }
  .card { padding: 20px; }
  .faixa { padding: 40px 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* --------------------------------------------------------------------------
   Escolha de estilo (passo "template")
   Cada cartão mostra a paleta aplicada a uma miniatura da experiência, para
   a pessoa perceber o resultado sem ter de abrir a pré-visualização.
   -------------------------------------------------------------------------- */
.temas { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .temas { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .temas { grid-template-columns: repeat(4, 1fr); } }

.tema {
  position: relative; display: grid; gap: 6px; padding: 10px; cursor: pointer; text-align: left;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r);
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.tema:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tema.on { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.18); }
.tema:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.tema-amostra {
  display: block; position: relative; aspect-ratio: 4/3; border-radius: 10px;
  border: 1px solid; overflow: hidden; padding: 12px 10px;
}
.tema-barra { display: block; width: 46%; height: 7px; border-radius: 4px; margin-bottom: 9px; }
.tema-linha { display: block; height: 4px; border-radius: 3px; margin-bottom: 5px; }
.tema-linha.curta { width: 62%; }
.tema-pontos { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 4px; }
.tema-pontos i { width: 9px; height: 9px; border-radius: 50%; display: block; }

.tema-nome { font-family: var(--serif); font-size: 15px; font-weight: 600; }
.tema-fam { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tema-selo {
  position: absolute; top: 8px; right: 8px; background: var(--gold); color: #1A1405;
  font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 999px;
}
@media (hover: none), (pointer: coarse) { .tema { min-height: 44px; } }

/* Botão destrutivo — só no painel de administração.
   Discreto em repouso para não convidar ao clique, vermelho ao passar. */
.btn.perigo {
  background: transparent; color: var(--bad); border: 1px solid rgba(179,38,30,.35);
  box-shadow: none;
}
.btn.perigo:hover { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn.perigo:disabled { opacity: .5; }

/* Lista de aberturas por avisar (painel de administração) */
.linha-abertura {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.linha-abertura:last-child { border-bottom: 0; padding-bottom: 0; }

/* Aviso ao cliente de que a experiência já foi aberta */
.aviso-aberta {
  display: flex; gap: 12px; align-items: center;
  background: var(--soft); border: 1px solid var(--gold); border-radius: var(--r);
  padding: 14px 16px; margin: 4px 0 8px;
}
.aviso-aberta__ic { font-size: 26px; line-height: 1; }

/* Painel de confirmações de presença (área do cliente) */
.rsvp-painel { background: var(--card); border: 1px solid var(--gold); border-radius: var(--r);
  padding: 18px; margin: 16px 0; }
.rsvp-numeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.rsvp-numeros div { background: var(--soft); border-radius: 12px; padding: 12px 8px; text-align: center; }
.rsvp-numeros b { display: block; font: 600 26px var(--serif); line-height: 1; }
.rsvp-numeros span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rsvp-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 320px; overflow-y: auto; }
.rsvp-lista li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0;
  border-bottom: 1px solid var(--line); }
.rsvp-lista li:last-child { border-bottom: 0; }
.rsvp-sinal { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; flex: none; }
.rsvp-sinal.vai { background: #e6f4ea; color: var(--ok); }
.rsvp-sinal.nao { background: #fdecea; color: var(--bad); }

/* ---------- escolha do plano (passo 3) ---------- */
.planos-esc { display: grid; gap: 12px; }
@media (min-width: 720px) { .planos-esc { grid-template-columns: 1fr 1fr; } }
.plano-cartao { text-align: left; padding: 18px; border: 1.5px solid var(--line); border-radius: 16px;
  background: #fff; cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, background .15s; }
.plano-cartao:hover { border-color: #d9c48a; }
.plano-cartao.on { border-color: var(--brand); background: var(--soft); }
.plano-topo { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.plano-topo b { font: 600 18px var(--serif); }
.plano-preco { font: 600 20px var(--serif); color: var(--brand-2); white-space: nowrap; }
.plano-dir { margin: 4px 0 10px; font-size: 13px; color: var(--muted); }
.plano-itens { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.6; }
.plano-itens li::marker { color: var(--gold); }

/* ---------- listas escritas pelo cliente (programa, vozes, capítulos) ---------- */
.lista-campos { display: grid; gap: 10px; margin-bottom: 12px; }
.linha { display: grid; gap: 8px; grid-template-columns: 1fr auto; align-items: start;
  padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.linha > :not(.linha-rm) { grid-column: 1; margin: 0; }
.linha-rm { grid-column: 2; grid-row: 1 / -1; align-self: center; width: 34px; height: 34px;
  border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer;
  color: var(--muted); font-size: 14px; line-height: 1; }
.linha-rm:hover { border-color: var(--bad); color: var(--bad); }

/* ---------- mapa de cenas ---------- */
.cenas-mapa { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.9; }
.cenas-mapa li::marker { color: var(--gold); font-variant-numeric: tabular-nums; }

/* ---------- ocasiões menos prováveis, dobradas ---------- */
.mais-ocasioes { margin-top: 16px; }
.mais-ocasioes > summary { cursor: pointer; font-size: 14px; color: var(--muted);
  padding: 12px 0; list-style: none; display: flex; align-items: center; gap: 8px; }
.mais-ocasioes > summary::-webkit-details-marker { display: none; }
.mais-ocasioes > summary::before { content: "+"; font-size: 17px; line-height: 1;
  width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; }
.mais-ocasioes[open] > summary::before { content: "−"; }
.mais-ocasioes > summary:hover { color: var(--ink); }

/* ---------- legendas das fotografias ---------- */
.legendas { margin-top: 18px; border-top: 1px solid var(--line); }
.legendas > summary { cursor: pointer; padding: 14px 0; font-size: 15px; font-weight: 600;
  list-style: none; display: flex; align-items: center; gap: 8px; }
.legendas > summary::-webkit-details-marker { display: none; }
.legendas > summary::before { content: "+"; font-size: 17px; line-height: 1;
  width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; font-weight: 400; }
.legendas[open] > summary::before { content: "\2212"; }
.legendas-lista { display: grid; gap: 10px; }
.legenda-linha { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start;
  padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.legenda-linha img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.legenda-linha > div { display: grid; gap: 8px; }

/* ---------- gravação de voz em cada mensagem ---------- */
.linha-audio { grid-column: 1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.audio-add { display: inline-block; padding: 9px 14px; border: 1px dashed var(--line);
  border-radius: 999px; font-size: 13px; color: var(--muted); cursor: pointer; }
.audio-add:hover { border-color: var(--brand); color: var(--ink); }
.audio-ok { font-size: 13px; color: var(--ok); }

/* ---------- estado das cópias de segurança (painel) ---------- */
.aviso-copia { padding: 12px 16px; border-radius: 12px; font-size: 14px;
  margin-bottom: 16px; line-height: 1.5; }
.aviso-copia.bem { background: #eef7f0; border: 1px solid #cfe6d6; color: #24543a; }
.aviso-copia.mau { background: #fdeceb; border: 1px solid #f3c9c5; color: #8a2419; }
.aviso-copia .nota { display: block; opacity: .75; font-size: 13px; margin-top: 2px; }

/* ==========================================================================
   LEGIBILIDADE — editor, área do cliente e painel
   --------------------------------------------------------------------------
   Medido a 375 px. O que se segue veio de medições, não de gosto.
   ========================================================================== */

/* Texto de apoio: era cinzento claro demais sobre branco. */
.muted, .ajuda { color: #5A5A5F; }

/* Texto corrido justificado em todos os ecrãs, por decisão do dono do
   projecto, com os travões que a 37 caracteres por linha são obrigatórios:
   hifenização, mínimo de letras para cortar, e última linha por esticar.
   Ver a nota longa em home.css. */
/* Hifenizacao em todo o texto de apoio. */
.passo-t p, .ajuda, .aviso, .plano-dir, .plano-itens li, .muted {
  hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 6 3 3;
  text-wrap: pretty;
}
/* Justificado so nos blocos largos. A `.ajuda` e os itens dos planos sao
   linhas curtas: justificadas, ficavam com buracos. */
.passo-t p, .aviso, .plano-dir {
  text-align: justify; text-justify: inter-word; text-align-last: left;
}
/* Texto centrado ou de uma linha não se justifica: deformava duas palavras. */
.center .muted, .center .ajuda, .estado .muted { text-align: center; }

/* Foco visível: não havia uma única regra de :focus no projecto.
   `:focus-visible` mostra o contorno a quem navega por teclado, sem o mostrar
   a quem clica com o rato. */
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Campos de texto: o estado de foco também tem de se ver, e a borda sozinha
   não chegava. */
input:focus-visible, textarea:focus-visible {
  border-color: var(--brand);
  outline-offset: 1px;
}

/* ---------- funil do editor (painel) ---------- */
.funil { display: grid; gap: 8px; margin: 16px 0 12px; }
.funil-linha { display: grid; grid-template-columns: 116px 1fr 68px 44px; gap: 10px;
  align-items: center; font-size: 14px; }
.funil-rot { color: var(--muted); }
.funil-barra { height: 24px; border-radius: 6px; background: var(--soft); overflow: hidden; }
.funil-barra span { display: block; height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, var(--gold), var(--brand)); transition: width .4s; }
.funil-n { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.funil-n small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); }
.funil-queda { text-align: right; font-size: 13px; color: var(--bad);
  font-variant-numeric: tabular-nums; }
.funil-fim { padding-top: 10px; border-top: 1px solid var(--line); font-size: 15px; }
@media (max-width: 560px) {
  .funil-linha { grid-template-columns: 92px 1fr 56px 36px; gap: 8px; font-size: 13px; }
}
.funil-linha.saltado { opacity: .45; }
.funil-linha.saltado .funil-barra { background: repeating-linear-gradient(45deg,
  var(--line) 0 6px, transparent 6px 12px); }
.funil-linha.saltado .funil-n { text-align: right; font-weight: 400; }

/* Os icones (ver icones.js) herdam a cor de quem os usa. */
.ic svg, .cv-ic { display: block; flex-shrink: 0; }

/* ==========================================================================
   OS DOIS LINKS DA AREA DO CLIENTE
   --------------------------------------------------------------------------
   Sao parecidos a vista e fazem coisas opostas: um mostra a experiencia, o
   outro deixa edita-la. Confundi-los custa caro, por isso aqui nao se parecem
   nada um com o outro.
   ========================================================================== */

/* O link de enviar: a accao principal. Fundo claro e moldura dourada, para
   nao se confundir com a chave de acesso, que e um aviso. */
.enviar {
  border: 1px solid var(--brand);
  border-radius: 14px;
  padding: 16px;
  background: #fffdf7;
}

/* Enquanto o pagamento nao esta confirmado: nao ha link para enviar, e diz-se. */
.aviso-sem-link { border-style: dashed; }

/* A chave de acesso: moldura de aviso, nao de destaque. */
.chave {
  margin-top: 20px;
  border: 1px solid #e3cfa0;
  background: #fffbf0;
  border-radius: 14px;
  padding: 14px 16px;
}
.chave__topo { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.chave__ic { font-size: 16px; line-height: 1; }
.chave__txt { margin: 0 0 12px; font-size: 14px; line-height: 1.6; color: #6b5a33; }
