@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

/* =====================================================================
   WydGhost — folha de estilo da nova identidade
   Usada por enquanto apenas pelo index.html.
   As demais páginas ainda usam a folha antiga (assets/css/styles.css)
   e serão migradas para cá uma a uma.
   ===================================================================== */

@font-face {
  font-family: "Cinzel Decorative";
  src: url("../fonts/CinzelDecorative-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* mesma fonte de runas usada no cabeçalho do aplicativo */
@font-face {
  font-family: "Runas Vikingas";
  src: url("../fonts/Runasvikingas-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

:root {
  /* cores de marca: brilhos, bordas, filetes — nunca recebem texto por cima */
  --blue: #1e73ff;
  --blue-soft: #6aa5ff;
  --blue-deep: #0a1a3d;
  --red: #ff2f45;
  --red-soft: #ff7480;
  --red-deep: #3a0810;

  /* versões escurecidas só para superfícies que carregam texto branco:
     o azul e o vermelho da marca reprovam no contraste AA com branco */
  --blue-surface: #155ed6;
  --blue-surface-2: #1a6be8;
  --red-surface: #c2182a;
  --red-surface-2: #d8283c;

  --bg: #05070d;
  --bg-2: #080b14;
  --panel: rgba(11, 15, 26, 0.72);
  --line: rgba(120, 150, 210, 0.16);

  --text: #eef3fb;
  --muted: #94a3bd;
  --soft: #c3cfe2;

  --max: 1200px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------------------
   Campo de runas — mesmo padrão do cabeçalho do aplicativo.
   Camada fixa que nunca termina: o conteúdo rola por cima e as runas
   deslizam em laço, com a mesma piscada aleatória do app.
   --------------------------------------------------------------------- */

.rune-field {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}

/* teia entre as runas, desenhada atrás delas */
.rune-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.rune-track {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  will-change: transform;
}

.rune {
  position: absolute;
  font-family: "Runas Vikingas", serif;
  font-weight: 400;
  line-height: 1;
  white-space: pre;
  opacity: 0;
  transform-origin: 50% 50%;
  user-select: none;
}

/* Brilho ambiente da dupla azul/vermelho */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(58rem 46rem at -8% 4%, rgba(30, 115, 255, 0.16), transparent 70%),
    radial-gradient(58rem 46rem at 108% 4%, rgba(255, 47, 69, 0.13), transparent 70%),
    radial-gradient(46rem 38rem at 50% 30%, rgba(5, 7, 13, 0.55), transparent 76%),
    linear-gradient(180deg, rgba(5, 7, 13, 0.30) 0%, rgba(5, 7, 13, 0.10) 30%, rgba(5, 7, 13, 0.55) 100%);
}

/* O atributo hidden do HTML aplica display:none com prioridade baixa, e
   qualquer regra de classe com display o anula. Foi o que deixou o balão
   de chat aberto ao carregar a página. Vale para todo elemento do site. */
[hidden] { display: none !important; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; }

.container {
  width: min(var(--max), calc(100% - 44px));
  margin-inline: auto;
}

h1, h2, h3 { margin: 0; line-height: 1.1; }

.display {
  font-family: "Cinzel Decorative", "Inter", serif;
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* ------------------------------- Topbar ------------------------------ */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: 74px;
  display: flex;
  align-items: center;
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background 300ms var(--ease);
}

.topbar::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(30, 115, 255, 0.75), rgba(180, 90, 160, 0.55), rgba(255, 47, 69, 0.75), transparent);
}

.topbar-inner {
  width: min(var(--max), calc(100% - 36px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand-logo {
  height: 30px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(190, 212, 255, 0.35));
  transition: filter 300ms var(--ease);
}

.brand:hover .brand-logo {
  filter:
    drop-shadow(0 0 12px rgba(30, 115, 255, 0.55))
    drop-shadow(0 0 12px rgba(255, 47, 69, 0.35));
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  position: relative;
  padding: 9px 14px;
  border-radius: 8px;
  color: #a9b8d0;
  font-size: 14px;
  font-weight: 600;
  transition: color 200ms var(--ease), background 200ms var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--red));
  transform: scaleX(0);
  transition: transform 260ms var(--ease);
}

.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.04); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: #fff; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* links que só aparecem dentro da gaveta do menu */
.nav-mobile-only { display: none; }

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  flex: 0 0 auto;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-soft), var(--red-soft));
}

