/**
 * LUPA Home — SaaS landing + login no header
 * Stripe / Notion / Omie inspired
 */

:root {
  --lupa-bg: #030712;
  --lupa-bg-2: #0a1020;
  --lupa-blue: #3b82f6;
  --lupa-blue-glow: #60a5fa;
  --lupa-violet: #8b5cf6;
  --lupa-cyan: #22d3ee;
  --lupa-text: #f1f5f9;
  --lupa-muted: #94a3b8;
  --lupa-glass: rgba(12, 20, 40, 0.72);
  --lupa-glass-border: rgba(148, 163, 184, 0.14);
  --lupa-glass-highlight: rgba(255, 255, 255, 0.06);
  --lupa-topbar-h: 80px;
  --lupa-radius: 14px;
  --lupa-radius-lg: 20px;
  --lupa-blur: blur(20px);
  --lupa-max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--lupa-topbar-h) + 16px); }

body.lupa-home {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--lupa-text);
  background: var(--lupa-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* —— Background —— */
.lupa-bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.lupa-bg-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 15% -10%, rgba(59, 130, 246, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 60% 45% at 85% 20%, rgba(139, 92, 246, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(34, 211, 238, 0.08) 0%, transparent 45%),
    linear-gradient(180deg, #060d1a 0%, #030712 100%);
}

.lupa-bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 40% 30%, black 20%, transparent 75%);
}

.lupa-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: lupa-orb-float 14s ease-in-out infinite;
}

.lupa-orb--a { width: 420px; height: 420px; top: -8%; left: 5%; background: rgba(59, 130, 246, 0.2); }
.lupa-orb--b { width: 320px; height: 320px; top: 35%; right: 18%; background: rgba(139, 92, 246, 0.15); animation-delay: -5s; }
.lupa-orb--c { width: 260px; height: 260px; bottom: 10%; left: 25%; background: rgba(34, 211, 238, 0.1); animation-delay: -9s; }

@keyframes lupa-orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(24px, -18px) scale(1.05); }
  66% { transform: translate(-16px, 12px) scale(0.96); }
}

/* —— Topbar fixo —— */
.lupa-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--lupa-topbar-h);
  background: rgba(6, 12, 28, 0.82);
  border-bottom: 1px solid var(--lupa-glass-border);
  backdrop-filter: var(--lupa-blur);
  -webkit-backdrop-filter: var(--lupa-blur);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.lupa-topbar-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(0.75rem, 2vw, 1.5rem);
}

.lupa-topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  min-width: 0;
}

.lupa-topbar-logo {
  display: block;
  height: 52px;
  width: auto;
  max-width: min(220px, 38vw);
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.lupa-topbar-tagline {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
  line-height: 1.2;
}

.lupa-topbar-tagline strong {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lupa-blue-glow);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lupa-topbar-tagline em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lupa-topbar-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.lupa-topbar-nav a {
  padding: 0.35rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--lupa-muted);
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.lupa-topbar-nav a:hover {
  color: var(--lupa-text);
  background: rgba(255, 255, 255, 0.05);
}

.lupa-topbar-auth {
  flex-shrink: 0;
  min-width: 0;
}

.lupa-topbar-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--lupa-glass-border);
  border-radius: 10px;
  background: var(--lupa-glass);
  color: var(--lupa-text);
  cursor: pointer;
  flex-shrink: 0;
}

.lupa-topbar-mobile {
  position: fixed;
  top: var(--lupa-topbar-h);
  left: 0;
  right: 0;
  z-index: 99;
  padding: 1rem 1.25rem 1.25rem;
  background: rgba(6, 12, 28, 0.96);
  border-bottom: 1px solid var(--lupa-glass-border);
  backdrop-filter: var(--lupa-blur);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.lupa-topbar-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.lupa-topbar-mobile-nav a {
  padding: 0.55rem 0.65rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--lupa-muted);
  text-decoration: none;
  border-radius: 8px;
}

.lupa-topbar-mobile-nav a:hover { color: var(--lupa-text); background: rgba(255,255,255,0.05); }

