/* ==========================================================================
   AutoSEO Hub — identidade Atlas (brandbook Fê Souza / Atlas). FONTE ÚNICA de cor, tipografia e
   componentes visuais compartilhados. Carregado ANTES do CSS de cada página. Só apresentação.
   Preto e grafite como base · verde-neon como destaque principal · dourado só em detalhes.
   ========================================================================== */
:root {
  /* base */
  --atlas-bg: #080b09;
  --atlas-bg-2: #0b100c;
  --atlas-surface: #101712;
  --atlas-surface-2: #18211a;
  --atlas-surface-3: #1f2a21;
  --atlas-line: #29382c;
  --atlas-line-2: #33443a;
  /* texto */
  --atlas-fg: #f5f7f4;
  --atlas-fg-2: #dbe4d8;
  --atlas-muted: #aeb9ae;
  --atlas-faint: #8a978b;
  /* marca */
  --atlas-neon: #b7ff28;
  --atlas-neon-hi: #e4ff7a;
  --atlas-neon-lo: #8fd61c;
  --atlas-neon-soft: rgba(183, 255, 40, .12);
  --atlas-neon-glow: rgba(183, 255, 40, .35);
  --atlas-on-neon: #0b1206;
  --atlas-gold: #f0ca7a;
  --atlas-gold-soft: rgba(240, 202, 122, .14);
  /* estados */
  --atlas-ok: #b7ff28;
  --atlas-info: #7dd3fc;
  --atlas-warn: #f0ca7a;
  --atlas-danger: #ff6b6b;
  --atlas-danger-soft: rgba(255, 107, 107, .14);
  /* forma */
  --atlas-radius: 14px;
  --atlas-radius-sm: 10px;
  --atlas-radius-lg: 20px;
  --atlas-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --atlas-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --atlas-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

::selection { background: rgba(183, 255, 40, .32); color: #fff; }
:focus-visible { outline: 2px solid var(--atlas-neon); outline-offset: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(183, 255, 40, .45); }

/* Atlas Neon Trace (brandbook): contorno neon que percorre o elemento no hover/foco. Uso: class="atlas-trace". */
@property --atlas-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes atlas-neon-orbit { to { --atlas-angle: 360deg; } }
/* Camadas: ::before = anel de 2px NA BORDA (máscara recorta o miolo); ::after = halo desfocado só FORA do elemento.
   Nenhuma das duas cobre o conteúdo: texto, ícones, checkbox e preços ficam sempre legíveis, com qualquer fundo. */
/* Onde vale (brandbook: "botões, menus e cards clicáveis"; nunca em todos os elementos):
   .atlas-trace (uso explícito, ex.: AI Visibility) + RC7.1: os componentes interativos compartilhados que estavam SEM o efeito:
   botões do site (.btn), CTA do cabeçalho (.ash-cta), botões do painel (.btn-primary/.btn-glass) e menu lateral (.nav-item,
   efeito reduzido). O botão do Google (.btn-google) fica fora. Só pseudo-elementos absolutos: nenhuma dimensão muda. */
.atlas-trace { --atlas-trace-radius: 12px; --atlas-speed: 1.8s; --atlas-glow: .7; position: relative; isolation: isolate; }
:where(.btn, .ash-cta, .btn-primary, .btn-glass, .nav-item) { --atlas-speed: 1.8s; --atlas-glow: .7; position: relative; isolation: isolate; }
:where(.btn) { --atlas-trace-radius: 14px; }
:where(.ash-cta, .btn-sm) { --atlas-trace-radius: 10px; }
:where(.btn-primary, .btn-glass) { --atlas-trace-radius: 12px; }
:where(.nav-item) { --atlas-trace-radius: 12px; --atlas-glow: .4; }
:is(.atlas-trace, .btn, .ash-cta, .btn-primary, .btn-glass, .nav-item)::before,
:is(.atlas-trace, .btn, .ash-cta, .btn-primary, .btn-glass, .nav-item)::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .22s ease;
  background: conic-gradient(from var(--atlas-angle), transparent 0deg, transparent 265deg, rgba(183, 255, 40, .18) 288deg, #b7ff28 329deg, #efffc4 345deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
:is(.atlas-trace, .btn, .ash-cta, .btn-primary, .btn-glass, .nav-item)::before { inset: -2px; padding: 2px; border-radius: calc(var(--atlas-trace-radius) + 2px); }
:is(.atlas-trace, .btn, .ash-cta, .btn-primary, .btn-glass, .nav-item)::after { inset: -8px; padding: 8px; border-radius: calc(var(--atlas-trace-radius) + 8px); filter: blur(calc(6px * var(--atlas-glow))); }
.nav-item::before, .nav-item::after { border-radius: 0 calc(var(--atlas-trace-radius) + 2px) calc(var(--atlas-trace-radius) + 2px) 0; }
/* Loop contínuo de 1,8 s SÓ durante a interação (hover com mouse, foco de teclado, toque, estado ativo); pausado fora dela. */
:is(.atlas-trace, .btn, .ash-cta, .btn-primary, .btn-glass, .nav-item):is(:focus-visible, :active, .is-active)::before { opacity: 1; animation: atlas-neon-orbit var(--atlas-speed) linear infinite; }
:is(.atlas-trace, .btn, .ash-cta, .btn-primary, .btn-glass, .nav-item):is(:focus-visible, :active, .is-active)::after { opacity: var(--atlas-glow); animation: atlas-neon-orbit var(--atlas-speed) linear infinite; }
@media (hover: hover) {
  :is(.atlas-trace, .btn, .ash-cta, .btn-primary, .btn-glass, .nav-item):hover::before { opacity: 1; animation: atlas-neon-orbit var(--atlas-speed) linear infinite; }
  :is(.atlas-trace, .btn, .ash-cta, .btn-primary, .btn-glass, .nav-item):hover::after { opacity: var(--atlas-glow); animation: atlas-neon-orbit var(--atlas-speed) linear infinite; }
}
/* Celular/toque: só o anel (sem o halo desfocado, que custa pintura em aparelhos modestos), desenhado POR DENTRO da borda:
   botões de largura total não podem passar da tela (o anel a -2px criava rolagem horizontal). */
@media (hover: none), (max-width: 768px) {
  :is(.atlas-trace, .btn, .ash-cta, .btn-primary, .btn-glass, .nav-item)::after { display: none; }
  :is(.atlas-trace, .btn, .ash-cta, .btn-primary, .btn-glass, .nav-item)::before { inset: 0; border-radius: var(--atlas-trace-radius); }
  .nav-item::before { border-radius: 0 var(--atlas-trace-radius) var(--atlas-trace-radius) 0; }
}
@media (prefers-reduced-motion: reduce) {
  /* sem movimento: anel estático na borda, sem halo */
  :is(.atlas-trace, .btn, .ash-cta, .btn-primary, .btn-glass, .nav-item):is(:hover, :focus-visible, :active, .is-active)::before { animation: none; opacity: .9; background: #b7ff28; }
  :is(.atlas-trace, .btn, .ash-cta, .btn-primary, .btn-glass, .nav-item):is(:hover, :focus-visible, :active, .is-active)::after { animation: none; opacity: 0; }
  * { scroll-behavior: auto !important; }
}

/* Marca do produto: "AutoSEO Hub" com símbolo Atlas (sem roxo). */
.atlas-logo-mark {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: radial-gradient(120% 120% at 30% 20%, #1f2a21, #0b100c); border: 1px solid rgba(183, 255, 40, .55);
  box-shadow: 0 0 0 1px rgba(183, 255, 40, .12) inset, 0 0 18px rgba(183, 255, 40, .18); color: var(--atlas-neon);
}
.atlas-logo-mark svg { width: 20px; height: 20px; }

/* Controles nativos na identidade Atlas */
input[type="radio"], input[type="checkbox"], input[type="range"], progress { accent-color: var(--atlas-neon); }
input[type="file"] { color: var(--atlas-muted); font: inherit; font-size: 14px; }
input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--atlas-line-2); background: var(--atlas-surface-2);
  color: var(--atlas-fg); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: border-color .2s;
}
input[type="file"]::file-selector-button:hover { border-color: var(--atlas-neon); }
select option { background: var(--atlas-surface); color: var(--atlas-fg); }