/* ------------------------------ Botões ------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn-blue {
  border-color: rgba(30, 115, 255, 0.55);
  background: linear-gradient(135deg, var(--blue-surface), var(--blue-surface-2));
  color: #fff;
  box-shadow: 0 8px 26px rgba(30, 115, 255, 0.34);
}

.btn-blue:hover { box-shadow: 0 12px 34px rgba(30, 115, 255, 0.5); }

.btn-red {
  border-color: rgba(255, 47, 69, 0.55);
  background: linear-gradient(135deg, var(--red-surface), var(--red-surface-2));
  color: #fff;
  box-shadow: 0 8px 26px rgba(255, 47, 69, 0.32);
}

.btn-red:hover { box-shadow: 0 12px 34px rgba(255, 47, 69, 0.48); }

/* ---- foco visível por teclado ----
   Obrigatório para quem navega por Tab. Aparece só na navegação por teclado,
   não no clique do mouse. */
:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--blue-soft);
  outline-offset: 3px;
  border-radius: 8px;
}

.btn:focus-visible,
.plan .btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.field input:focus-visible {
  outline: 2px solid var(--blue-soft);
  outline-offset: 2px;
}

.rune-field { outline: none; }

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
}

.btn-ghost:hover {
  border-color: rgba(120, 160, 230, 0.42);
  background: rgba(255, 255, 255, 0.07);
}

.btn-sm { min-height: 40px; padding: 0 16px; font-size: 13.5px; }

/* ------------------------------- Hero -------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 124px 0 72px;
  overflow: hidden;
  isolation: isolate;
}

/* concentra o escuro atrás da marca para a logo ficar legível sobre as runas */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(40rem 28rem at 50% 46%, rgba(5, 7, 13, 0.68), transparent 72%);
}

.hero-inner {
  position: relative;
  width: min(var(--max), calc(100% - 44px));
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 26px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 12px;
  border: 1px solid rgba(150, 170, 220, 0.24);
  border-radius: 999px;
  background: rgba(10, 14, 24, 0.66);
  backdrop-filter: blur(8px);
  color: #cdd9ee;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--red));
  box-shadow: 0 0 12px rgba(30, 115, 255, 0.8);
  animation: dotPulse 2.4s ease-in-out infinite;
}

.hero-logo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  padding: 8px 0;
}

/* auréola dupla atrás da marca: azul de um lado, vermelho do outro.
   A marca em si fica neutra; a cor vem do halo. */
.hero-logo-wrap::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 124%;
  height: 200%;
  background:
    radial-gradient(closest-side, rgba(30, 115, 255, 0.38), transparent 74%),
    radial-gradient(closest-side, rgba(255, 47, 69, 0.30), transparent 76%);
  background-position: 28% 50%, 72% 50%;
  background-size: 76% 100%, 76% 100%;
  background-repeat: no-repeat;
  filter: blur(26px);
  animation: auraBreathe 5.2s ease-in-out infinite;
}

.hero-logo {
  width: min(760px, 88vw);
  height: auto;
  filter:
    drop-shadow(0 0 14px rgba(214, 228, 255, 0.32))
    drop-shadow(0 0 40px rgba(30, 115, 255, 0.22))
    drop-shadow(0 0 40px rgba(255, 47, 69, 0.16))
    drop-shadow(0 8px 26px rgba(0, 0, 0, 0.7));
}

/* ------------------- marca animada -------------------
   A ousadia fica num lugar só: o fantasma. As letras entram e param.
   Ele continua vivo — flutua, pisca e olha para o cursor. */

.wg-logo-svg {
  width: min(760px, 88vw);
  height: auto;
  overflow: visible;
}

/* fill-box: cada parte gira e escala em torno do próprio centro.
   Sem isto, a origem cai no canto do viewBox e o efeito sai torto. */
.wg-glyph,
.wg-ghost,
.wg-eye,
.wg-mouth {
  transform-box: fill-box;
  transform-origin: center;
}

.wg-letters,
.wg-ghost path { fill: url(#wgSilverA); }

/* --- luz varrendo as letras ---
   Uma faixa clara atravessa a marca de tempos em tempos, como reflexo
   passando em metal gravado. Fica só nas letras: o fantasma é vivo,
   as letras são superfície. */
.wg-sheen { pointer-events: none; }

.wg-anim .wg-sheen-bar {
  transform: skewX(-12deg) translateX(-118%);
  animation: wgSheen 6.5s cubic-bezier(0.5, 0, 0.5, 1) 1.6s infinite;
}

@keyframes wgSheen {
  0%   { transform: skewX(-12deg) translateX(-118%); }
  22%  { transform: skewX(-12deg) translateX(118%); }
  100% { transform: skewX(-12deg) translateX(118%); }
}

/* --- entrada --- */
.wg-anim .wg-glyph {
  opacity: 0;
  transform: translateY(26px);
  animation: wgLetterIn 620ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i, 0) * 65ms);
}

