/* Página pública de um cliente no cartão dos seis estilos (app/card.php). */
:root { --fundo: #f6e7ec; --tinta: #2a1520; color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; background: var(--fundo); color: var(--tinta); font-family: "DM Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--fundo); z-index: 10; }
.aviso-topo { display: flex; align-items: center; justify-content: space-between; gap: .8rem; max-width: 480px; margin: 0 auto; padding: calc(.7rem + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) .2rem max(16px, env(safe-area-inset-left, 0px)); font-size: .82rem; }
.aviso-topo b { font-weight: 750; }
.aviso-topo a { flex: none; display: inline-flex; align-items: center; min-height: 38px; padding: .35rem .9rem; border-radius: 99px; background: var(--tinta); color: var(--fundo); font-weight: 700; text-decoration: none; }
/* O cartão ocupa a tela toda, na cor do próprio corpo (sem moldura em volta).
   Em telas largas fica numa coluna central e a página em volta continua da mesma cor. */
.moldura { max-width: 520px; margin: 0 auto; }
.moldura .zc { font-size: 17px; min-height: calc(100svh - 64px); border-radius: 0; }
@media (min-width: 600px) { .moldura { padding-top: 24px; } .moldura .zc { border-radius: 28px 28px 0 0; } .moldura .zc .zc-capa { border-radius: 28px 28px 0 0; } }
.moldura .zc-pagina .zc-nome { font-size: 1.6em; }
.feito { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1rem; max-width: 480px; margin: 0 auto; padding: 1.2rem max(16px, env(safe-area-inset-right, 0px)) calc(1.4rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); font-size: .8rem; color: color-mix(in srgb, var(--tinta) 70%, var(--fundo)); }
.feito a { color: inherit; text-decoration: none; }
.feito a:hover { text-decoration: underline; }
.feito b { color: var(--tinta); }
@media (max-width: 520px) { .moldura .zc { font-size: 4.4vw; } }

/* Termos e privacidade */
.legal { --fundo: #fbf9f6; --tinta: #15110f; }
.legal-texto { max-width: 680px; margin: 0 auto; padding: calc(1.4rem + env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px)) calc(3rem + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px)); line-height: 1.6; }
.legal-topo a { font-weight: 850; font-size: 1.3rem; letter-spacing: -.06em; color: inherit; text-decoration: none; }
.legal-topo span { font-weight: 420; }
.legal h1 { margin: 1.6rem 0 0; font-size: clamp(2.2rem, 8vw, 3.2rem); line-height: 1; letter-spacing: -.055em; }
.legal-data { color: #6d625c; margin-top: .5rem; }
.legal h2 { margin: 2rem 0 .4rem; font-size: 1.2rem; letter-spacing: -.03em; }
.legal ul { padding-left: 1.2rem; }
.legal li + li { margin-top: .4rem; }
.legal a { color: #161316; text-decoration-color: #ff4b00; }
.legal-rodape { margin-top: 2.6rem; padding-top: 1rem; border-top: 1px solid #e9e3dd; font-size: .9rem; }

/* Topo da página publicada: criar o próprio zappis.me e compartilhar (card_share_bar) */
.moldura { position: relative; }
.topo-acoes { position: absolute; z-index: 6; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; gap: .6rem; pointer-events: none; }
@media (min-width: 600px) { .topo-acoes { top: 36px; left: 14px; right: 14px; } }
.topo-acoes > * { pointer-events: auto; }
.topo-criar, .topo-comp { position: relative; display: inline-flex; align-items: center; gap: .3rem; min-height: 32px; padding: .25rem .65rem .25rem .35rem; border: 0; border-radius: 99px;
  background: rgba(255,255,255,.82); color: #161316; font: 700 .75rem/1 "DM Sans", system-ui, sans-serif; text-decoration: none; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.topo-criar::before, .topo-comp::before { content: ""; position: absolute; inset: -6px; border-radius: inherit; }
.topo-criar img { width: 17px; height: 17px; border-radius: 6px; }
.topo-comp { padding: .25rem .65rem; }
.topo-comp svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.topo-criar:focus-visible, .topo-comp:focus-visible { outline: 3px solid #ffd556; outline-offset: 2px; }
@media (max-width: 380px) { .topo-comp span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .topo-comp { padding: .4rem .65rem; } }
/* Folha de compartilhar: sobe de baixo no celular, centralizada no computador */
.folha-comp { width: min(440px, 100%); max-width: 100%; margin: auto auto 0; padding: 1.1rem max(18px, env(safe-area-inset-right, 0px)) calc(1.2rem + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
  border: 0; border-radius: 22px 22px 0 0; background: #fff; color: #161316; font-family: "DM Sans", system-ui, sans-serif; }
@media (min-width: 600px) { .folha-comp { margin: auto; border-radius: 22px; padding-bottom: 1.2rem; } }
.folha-comp::backdrop { background: rgba(10,8,10,.5); }
.folha-comp[open] { animation: fc-sobe .22s ease-out; }
@keyframes fc-sobe { from { transform: translateY(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .folha-comp[open] { animation: none; } }
.fc-cab { display: flex; align-items: center; justify-content: space-between; }
.fc-cab h2 { margin: 0; font-size: 1.15rem; letter-spacing: -.03em; }
.fc-fechar { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f1eeee; color: #161316; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.fc-link { display: flex; align-items: center; justify-content: space-between; gap: .6rem; width: 100%; margin-top: 1rem; padding: .8rem .9rem; border: 1px solid #e6e1e1; border-radius: 14px; background: #faf8f8; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.fc-link span { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.fc-link b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.fc-link em { flex: none; font-style: normal; font-weight: 750; font-size: .85rem; }
.fc-link svg, .fc-rede svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fc-redes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem .4rem; margin-top: 1.1rem; }
.fc-rede { display: grid; justify-items: center; gap: .4rem; padding: 0; border: 0; background: none; color: inherit; font: 600 .78rem/1.2 "DM Sans", system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.fc-rede span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #f1eeee; color: #fff; }
.fc-whatsapp span { background: #25d366; } .fc-facebook span { background: #1877f2; } .fc-x span { background: #111; } .fc-linkedin span { background: #0a66c2; }
.fc-telegram span { background: #229ed9; } .fc-mail span { background: #6b6468; } .fc-instagram span { background: linear-gradient(45deg, #feda75, #fa7e1e 30%, #d62976 60%, #962fbf 85%, #4f5bd5); } .fc-mais span { background: #f1eeee; color: #161316; }
.fc-aviso { min-height: 1.2em; margin: .9rem 0 0; font-size: .85rem; font-weight: 600; color: #1f6b3a; text-align: center; }
.fc-criar { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: .6rem; padding: .85rem 1rem; border-radius: 99px; background: #161316; color: #ffd556; font-weight: 750; font-size: .9rem; text-decoration: none; }
.fc-criar img { border-radius: 6px; }
/* Sem capa no topo, o cartão desce um pouco para os botões não cobrirem a foto */
.topo-acoes ~ .zc-cab--classico, .topo-acoes ~ .zc-cab--forma, .topo-acoes ~ .zc-cab--recorte { padding-top: 46px; }

/* Medalha de membro fundador: abaixo do Compartilhar, por cima da capa. Entra girando e
   um reflexo passa pela estrela de tempos em tempos. */
.topo-dir { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.medalha-fundador { display: block; width: 78px; margin-right: 4px; filter: drop-shadow(0 8px 14px #0007) drop-shadow(0 0 1px #0006); transform-origin: 50% 40%; animation: mf-entra .9s cubic-bezier(.2,1.4,.4,1) .3s both; text-decoration: none; }
.medalha-fundador svg { display: block; width: 100%; height: auto; overflow: visible; }
.medalha-fundador:hover { transform: rotate(-6deg) scale(1.05); transition: transform .25s ease; }
.medalha-fundador:focus-visible { outline: 3px solid #ffd556; outline-offset: 4px; border-radius: 12px; }
.mf-reflexo { animation: mf-reflexo 5s ease-in-out 1.4s infinite; }
@keyframes mf-entra { from { opacity: 0; transform: scale(.4) rotate(-40deg); } to { opacity: 1; transform: none; } }
@keyframes mf-reflexo { 0% { transform: rotate(20deg) translateX(0); } 30%, 100% { transform: rotate(20deg) translateX(180px); } }
@media (min-width: 600px) { .medalha-fundador { width: 88px; } }
@media (max-width: 380px) { .medalha-fundador { width: 66px; } }
@media (prefers-reduced-motion: reduce) { .medalha-fundador, .mf-reflexo { animation: none; } .medalha-fundador:hover { transform: none; } }
.topo-acoes:has(.topo-dir) { align-items: flex-start; }