.lupa-header-mobile-extra {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--lupa-muted);
}

.lupa-header-mobile-extra a { color: var(--lupa-blue-glow); text-decoration: none; }

/* —— Login inline no header —— */
.lupa-header-form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
}

.lupa-header-form--stack {
  flex-direction: column;
  align-items: stretch;
}

.lupa-header-field-ac { position: relative; flex: 1; min-width: 0; }

.lupa-header-input {
  width: 7.5rem;
  min-width: 0;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  font-size: 0.78rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.lupa-header-form--stack .lupa-header-input { width: 100%; }

.lupa-header-input::placeholder { color: #64748b; }

.lupa-header-input:focus {
  border-color: var(--lupa-blue);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.lupa-header-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  transition: transform 0.15s;
}

.lupa-header-submit:hover { transform: translateY(-1px); }

.lupa-header-forgot {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--lupa-blue-glow);
  text-decoration: none;
  white-space: nowrap;
}

.lupa-header-forgot:hover { text-decoration: underline; }

.lupa-header-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.62rem;
  font-weight: 500;
  color: #94a3b8;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}

.lupa-header-remember input {
  width: 0.85rem;
  height: 0.85rem;
  margin: 0;
  accent-color: var(--lupa-blue);
  cursor: pointer;
}

.lupa-header-form--stack .lupa-header-remember {
  flex: 1 1 100%;
  font-size: 0.72rem;
  color: #cbd5e1;
  padding: 0.15rem 0;
}

.lupa-topbar-auth .lupa-header-form:not(.lupa-header-form--stack) {
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 560px;
}

.lupa-topbar-auth .lupa-header-form:not(.lupa-header-form--stack) .lupa-header-remember {
  flex: 1 1 100%;
  justify-content: flex-end;
}

.lupa-flash-bar {
  position: fixed;
  top: var(--lupa-topbar-h);
  left: 0;
  right: 0;
  z-index: 90;
  padding: 0.5rem 1rem;
  background: rgba(6, 12, 28, 0.95);
  border-bottom: 1px solid var(--lupa-glass-border);
}

.lupa-flash-bar .lupa-login-flash { margin: 0 auto; max-width: var(--lupa-max); }

/* —— Página principal —— */
.lupa-page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: calc(var(--lupa-topbar-h) + 0.75rem) clamp(1rem, 3vw, 2.5rem) 3rem;
}

.lupa-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lupa-blue-glow);
}

.lupa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.15rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}

.lupa-btn--primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.45);
}

.lupa-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(37, 99, 235, 0.55); }

.lupa-btn--glass {
  background: var(--lupa-glass);
  border: 1px solid var(--lupa-glass-border);
  color: var(--lupa-text);
  backdrop-filter: blur(12px);
}

.lupa-btn--glass:hover { border-color: rgba(96, 165, 250, 0.35); transform: translateY(-1px); }

/* —— Capa hero (tamanho original + moldura) —— */
.lupa-hero-cover {
  --lupa-hero-frame: #050a18;
  --lupa-hero-w: 1229px;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.lupa-hero-cover-frame {
  position: relative;
  display: inline-block;
  max-width: var(--lupa-hero-w);
  padding: 18px;
  background: var(--lupa-hero-frame);
  border: 12px solid var(--lupa-hero-frame);
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.08),
    0 28px 72px -16px rgba(0, 0, 0, 0.55);
  line-height: 0;
}

.lupa-hero-cover-img {
  width: var(--lupa-hero-w);
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.lupa-anchor {
  position: absolute;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  pointer-events: none;
}

.lupa-anchor--sngpc { top: 78%; }
.lupa-anchor--xml { top: 72%; left: 42%; }

.lupa-hero-cover-actions {
  position: absolute;
  inset: 18px;
  pointer-events: none;
}

.lupa-hero-cover-hit {
  position: absolute;
  pointer-events: auto;
  opacity: 0;
  overflow: hidden;
  text-indent: -9999px;
}

.lupa-hero-cover-hit--demo {
  left: 4%;
  top: 38%;
  width: 22%;
  height: 8%;
}

.lupa-hero-cover-hit--recursos {
  left: 27%;
  top: 38%;
  width: 20%;
  height: 8%;
}

@media (max-width: 900px) {
  .lupa-hero-cover-hit { display: none; }
}

/* —— Seções —— */
.lupa-sec { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.lupa-sec-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 1.75rem;
}

.lupa-sec-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lupa-sec-head p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--lupa-muted);
  line-height: 1.55;
}