.wg-anim .wg-ghost {
  opacity: 0;
  transform: translateY(52px) scale(0.86);
  animation: wgGhostIn 780ms cubic-bezier(0.34, 1.42, 0.5, 1) 430ms forwards;
}

@keyframes wgLetterIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes wgGhostIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- repouso: só o fantasma respira --- */
.wg-anim .wg-ghost.is-idle {
  animation: wgFloat 4.2s ease-in-out infinite;
  opacity: 1;
}

@keyframes wgFloat {
  0%, 100% { transform: translateY(0)     rotate(0deg); }
  30%      { transform: translateY(-15px) rotate(-1.1deg); }
  65%      { transform: translateY(7px)   rotate(0.8deg); }
}

/* --- olhos: acompanham o cursor e piscam ---
   O deslocamento vem de --ex/--ey (escritos pelo JS) e a piscada só
   acrescenta o achatamento, sem perder para onde o olho está virado. */
.wg-eye {
  transform: translate(var(--ex, 0px), var(--ey, 0px));
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wg-eye.is-blink {
  transform: translate(var(--ex, 0px), var(--ey, 0px)) scaleY(0.08);
  transition: transform 90ms ease-in;
}

/* a boca fica parada de propósito: o movimento vive nos olhos */

@media (prefers-reduced-motion: reduce) {
  .wg-anim .wg-glyph,
  .wg-anim .wg-ghost,
  .wg-anim .wg-sheen-bar {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .wg-anim .wg-sheen { display: none; }
  .wg-eye { transition: none; }
}

.hero-tagline {
  max-width: 660px;
  margin: 0;
  color: #c6d2e6;
  font-size: clamp(16px, 2vw, 19px);
}

.hero-tagline strong { color: #fff; font-weight: 700; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(760px, 100%);
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.hero-stats div {
  padding: 18px 14px;
  background: rgba(8, 11, 20, 0.82);
  backdrop-filter: blur(6px);
}

.hero-stats b {
  display: block;
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(20px, 3.4vw, 28px);
  background: linear-gradient(100deg, var(--blue-soft), #d8c2e8 52%, var(--red-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stats span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.scroll-hint i {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, rgba(150, 170, 220, 0.7), transparent);
  animation: hintSlide 2.2s ease-in-out infinite;
}

/* ------------------------------ Seções ------------------------------- */

.section { padding: 96px 0; position: relative; }
.section.tight { padding-top: 56px; }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }

.section-head h2 {
  margin-top: 14px;
  font-size: clamp(28px, 4.6vw, 44px);
}

.section-head p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.tag {
  display: inline-block;
  color: var(--blue-soft);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.tag.red { color: var(--red-soft); }

/* ------------------- As duas metades (azul / vermelho) --------------- */

.duality {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.half {
  position: relative;
  padding: 34px 30px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(14, 19, 32, 0.82), rgba(7, 10, 18, 0.9));
  overflow: hidden;
  transition: transform 320ms var(--ease), border-color 320ms var(--ease);
}

.half:hover { transform: translateY(-4px); }

.half::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
}

.half::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
}

.half.is-blue::before { background: linear-gradient(90deg, var(--blue), transparent); }
.half.is-blue::after { background: rgba(30, 115, 255, 0.24); top: -8rem; left: -6rem; }
.half.is-blue:hover { border-color: rgba(30, 115, 255, 0.42); }

.half.is-red::before { background: linear-gradient(270deg, var(--red), transparent); }
.half.is-red::after { background: rgba(255, 47, 69, 0.2); top: -8rem; right: -6rem; }
.half.is-red:hover { border-color: rgba(255, 47, 69, 0.42); }

.half > * { position: relative; z-index: 1; }

.half-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #fff;
}

.is-blue .half-icon {
  background: linear-gradient(135deg, rgba(30, 115, 255, 0.9), rgba(30, 115, 255, 0.35));
  box-shadow: 0 6px 20px rgba(30, 115, 255, 0.3);
}

.is-red .half-icon {
  background: linear-gradient(135deg, rgba(255, 47, 69, 0.9), rgba(255, 47, 69, 0.35));
  box-shadow: 0 6px 20px rgba(255, 47, 69, 0.28);
}

.half h3 { font-size: 22px; }

.half > p {
  margin: 12px 0 20px;
  color: var(--muted);
}

.half ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}

