/* Identidade Pier: mesma paleta e fontes do pier.solutions */
:root {
  --abismo: #0B2540; --mar: #12406A; --mare: #2F7FB8; --espuma: #7FD1C7;
  --areia: #F5EFE3; --madeira: #B08968; --tinta: #1A2433; --nevoa: #5B6B7F;
  --texto-claro: #EAF1F8; --texto-suave: #C9D8E8; --linha: rgba(255,255,255,.14);
  --erro: #F2A9A0;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: "Inter", system-ui, sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased;
  color: var(--texto-claro);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(47,127,184,.35), transparent 60%),
    linear-gradient(180deg, var(--abismo) 0%, var(--mar) 100%) fixed;
}
:focus-visible { outline: 2px solid var(--espuma); outline-offset: 3px; }
h1, h2, .marca { font-family: "Sora", sans-serif; letter-spacing: -.02em; }
.wrap { max-width: 640px; margin: 0 auto; padding: 24px 16px 48px; }

.marca { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: #fff; text-decoration: none; }
.marca svg { width: 32px; height: 32px; }
.marca .wm span { font-weight: 500; color: var(--espuma); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem "Inter", sans-serif; border: 0; border-radius: 999px; cursor: pointer;
  padding: 14px 24px; background: var(--espuma); color: var(--abismo); text-decoration: none;
}
.btn:disabled { opacity: .6; cursor: wait; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }

.selo {
  display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--espuma); background: rgba(127,209,199,.1); border: 1px solid rgba(127,209,199,.25);
  padding: 5px 12px; border-radius: 999px;
}

/* ---------- Nuvem ---------- */
.nuvem {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; align-content: center;
  gap: .25em .6em; min-height: 40vh; padding: 16px 0;
}
.nuvem .tema {
  font-family: "Sora", sans-serif; font-weight: 700; line-height: 1.1; letter-spacing: -.02em;
  transition: font-size .8s cubic-bezier(.2,.8,.2,1), opacity .6s, transform .6s;
  white-space: nowrap; text-align: center;
}
.nuvem .tema small { font: 500 .45em "Inter", sans-serif; opacity: .65; margin-left: .25em; vertical-align: super; }
.nuvem .tema.novo { animation: surgir .9s cubic-bezier(.2,.8,.2,1); }
@keyframes surgir { from { opacity: 0; transform: scale(.4) translateY(10px); } }
.nuvem-vazia { color: var(--texto-suave); text-align: center; }

.status-ia { font-size: .85rem; color: var(--texto-suave); text-align: center; min-height: 1.4em; }
.status-ia .ponto { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--espuma); margin-right: 6px; animation: pulsar 1.2s infinite; }
@keyframes pulsar { 50% { opacity: .3; } }
.conexao { position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%); font-size: .8rem; background: rgba(0,0,0,.5); padding: 6px 12px; border-radius: 999px; display: none; }
.conexao.on { display: block; }

@media (prefers-reduced-motion: reduce) {
  .nuvem .tema, .nuvem .tema.novo { transition: none; animation: none; }
  .status-ia .ponto { animation: none; }
}
