/* LABRA — Custom styles (camada fina sobre Tailwind) */

[x-cloak] { display: none !important; }

:root {
  --labra-verde: #1B5E20;
  --labra-verde-dark: #0D3D17;
  --labra-laranja: #E65100;
  --labra-laranja-dark: #C24700;
  --labra-navy: #1A237E;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Fade-in para troca de view */
.fade-in {
  animation: fadeIn .28s ease-out both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Spinner minimalista */
.spinner {
  width: 28px; height: 28px;
  border: 3px solid rgba(27, 94, 32, 0.18);
  border-top-color: var(--labra-verde);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  display: inline-block;
}
.spinner-sm { width: 16px; height: 16px; border-width: 2px; }
.spinner-white { border-color: rgba(255,255,255,0.35); border-top-color: white; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Gradiente sutil para o hero da landing */
.hero-gradient {
  background: radial-gradient(ellipse at top, rgba(27, 94, 32, 0.10) 0%, transparent 60%),
              radial-gradient(ellipse at bottom right, rgba(230, 81, 0, 0.08) 0%, transparent 55%),
              #ffffff;
}

/* Glow sutil no CTA principal */
.cta-glow {
  box-shadow:
    0 1px 2px rgba(27, 94, 32, 0.08),
    0 8px 24px -8px rgba(27, 94, 32, 0.35);
  transition: all .18s ease-out;
}
.cta-glow:hover {
  transform: translateY(-1px);
  box-shadow:
    0 2px 4px rgba(27, 94, 32, 0.10),
    0 12px 32px -8px rgba(27, 94, 32, 0.45);
}

/* Pulso no CTA chamativo (mas leve — não agressivo) */
.pulse-subtle {
  animation: pulseSoft 2.8s ease-in-out infinite;
}
@keyframes pulseSoft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 81, 0, 0.35); }
  50%      { box-shadow: 0 0 0 12px rgba(230, 81, 0, 0); }
}

/* Cards de pricing — hover elegante */
.price-card {
  transition: transform .22s ease-out, box-shadow .22s ease-out;
}
.price-card:hover {
  transform: translateY(-4px);
}
.price-card.featured {
  position: relative;
  border: 2px solid var(--labra-verde);
}
.price-card.featured::before {
  content: 'MAIS POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--labra-verde);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 999px;
}

/* Dropzone upload */
.dropzone {
  border: 2px dashed #cbd5e1;
  transition: all .18s ease-out;
}
.dropzone.dragging {
  border-color: var(--labra-verde);
  background: rgba(27, 94, 32, 0.06);
}

/* Scrollbar discreta no desktop */
@media (min-width: 768px) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: #f1f5f9; }
  ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
  ::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
}

/* Impede que inputs type=number mostrem setinhas */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] { -moz-appearance: textfield; }

/* Detalhes de análise — tipografia mais confortável */
.prose-labra p { line-height: 1.7; color: #334155; }
.prose-labra strong { color: #0f172a; }

/* Toast container */
.toast-enter {
  animation: toastIn .28s ease-out;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ─── Popup de sugestões (canto inferior direito, slide-up) ─── */
.sugestoes-fab {
  box-shadow:
    0 4px 12px -2px rgba(27, 94, 32, 0.25),
    0 8px 24px -4px rgba(27, 94, 32, 0.20);
  transition: transform .2s ease-out, box-shadow .2s ease-out;
}
.sugestoes-fab:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 16px -2px rgba(27, 94, 32, 0.32),
    0 12px 32px -4px rgba(27, 94, 32, 0.28);
}

.sugestoes-card {
  box-shadow:
    0 4px 16px -2px rgba(15, 23, 42, 0.12),
    0 24px 48px -8px rgba(15, 23, 42, 0.18);
  transform-origin: bottom right;
}

/* Animação subindo (Alpine x-transition aplicada via classes) */
.sugestoes-enter        { animation: sugestoesUp .32s cubic-bezier(.16,.84,.30,1) both; }
.sugestoes-leave        { animation: sugestoesDown .22s ease-in both; }

@keyframes sugestoesUp {
  from { opacity: 0; transform: translateY(24px) scale(.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}
@keyframes sugestoesDown {
  from { opacity: 1; transform: translateY(0)    scale(1);   }
  to   { opacity: 0; transform: translateY(16px) scale(.97); }
}

/* Em telas pequenas, o popup ocupa quase a tela inteira */
@media (max-width: 640px) {
  .sugestoes-card {
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none !important;
  }
}