.half li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  color: var(--soft);
  font-size: 14.5px;
}

.half li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
}

.is-blue li::before { background: var(--blue-soft); box-shadow: 0 0 10px rgba(30, 115, 255, 0.8); }
.is-red li::before { background: var(--red-soft); box-shadow: 0 0 10px rgba(255, 47, 69, 0.7); }

/* ---------------------------- Ferramentas ---------------------------- */

.tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tool {
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(13, 18, 30, 0.8), rgba(7, 10, 17, 0.86));
  transition: transform 300ms var(--ease), border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}

.tool:hover {
  transform: translateY(-5px);
  border-color: rgba(120, 160, 230, 0.34);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.45);
}

.tool-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.tool:nth-child(odd) .tool-mark { color: var(--blue-soft); }
.tool:nth-child(even) .tool-mark { color: var(--red-soft); }

.tool h3 { font-size: 17.5px; }

.tool p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* ------------------------------- Fluxo ------------------------------- */

.flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.flow::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), rgba(180, 120, 180, 0.7), var(--red));
  opacity: 0.4;
}

.step { position: relative; text-align: center; padding: 0 10px; }

.step b {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 6px auto 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg-2);
  font-family: "Cinzel Decorative", serif;
  font-size: 19px;
}

.step:nth-child(1) b { color: var(--blue-soft); box-shadow: 0 0 0 5px rgba(30, 115, 255, 0.08); }
.step:nth-child(2) b { color: #d9c3e9; box-shadow: 0 0 0 5px rgba(150, 110, 190, 0.08); }
.step:nth-child(3) b { color: var(--red-soft); box-shadow: 0 0 0 5px rgba(255, 47, 69, 0.08); }

.step h3 { font-size: 17px; }

.step p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* -------------------------------- CTA -------------------------------- */

.cta {
  position: relative;
  padding: 54px 44px;
  border: 1px solid var(--line);
  border-radius: 18px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(38rem 20rem at 8% 50%, rgba(30, 115, 255, 0.20), transparent 70%),
    radial-gradient(38rem 20rem at 92% 50%, rgba(255, 47, 69, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(12, 17, 29, 0.9), rgba(7, 10, 17, 0.94));
}

.cta h2 { font-size: clamp(25px, 4vw, 38px); }

.cta p {
  max-width: 620px;
  margin: 16px auto 0;
  color: var(--muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.cta-ghost {
  position: absolute;
  right: 3%;
  bottom: -18%;
  width: 190px;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

/* ===================== Páginas internas ===============================
   Cabeçalho curto no lugar do hero de tela cheia.
   ===================================================================== */

.page-head {
  position: relative;
  padding: 148px 0 12px;
  text-align: center;
}

.page-head h1 {
  margin-top: 14px;
  font-size: clamp(32px, 5.4vw, 54px);
}

.page-head p {
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 17px;
}

/* ------------------------------ Planos ------------------------------- */

.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

/* todos os cards iguais; só o "mais escolhido" se destaca */
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(13, 18, 30, 0.86), rgba(7, 10, 17, 0.9));
  transition: transform 320ms var(--ease), border-color 320ms var(--ease), box-shadow 320ms var(--ease);
}

.plan::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, rgba(150, 170, 210, 0.5), transparent);
}

.plan:hover {
  transform: translateY(-5px);
  border-color: rgba(140, 170, 220, 0.34);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.46);
}

/* ---- destaque do plano recomendado ---- */

