/* ===== CORES: troque só aqui para cada cliente ===== */
:root {
  --fundo-a: #0b1832;      /* início do degradê (esquerda) */
  --fundo-b: #d1a847;      /* fim do degradê (direita) */
  --card: #0b1832;         /* cartões e botões */
  --texto: #f0ece0;        /* textos, ícones e contornos */
--fundo-b: #c6ae80;      /* fim do degradê de fundo (direita) */
--destaque: #c6ae80;     /* botões, bordas, ícones e nome */
}
* { box-sizing: border-box; margin: 0; }
html { background: var(--fundo-a); }
body {
  font-family: "Montserrat", system-ui, sans-serif; color: var(--texto); line-height: 1.5;
  min-height: 100vh; padding: 40px 16px 56px;
  background: linear-gradient(90deg, var(--fundo-a), var(--fundo-b)) fixed;
}
main { max-width: 384px; margin: 0 auto; display: grid; gap: 12px; }
.card { background: var(--card); border-radius: 32px; }

/* topo */
.topo { margin-top: 64px; padding: 84px 24px 24px; text-align: center; position: relative; }
.avatar {
  position: absolute; top: -64px; left: 50%; transform: translateX(-50%);
  width: 128px; height: 128px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--destaque); background: #0f2145; color: var(--destaque);
  display: grid; place-items: center; font-weight: 700; font-size: 52px;
}
.avatar img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.compartilhar {
  position: absolute; top: 24px; left: 22px; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: transparent; color: var(--texto); cursor: pointer; display: grid; place-items: center;
}
h1 { font-size: 18px; font-weight: 700; color: var(--destaque); }
.subtitulo { margin: 8px auto 0; font-size: 14px; opacity: .88; max-width: 32ch; }
.pill-sm {
  display: inline-flex; align-items: center; justify-content: center; margin-top: 14px;
  height: 38px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--texto);
  background: transparent; color: var(--texto); font: 500 14px "Montserrat", sans-serif; cursor: pointer; text-decoration: none;
}

/* botões em pílula */
.pill {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 20px; border-radius: 999px; background: var(--card);
  color: var(--texto); text-decoration: none; font-weight: 600; font-size: 15px;
}
.pill { border: 1px solid rgba(209,168,71,.55); }
.pill svg { stroke: var(--destaque); }
.pill.principal { background: var(--destaque); color: var(--card); border-color: var(--destaque); font-weight: 700; box-shadow: 0 10px 24px rgba(209,168,71,.22); }
.pill.principal svg { stroke: var(--card); }
.pill svg, .compartilhar svg { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pill:focus-visible, .pill-sm:focus-visible, input:focus-visible, textarea:focus-visible, .compartilhar:focus-visible { outline: 3px solid var(--texto); outline-offset: 2px; }

/* formulário */
/* .form { padding: 24px; }
.form h2 { font-size: 18px; font-weight: 500; margin-bottom: 14px; }
form { display: grid; gap: 12px; } */
label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
input, textarea {
  font: 400 15px "Montserrat", sans-serif; color: var(--texto); background: var(--card);
  border: 1px solid var(--texto); border-radius: 22px; padding: 11px 16px; width: 100%;
}
textarea { min-height: 96px; resize: vertical; }
.nota { font-size: 12px; opacity: .7; }
.rodape { text-align: center; font-size: 12px; opacity: .85; margin-top: 12px; }
[hidden] { display: none !important; }

/* janela de compartilhar */
dialog { margin: auto; width: min(360px, calc(100% - 32px)); border: 0; border-radius: 28px; padding: 24px;
  background: var(--card); color: var(--texto); }
dialog::backdrop { background: rgba(0,0,0,.6); }
dialog h2 { font-size: 17px; font-weight: 700; text-align: center; margin-bottom: 14px; }
.opcoes { display: grid; gap: 10px; }
.opcoes .pill { height: 48px; border: 1px solid var(--texto); background: transparent; font-size: 14px; cursor: pointer; font-family: inherit; }
#qr { display: grid; place-items: center; margin-bottom: 14px; }
#qr canvas, #qr img { background: #fff; padding: 10px; border-radius: 14px; max-width: 100%; height: auto; }

@media (hover: hover) { .pill:hover, .pill-sm:hover { transform: scale(1.02); } }
@media (prefers-reduced-motion: no-preference) {
  .pill, .pill-sm { transition: transform .15s ease; }
  main > *, .pill { opacity: 0; animation: entrar .55s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i, 0) * 55ms); }
  .pill.pulsa { animation: entrar .55s cubic-bezier(.2,.7,.2,1) forwards, pulsar 2.4s ease-in-out 1.2s infinite; animation-delay: calc(var(--i, 0) * 55ms), 1.2s; }
}
@keyframes entrar { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pulsar { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