/* —— Cards 3x2 —— */
.lupa-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.lupa-card {
  padding: 1.35rem 1.25rem;
  border-radius: var(--lupa-radius);
  background: var(--lupa-glass);
  border: 1px solid var(--lupa-glass-border);
  backdrop-filter: blur(16px);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.lupa-card:hover {
  border-color: rgba(96, 165, 250, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.lupa-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.15);
  color: var(--lupa-blue-glow);
  font-size: 1.05rem;
}

.lupa-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.lupa-card p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--lupa-muted);
}

/* —— Métricas —— */
.lupa-metrics-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--lupa-radius-lg);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(96, 165, 250, 0.25);
  backdrop-filter: blur(20px);
}

.lupa-metric {
  text-align: center;
  padding: 0.5rem;
}

.lupa-metric strong {
  display: block;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.lupa-metric span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--lupa-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* —— SEFAZ section —— */
.lupa-sefaz-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.lupa-sefaz-card {
  padding: 1rem 0.85rem;
  border-radius: var(--lupa-radius);
  background: var(--lupa-glass);
  border: 1px solid var(--lupa-glass-border);
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.lupa-sefaz-card:hover {
  transform: translateY(-2px);
  border-color: rgba(52, 211, 153, 0.35);
}

.lupa-sefaz-card i {
  display: block;
  font-size: 1.15rem;
  color: #34d399;
  margin-bottom: 0.55rem;
}

.lupa-sefaz-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}

.lupa-sefaz-card p {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--lupa-muted);
}

.lupa-sefaz-shot {
  border-radius: var(--lupa-radius-lg);
  overflow: hidden;
  border: 1px solid var(--lupa-glass-border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.lupa-sefaz-shot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  object-position: top left;
}

/* —— Multi lojas —— */
.lupa-multistore-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 2rem 1rem;
  border-radius: var(--lupa-radius-lg);
  background: var(--lupa-glass);
  border: 1px solid var(--lupa-glass-border);
}

.lupa-ms-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 1rem 1.5rem;
  border-radius: var(--lupa-radius);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.3);
  min-width: 120px;
}

.lupa-ms-node i { font-size: 1.35rem; color: var(--lupa-blue-glow); }
.lupa-ms-node span { font-size: 0.85rem; font-weight: 700; }

.lupa-ms-node--matriz {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(139, 92, 246, 0.15));
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.2);
}

.lupa-ms-lines {
  position: relative;
  width: 4px;
  height: 48px;
  background: linear-gradient(180deg, var(--lupa-blue), var(--lupa-violet));
  border-radius: 2px;
  overflow: visible;
}

.lupa-ms-pulse {
  position: absolute;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--lupa-cyan);
  box-shadow: 0 0 12px var(--lupa-cyan);
  animation: lupa-ms-sync 2s ease-in-out infinite;
}

.lupa-ms-pulse--d2 { animation-delay: 0.65s; }
.lupa-ms-pulse--d3 { animation-delay: 1.3s; }

@keyframes lupa-ms-sync {
  0% { top: 0; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.lupa-ms-filiais {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.lupa-ms-filiais .lupa-ms-node {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--lupa-glass-border);
}

/* —— Footer —— */
.lupa-footer {
  padding-top: 2.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--lupa-glass-border);
  text-align: center;
}

.lupa-footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.lupa-footer-logo {
  display: block;
  height: 58px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.lupa-footer-lead {
  margin: 0;
  max-width: 520px;
  font-size: 0.88rem;
  color: var(--lupa-muted);
  line-height: 1.55;
}

.lupa-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 0.85rem;
}

.lupa-footer-links a {
  font-size: 0.8rem;
  font-weight: 500;
  color: #cbd5e1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.15s;
}

.lupa-footer-links a:hover { color: var(--lupa-blue-glow); }

.lupa-footer-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #475569;
  flex-shrink: 0;
}