.plan.is-featured {
  border-color: rgba(30, 115, 255, 0.55);
  background:
    radial-gradient(30rem 16rem at 50% -10%, rgba(30, 115, 255, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(15, 22, 38, 0.92), rgba(7, 10, 17, 0.94));
  box-shadow:
    0 0 0 1px rgba(30, 115, 255, 0.22),
    0 0 38px rgba(30, 115, 255, 0.16),
    0 22px 52px rgba(0, 0, 0, 0.46);
}

.plan.is-featured::before {
  height: 4px;
  background: linear-gradient(90deg, var(--blue), #8f6bff 52%, var(--red));
}

.plan.is-featured:hover {
  border-color: rgba(30, 115, 255, 0.75);
  box-shadow:
    0 0 0 1px rgba(30, 115, 255, 0.3),
    0 0 48px rgba(30, 115, 255, 0.24),
    0 26px 58px rgba(0, 0, 0, 0.5);
}

.plan-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  min-height: 25px;
  padding: 0 11px;
  border: 1px solid rgba(150, 170, 210, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #a9b8d0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* o selo é o principal sinal de destaque */
.plan.is-featured .plan-badge {
  min-height: 28px;
  padding: 0 14px;
  border-color: transparent;
  background: linear-gradient(100deg, var(--blue), #8f6bff 52%, var(--red));
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.7px;
  box-shadow: 0 4px 18px rgba(30, 115, 255, 0.42);
  animation: badgeGlow 3.2s ease-in-out infinite;
}

@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 4px 16px rgba(30, 115, 255, 0.34); }
  50%      { box-shadow: 0 4px 24px rgba(255, 47, 69, 0.40); }
}

.plan h2 {
  margin-top: 16px;
  font-size: 23px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 14px;
}

.plan-price strong {
  font-family: "Cinzel Decorative", serif;
  font-size: 32px;
  color: var(--text);
}

.plan.is-featured .plan-price strong { color: var(--blue-soft); }

.plan-price span {
  color: var(--muted);
  font-size: 14px;
}

.plan-slots {
  margin-top: 6px;
  color: var(--soft);
  font-size: 14px;
}

.plan-features {
  flex: 1;
  margin: 22px 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}

.plan-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--soft);
  font-size: 14.5px;
}

.plan-features li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: rgba(160, 180, 215, 0.75);
}

.plan.is-featured .plan-features li::before {
  background: var(--blue-soft);
  box-shadow: 0 0 10px rgba(30, 115, 255, 0.7);
}

.plan .btn {
  width: 100%;
  border-color: rgba(150, 170, 210, 0.28);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.plan .btn:hover {
  border-color: rgba(140, 170, 220, 0.5);
  background: rgba(255, 255, 255, 0.09);
}

.plan.is-featured .btn {
  border-color: rgba(30, 115, 255, 0.6);
  background: linear-gradient(135deg, var(--blue-surface), var(--blue-surface-2));
  color: #fff;
  box-shadow: 0 8px 26px rgba(30, 115, 255, 0.34);
}

.plan.is-featured .btn:hover {
  box-shadow: 0 12px 34px rgba(30, 115, 255, 0.5);
}

.plans-note {
  margin: 30px auto 0;
  max-width: 640px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* --------------------------- Autenticação ---------------------------- */

.auth {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 128px 0 72px;
}

.auth-layout {
  width: min(1000px, calc(100% - 44px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  align-items: stretch;
}

.auth-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 40px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(26rem 20rem at 12% 12%, rgba(30, 115, 255, 0.16), transparent 70%),
    radial-gradient(26rem 20rem at 96% 96%, rgba(255, 47, 69, 0.13), transparent 70%),
    linear-gradient(180deg, rgba(13, 18, 30, 0.88), rgba(7, 10, 17, 0.92));
}

.auth-ghost {
  position: absolute;
  right: -12%;
  bottom: -14%;
  width: 190px;
  opacity: 0.05;
  pointer-events: none;
}

.auth-aside > * { position: relative; z-index: 1; }

.auth-aside h2 { font-size: 21px; }

.auth-aside p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.auth-points {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.auth-points li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  color: var(--soft);
  font-size: 14.5px;
}

.auth-points li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-soft), var(--red-soft));
}

.auth-card {
  padding: 36px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(13, 18, 30, 0.9), rgba(7, 10, 17, 0.94));
}

.auth-card h1 { font-size: clamp(27px, 4vw, 36px); }

.auth-card > p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 24px 0 22px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.tabs a {
  min-height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: color 200ms var(--ease), background 200ms var(--ease);
}

.tabs a:hover { color: var(--text); }

.tabs a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-surface), var(--blue-surface-2));
  box-shadow: 0 6px 18px rgba(30, 115, 255, 0.3);
}

.form { display: grid; gap: 16px; }

.field { display: grid; gap: 7px; }

.field label {
  color: #b3c1d8;
  font-size: 13px;
  font-weight: 600;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(4, 7, 13, 0.72);
  color: var(--text);
  outline: none;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.field input::placeholder { color: #77869f; }

.field input:hover { border-color: rgba(120, 160, 230, 0.34); }

.field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 115, 255, 0.16);
}

.form .btn { width: 100%; margin-top: 4px; }

.form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  color: var(--soft);
  cursor: pointer;
}

.check input {
  width: 17px;
  height: 17px;
  accent-color: var(--blue);
  cursor: pointer;
}

