/* ============================================================
   Gerador de Assinaturas · Tellius
   Identidade: navy #080f19 · dourado #d6b04f · creme #faf7e4
   ============================================================ */

:root {
  --ink: #080f19;
  --ink-2: #0c1420;
  --gold: #d6b04f;
  --gold-deep: #c3a148;
  --cream: #faf7e4;
  --cream-dim: rgba(250, 247, 228, 0.62);
  --linha: rgba(250, 247, 228, 0.10);
  --fonte: "Sora", "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--fonte);
  background: var(--ink);
  color: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

main { flex: 1; }

/* itens de flex com margin auto não esticam — força a largura total */
.topo, .conteudo { width: 100%; }

/* Padrão de pontos — eco da matriz de pontos do logo Tellius */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(250, 247, 228, 0.05) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 70%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Brilho dourado no canto — eco do degradê da assinatura */
body::after {
  content: "";
  position: fixed;
  right: -220px;
  bottom: -260px;
  width: 720px;
  height: 640px;
  background: radial-gradient(closest-side, rgba(195, 161, 72, 0.22), transparent);
  pointer-events: none;
  z-index: 0;
}

header, main, footer { position: relative; z-index: 1; }

/* ==================== Cabeçalho ==================== */

.topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 40px 8px;
}

.topo-logo { height: 46px; width: auto; }

.topo-titulo { text-align: right; }

.topo-titulo h1 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-top: 4px;
}

.eyebrow {
  display: block;
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.ao-vivo { font-style: normal; color: var(--cream-dim); }

/* ==================== Layout principal ==================== */

.conteudo {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 36px;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 40px 72px;
}

/* ==================== Formulário ==================== */

/* abas de unidade no topo do painel */
.abas {
  display: flex;
  gap: 8px;
  padding: 0 18px;
}

.aba {
  flex: 1;
  font-family: var(--fonte);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cream-dim);
  background: rgba(250, 247, 228, 0.04);
  border: 1px solid var(--linha);
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  padding: 12px 10px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.aba:hover { color: var(--cream); }

.aba.ativa {
  background: linear-gradient(135deg, #e3bd60, var(--gold-deep));
  border-color: transparent;
  color: #10130a;
}

.aba:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }

.painel-form {
  background: rgba(250, 247, 228, 0.04);
  border: 1px solid var(--linha);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(10px);
}

.painel-form .eyebrow { margin-bottom: 22px; }

.campo-linha {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.campo { margin-bottom: 18px; }

.campo label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--cream-dim);
  margin-bottom: 7px;
}

.campo input {
  width: 100%;
  font-family: var(--fonte);
  font-size: 15px;
  color: var(--cream);
  background: rgba(8, 15, 25, 0.65);
  border: 1px solid rgba(250, 247, 228, 0.16);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.campo input::placeholder { color: rgba(250, 247, 228, 0.28); }

.campo input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(214, 176, 79, 0.18);
}

.dica {
  display: block;
  font-size: 11.5px;
  color: rgba(250, 247, 228, 0.4);
  margin-top: 6px;
}

.botao-baixar {
  width: 100%;
  font-family: var(--fonte);
  font-size: 15px;
  font-weight: 600;
  color: #10130a;
  background: linear-gradient(135deg, #e3bd60, var(--gold-deep));
  border: none;
  border-radius: 12px;
  padding: 15px;
  margin-top: 6px;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
}

.botao-baixar:hover { filter: brightness(1.07); }
.botao-baixar:active { transform: translateY(1px); }
.botao-baixar:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.botao-baixar:disabled { filter: grayscale(0.5) brightness(0.8); cursor: wait; }

.fixos {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--linha);
}

.fixos .eyebrow { margin-bottom: 12px; }

.fixos ul { list-style: none; }

.fixos li {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--cream-dim);
  padding-left: 16px;
  position: relative;
  margin-bottom: 8px;
}

.fixos li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

/* ==================== Preview ==================== */

.painel-preview .eyebrow { margin-bottom: 22px; }

.preview-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1600 / 762;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--linha);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.preview-nota {
  font-size: 12.5px;
  color: rgba(250, 247, 228, 0.4);
  margin-top: 14px;
}

/* ============================================================
   A ASSINATURA — desenhada em 1600 × 762 e escalada no preview
   (sem backdrop-filter: o vidro é simulado com gradiente para
   a exportação em PNG sair idêntica ao preview)
   ============================================================ */

.sig {
  position: absolute;
  top: 0;
  left: 0;
  width: 1600px;
  height: 762px;
  transform: scale(var(--s, 0.5));
  transform-origin: top left;
  font-family: var(--fonte);
  overflow: hidden;
}

/* O fundo é a própria arte original (com os textos variáveis apagados);
   apenas nome, cargo, e-mail e telefone são renderizados por cima,
   em posições medidas pixel a pixel na imagem de referência. */

.sig-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 1600px;
  height: 762px;
}

.sig p {
  position: absolute;
  margin: 0;
  line-height: 1;
  color: #faf8e1;
  white-space: nowrap;
}

.sig .sig-name {
  left: 857px;
  top: 177px;
  right: 145px;
  font-size: 52px;
  font-weight: 700;
}

.sig .sig-role {
  left: 863px;
  top: 266px;
  right: 145px;
  font-size: 29px;
  font-weight: 400;
}

.sig .sig-address {
  left: 861px;
  top: 386px;
  font-size: 19px;
  font-weight: 400;
  line-height: 22px;
  opacity: 0.75;
}

.sig .sig-email {
  left: 861px;
  top: 330px;
  right: 145px;
  font-size: 29px;
  font-weight: 400;
}

.sig .sig-phone {
  left: 89px;
  top: 695px;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: #0b0b03;
}

/* ==================== Rodapé da página ==================== */

.rodape {
  display: flex;
  font-size: 13px;
  color: #14140c;
}

.rodape-gold {
  background: var(--gold);
  padding: 13px 40px;
  font-weight: 600;
}

.rodape-cream {
  flex: 1;
  background: var(--cream);
  padding: 13px 40px;
}

/* ==================== Responsivo ==================== */

@media (max-width: 960px) {
  .conteudo { grid-template-columns: 1fr; }
  .topo { flex-direction: column; align-items: flex-start; }
  .topo-titulo { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