.lupa-footer-credits {
  display: flex;
  justify-content: center;
  padding: 0 0.5rem;
}

.lupa-credits-card {
  width: 100%;
  max-width: 520px;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: var(--lupa-radius-lg);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.85), rgba(8, 14, 28, 0.92));
  border: 1px solid rgba(96, 165, 250, 0.22);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 20px 48px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
}

.lupa-credits-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: var(--lupa-blue-glow);
  font-size: 1.25rem;
}

.lupa-credits-label {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}

.lupa-credits-name {
  margin: 0 0 0.35rem;
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
  line-height: 1.2;
}

.lupa-credits-reg {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--lupa-blue-glow);
  letter-spacing: 0.03em;
}

.lupa-credits-mission {
  margin: 0 0 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  font-size: 0.84rem;
  line-height: 1.55;
  color: #94a3b8;
  font-style: italic;
}

.lupa-credits-rights {
  margin: 0;
  font-size: 0.72rem;
  color: #64748b;
  letter-spacing: 0.02em;
}

.lupa-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lupa-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: flex-start;
}

.lupa-footer-links a {
  font-size: 0.82rem;
  color: var(--lupa-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.lupa-footer-links a:hover { color: var(--lupa-blue-glow); }

.lupa-footer-alt {
  margin: 1.25rem auto 0;
  max-width: 520px;
  font-size: 0.75rem;
  color: #64748b;
  text-align: center;
}

.lupa-footer-alt a { color: var(--lupa-blue-glow); text-decoration: none; }

/* —— Flash / autocomplete —— */
.lupa-login-flash {
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  font-size: 0.78rem;
  text-align: center;
}

.lupa-login-flash.danger { background: rgba(239, 68, 68, 0.18); border: 1px solid rgba(248, 113, 113, 0.35); color: #fecaca; }
.lupa-login-flash.success { background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(74, 222, 128, 0.3); color: #bbf7d0; }
.lupa-login-flash.info, .lupa-login-flash.warning { background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(96, 165, 250, 0.3); color: #bfdbfe; }

.lupa-login-ac-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 200;
  margin-top: 0.25rem;
  max-height: 160px;
  overflow-y: auto;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.lupa-login-ac-item {
  display: block;
  width: 100%;
  padding: 0.5rem 0.7rem;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  text-align: left;
  font-size: 0.82rem;
  color: #0f172a;
  cursor: pointer;
}

.lupa-login-ac-item:hover { background: #eff6ff; }

/* —— Reveal —— */
.lupa-reveal { opacity: 1; transform: none; }

body.lupa-home--animate .lupa-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

body.lupa-home--animate .lupa-reveal.lupa-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* —— Responsive —— */
@media (max-width: 1100px) {
  .lupa-topbar-nav { display: none; }
  .lupa-topbar-menu-btn { display: flex; }
  .lupa-topbar-auth { display: none; }
  .lupa-sefaz-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .lupa-sefaz-grid { grid-template-columns: repeat(3, 1fr); }
  .lupa-hero-cover-frame {
    padding: 12px;
    border-width: 8px;
    border-radius: 14px;
  }
  .lupa-hero-cover-actions { inset: 12px; }
}

@media (max-width: 640px) {
  :root { --lupa-topbar-h: 64px; }
  .lupa-topbar-logo { height: 42px; max-width: 160px; }
  .lupa-metrics-band { grid-template-columns: repeat(2, 1fr); }
  .lupa-sefaz-grid { grid-template-columns: 1fr 1fr; }
  .lupa-ms-filiais { flex-direction: column; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .lupa-reveal, body.lupa-home--animate .lupa-reveal { opacity: 1; transform: none; transition: none; }
  .lupa-orb, .lupa-ms-pulse { animation: none; }
  html { scroll-behavior: auto; }
}