.form-row > a { color: var(--blue-soft); }
.form-row > a:hover { color: #fff; }

.auth-layout-single {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

.form-msg {
  min-height: 20px;
  color: var(--blue-soft);
  font-size: 13.5px;
  font-weight: 600;
}

.form-msg.is-error { color: var(--red-soft); }

.form-foot {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
}

.form-foot a { color: var(--blue-soft); }
.form-foot a:hover { color: #fff; }

/* ------------------------------ Rodapé ------------------------------- */

.footer {
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(var(--max), calc(100% - 44px));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-brand img { height: 22px; opacity: 0.85; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a:hover { color: #fff; }

/* ----------------------------- WhatsApp ------------------------------ */

.whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #05210f;
  background: linear-gradient(135deg, #25d366, #14b34e);
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.34);
  transition: transform 240ms var(--ease);
}

.whatsapp:hover { transform: scale(1.07); }
.whatsapp svg { width: 27px; height: 27px; }

/* ======================== Área do cliente ============================ */

.conta-id {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  margin-bottom: 16px;
  border: 1px solid rgba(30, 115, 255, 0.34);
  border-radius: var(--radius);
  background:
    radial-gradient(30rem 14rem at 0% 50%, rgba(30, 115, 255, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(13, 18, 30, 0.86), rgba(7, 10, 17, 0.9));
}

.conta-id span { display: block; color: var(--muted); font-size: 12.5px; }

.conta-id strong {
  display: block;
  margin: 5px 0 4px;
  font-family: var(--font-mono, ui-monospace, Menlo, monospace);
  font-size: 26px;
  letter-spacing: 1.5px;
  color: var(--blue-soft);
}

.conta-id small { color: var(--muted); font-size: 12px; }

.conta-grade {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.conta-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(13, 18, 30, 0.82), rgba(7, 10, 17, 0.88));
}

.conta-card span { display: block; color: var(--muted); font-size: 12.5px; }

.conta-card strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 22px;
  font-weight: 600;
}

.conta-card strong.is-ok { color: var(--ok, #3ddc91); }
.conta-card strong.is-danger { color: var(--red-soft); }
.conta-card small { color: var(--muted); font-size: 12px; }

.conta-acoes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.conta-acoes .adm-hint { flex: 1 1 260px; margin: 0; }

/* ------------------------------ Tickets ------------------------------ */

.tk-topo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.tk-topo .adm-filtros { margin: 0; }

.tk-item {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 16px 18px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(13, 18, 30, 0.82), rgba(7, 10, 17, 0.88));
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}

.tk-item:hover { border-color: rgba(120, 160, 230, 0.36); transform: translateY(-2px); }

.tk-item-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tk-item-topo strong { font-size: 15px; font-weight: 600; }

.tk-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12.5px;
}

.tk-item-meta code {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--blue-soft);
  font-size: 12px;
}

.tk-novo {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 47, 69, 0.15);
  color: var(--red-soft);
  font-weight: 700;
}

.tk-vazio {
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 48px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.tk-vazio p { margin: 0; }

.tk-cartao {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(13, 18, 30, 0.86), rgba(7, 10, 17, 0.9));
}

.tk-cartao-topo {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.tk-cartao-topo h2 { font-size: 20px; }

.tk-textarea {
  width: 100%;
  min-height: 130px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(4, 7, 13, 0.72);
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
}

.tk-textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 115, 255, 0.16); }
.tk-textarea::placeholder { color: #77869f; }

.field select {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(4, 7, 13, 0.72);
  color: var(--text);
  outline: none;
}

.field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 115, 255, 0.16); }

.tk-anexos { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.tk-previas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.tk-conversa {
  display: grid;
  gap: 14px;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 4px;
}

.tk-msg {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.tk-msg.is-cliente {
  border-color: rgba(30, 115, 255, 0.28);
  background: rgba(30, 115, 255, 0.07);
}

.tk-msg.is-sistema {
  border-style: dashed;
  background: none;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.tk-msg-cab {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.tk-msg-cab strong { font-size: 13.5px; font-weight: 700; }
.tk-msg-cab time { color: var(--muted); font-size: 11.5px; }

.tk-msg-texto {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.tk-msg-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.tk-msg-imgs a {
  display: block;
  width: 130px;
  height: 92px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}

.tk-msg-imgs img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 620px) {
  .conta-id { flex-direction: column; align-items: flex-start; }
  .conta-id strong { font-size: 22px; }
  .tk-cartao { padding: 18px 16px; }
  .tk-topo { flex-direction: column; align-items: stretch; }
  .tk-topo .btn { width: 100%; }
}

/* =========================== Atendimento =============================
   Balão de chat. Substitui o antigo botão que levava para fora do site.
   ===================================================================== */

.chat-bolha {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid rgba(30, 115, 255, 0.5);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-surface), var(--blue-surface-2));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 26px rgba(30, 115, 255, 0.34);
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease);
}

.chat-bolha:hover { transform: scale(1.06); box-shadow: 0 12px 34px rgba(30, 115, 255, 0.5); }
.chat-bolha.is-aberto { transform: scale(0.92); }
.chat-bolha svg { width: 26px; height: 26px; }

.chat-bolha-alerta {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 13px;
  height: 13px;
  border: 2px solid #05070d;
  border-radius: 50%;
  background: var(--red);
}

.chat-painel {
  position: fixed;
  right: 22px;
  bottom: 90px;
  z-index: 71;
  display: flex;
  flex-direction: column;
  width: min(370px, calc(100vw - 32px));
  height: min(520px, calc(100vh - 140px));
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(8, 11, 20, 0.97);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.chat-topo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.chat-topo strong { font-size: 15px; }

.chat-estado {
  color: var(--muted);
  font-size: 12px;
}

.chat-estado.is-on { color: var(--ok, #3ddc91); }

.chat-estado::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 1px;
}

.chat-fechar {
  margin-left: auto;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.chat-fechar:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }

.chat-corpo {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.chat-aviso {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
}

.chat-aviso.is-erro {
  background: rgba(255, 107, 120, 0.1);
  color: #ffb3ba;
}

.chat-sugestao {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(30, 115, 255, 0.3);
  border-radius: 12px;
  background: rgba(30, 115, 255, 0.08);
  text-align: center;
}

.chat-sugestao p {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.5;
}

.chat-sugestao .btn { width: 100%; }

.chat-msg {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
}

.chat-msg.is-visitante {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--blue-surface), var(--blue-surface-2));
  color: #fff;
  border-bottom-right-radius: 5px;
}

.chat-msg.is-operador {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  border-bottom-left-radius: 5px;
}

.chat-msg.is-sistema {
  align-self: center;
  background: none;
  color: var(--muted);
  font-size: 12.5px;
  font-style: italic;
}

.chat-autor {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--blue-soft);
}

.chat-texto {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chat-hora {
  align-self: flex-end;
  font-size: 10.5px;
  opacity: 0.6;
}

/* imagem dentro da conversa */
.chat-imagem {
  display: block;
  max-width: 220px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.chat-imagem img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: cover;
}

/* prévia antes de enviar */
.chat-previa {
  display: flex;
  gap: 8px;
  padding: 10px 12px 0;
}

.chat-previa-item {
  position: relative;
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.chat-previa-item img { width: 100%; height: 100%; object-fit: cover; }

.chat-previa-tirar {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(5, 7, 13, 0.85);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.chat-painel.is-arrastando { outline: 2px dashed var(--blue); outline-offset: -6px; }

/* convite para entrar, quando o visitante tenta anexar sem conta */
.chat-modal {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5, 7, 13, 0.86);
  backdrop-filter: blur(4px);
}

.chat-modal-cartao {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(12, 17, 28, 0.98);
  text-align: center;
}

.chat-modal-cartao h3 { font-size: 16px; }

.chat-modal-cartao p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.chat-modal-acoes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.chat-modal-acoes .btn { width: 100%; min-height: 42px; padding: 0 12px; font-size: 14px; }

.chat-modal-seguir {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12.5px;
  text-decoration: underline;
  cursor: pointer;
}

.chat-modal-seguir:hover { color: var(--text); }

.chat-rodape {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.chat-clipe {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}

.chat-clipe:hover { color: var(--blue-soft); border-color: rgba(30, 115, 255, 0.5); }
.chat-clipe svg { width: 18px; height: 18px; }

.chat-campo {
  flex: 1;
  min-height: 40px;
  max-height: 120px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(4, 7, 13, 0.7);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  resize: none;
  outline: none;
}

.chat-campo:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 115, 255, 0.14); }
.chat-campo::placeholder { color: #77869f; }

.chat-enviar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-surface), var(--blue-surface-2));
  color: #fff;
  cursor: pointer;
}

.chat-enviar:hover:not(:disabled) { filter: brightness(1.12); }

.chat-enviar:disabled {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  cursor: not-allowed;
}

/* contador no lugar do ícone enquanto a conversa está em espera */
.chat-enviar[data-espera] svg { display: none; }

.chat-enviar[data-espera]::after {
  content: attr(data-espera);
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.chat-campo:disabled { opacity: 0.6; cursor: not-allowed; }
.chat-enviar svg { width: 18px; height: 18px; }

@media (max-width: 480px) {
  .chat-bolha { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .chat-painel {
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: min(80vh, 560px);
    border-radius: 16px 16px 0 0;
  }
}

/* ---------------------------- Animações ------------------------------ */

@keyframes auraBreathe {
  0%, 100% { opacity: 0.75; filter: blur(18px); }
  50%      { opacity: 1;    filter: blur(24px); }
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%      { transform: scale(1.35); opacity: 0.7; }
}

@keyframes hintSlide {
  0%, 100% { opacity: 0.25; transform: translateY(-4px); }
  50%      { opacity: 1;    transform: translateY(4px); }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------------------- Responsivo ----------------------------- */

@media (max-width: 1000px) {
  .nav {
    position: fixed;
    top: 74px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(6, 9, 16, 0.97);
    backdrop-filter: blur(18px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5);
  }

  .nav.open { display: flex; }
  .nav a { min-height: 46px; display: flex; align-items: center; padding: 0 14px; font-size: 15px; }
  .nav a::after { display: none; }

  /* na gaveta, entrar e criar conta aparecem separados por um filete */
  .nav-mobile-only { display: flex; }
  .nav-mobile-only:first-of-type {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .hamburger { display: block; }
  .nav-actions .btn-ghost { display: none; }

  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-layout, .auth-layout-single { grid-template-columns: minmax(0, 1fr); }
  .auth-aside { padding: 30px 26px; }
}

@media (max-width: 760px) {
  .topbar { height: 66px; }
  .nav { top: 66px; }

  .hero { min-height: auto; padding: 106px 0 64px; }

  .hero-veil {
    background: radial-gradient(26rem 22rem at 50% 44%, rgba(5, 7, 13, 0.72), transparent 74%);
  }

  .hero-logo { width: min(460px, 92vw); }
  .hero-stats { grid-template-columns: 1fr; }
  .scroll-hint { display: none; }

  .section { padding: 68px 0; }
  .section-head { margin-bottom: 32px; }

  .duality, .tools, .flow, .plans { grid-template-columns: 1fr; }
  .flow::before { display: none; }

  .page-head { padding-top: 116px; }
  .page-head p { font-size: 16px; }

  .auth { padding: 104px 0 56px; }
  .auth-layout { width: calc(100% - 32px); }
  .auth-card { padding: 26px 22px; }
  .auth-aside { padding: 26px 22px; }
  .auth-ghost { display: none; }

  .plan { padding: 24px 20px 22px; }
  .plan-price strong { font-size: 29px; }
  .plans-note { margin-top: 24px; }

  /* no celular o card em destaque vem primeiro na pilha */
  .plan.is-featured { order: -1; }

  .whatsapp {
    right: 16px;
    bottom: 16px;
    width: 50px;
    height: 50px;
  }

  .whatsapp svg { width: 25px; height: 25px; }

  /* espaço para o botão flutuante não cobrir o fim da página */
  .footer { padding-bottom: 84px; }

  .cta { padding: 38px 24px; }
  .cta-ghost { display: none; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .container,
  .hero-inner,
  .footer-inner,
  .auth-layout { width: calc(100% - 30px); }

  .hero-actions,
  .cta-actions { display: grid; grid-template-columns: 1fr; width: 100%; }

  .btn { width: 100%; }
  .brand-logo { height: 25px; }

  .topbar-inner { width: calc(100% - 26px); gap: 12px; }

  /* o CTA do topo sai; entrar e criar conta vivem na gaveta */
  .nav-actions .btn { display: none; }

  .page-head { padding: 104px 0 6px; }
  .section { padding: 54px 0; }

  .auth { padding: 92px 0 48px; }
  .auth-card,
  .auth-aside { padding: 22px 18px; }

  .plan { padding: 22px 18px 20px; }
  .tabs { margin: 20px 0 18px; }

  .form-row { flex-direction: column; align-items: flex-start; gap: 10px; }

  .footer-links { gap: 14px 18px; }
}

/* telas muito estreitas: evita qualquer estouro horizontal */
@media (max-width: 340px) {
  .brand-logo { height: 22px; }
  .hero-logo { width: calc(100% - 8px); }
  .plan-price strong { font-size: 26px; }
}
