@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');
@import "tailwindcss";

@layer base {
  html { @apply font-sans; }
  body { @apply bg-gray-50 text-gray-900; }
  .dark body { @apply bg-gray-900 text-gray-100; }

  h1, h2, h3, h4, h5, h6 { @apply text-gray-900 dark:text-gray-50; }
  a { @apply text-red-600 hover:text-red-700; }
  .dark a { @apply text-red-400 hover:text-red-300; }

  button { @apply font-medium; }
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"],
input[type="checkbox"] {
	cursor: pointer;
}



/* Também aplicar em elementos com role="button" para acessibilidade */
[role="button"] {
	cursor: pointer;
}

/* Fallbacks rápidos para o palette `primary` (quando Tailwind não gerar) */
.text-primary-50 { color: #eff6ff; }
.text-primary-100 { color: #dbeafe; }
.text-primary-200 { color: #bfdbfe; }
.text-primary-300 { color: #93c5fd; }
.text-primary-400 { color: #60a5fa; }
.text-primary-500 { color: #3b82f6; }
.text-primary-600 { color: #2563eb; }
.text-primary-700 { color: #1d4ed8; }
.text-primary-800 { color: #1e40af; }
.text-primary-900 { color: #1e3a8a; }

.bg-primary-50 { background-color: #eff6ff; }
.bg-primary-100 { background-color: #dbeafe; }
.bg-primary-200 { background-color: #bfdbfe; }
.bg-primary-300 { background-color: #93c5fd; }
.bg-primary-400 { background-color: #60a5fa; }
.bg-primary-500 { background-color: #3b82f6; }
.bg-primary-600 { background-color: #2563eb; }
.bg-primary-700 { background-color: #1d4ed8; }
.bg-primary-800 { background-color: #1e40af; }
.bg-primary-900 { background-color: #1e3a8a; }

.border-primary-50 { border-color: #eff6ff; }
.border-primary-100 { border-color: #dbeafe; }
.border-primary-200 { border-color: #bfdbfe; }
.border-primary-300 { border-color: #93c5fd; }
.border-primary-400 { border-color: #60a5fa; }
.border-primary-500 { border-color: #3b82f6; }
.border-primary-600 { border-color: #2563eb; }
.border-primary-700 { border-color: #1d4ed8; }
.border-primary-800 { border-color: #1e40af; }
.border-primary-900 { border-color: #1e3a8a; }

/* Small neutral step between gray-100 and gray-200 for subtle surfaces */
.bg-gray-150 { background-color: #eceff3; }

/* Tornar labels com for clicáveis visualmente */
label[for] { cursor: pointer; }

/* Number inputs: remove native spinners so we can control the visual style */
input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Keep select options aligned with the app palette where the browser allows it */
select option {
  background-color: #f9fafb;
  color: #111827;
}

.dark select option {
  background-color: #1f2937;
  color: #f3f4f6;
}

.turbo-frame-loader {
  position: relative;
}

.turbo-frame-loader__content {
  transition: opacity 150ms ease;
}

.turbo-frame-loader__spinner {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: rgb(255 255 255 / 0.82);
  backdrop-filter: blur(2px);
}

.dark .turbo-frame-loader__spinner {
  background: rgb(3 7 18 / 0.82);
}

turbo-frame[busy] .turbo-frame-loader__content {
  opacity: 0.35;
}

turbo-frame[busy] .turbo-frame-loader__spinner {
  display: flex;
}

/* ===============================
   Landing Page — KA-Launchly Theme
   =============================== */

:root {
  color-scheme: light;
  --bg: 248 250 252;
  --fg: 15 23 42;
  --muted: 71 85 105;
  --surface: 255 255 255;
  --surface-soft: 241 245 249;
  --surface-strong: 255 255 255;
  --line: 148 163 184;
  --line-soft: 226 232 240;
  --shadow: 15 23 42;
  --primary: 239 68 68;
  --secondary: 244 63 94;
  --accent: 234 88 12;
  --success: 34 197 94;
  --warning: 245 158 11;
  --danger: 248 113 113;
  --grid-line: rgba(0, 0, 0, 0.10);
  --noise-opacity: 0.04;
}

.dark {
  color-scheme: dark;
  --bg: 11 17 32;
  --fg: 226 232 240;
  --muted: 148 163 184;
  --surface: 15 23 42;
  --surface-soft: 15 23 42;
  --surface-strong: 30 41 59;
  --line: 71 85 105;
  --line-soft: 30 41 59;
  --shadow: 2 6 23;
  --grid-line: rgba(255, 255, 255, 0.12);
  --noise-opacity: 0.08;
}

body:not(.admin-body) {
  min-height: 100vh;
  color: rgb(var(--fg));
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}


.dark .admin-body main {
  background-color: #08090b;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

.hero-orb {
  z-index: 3;
  position: absolute;
  border-radius: 999px;
  filter: blur(50px);
  opacity: 0.42;
}

.hero-orb.one { background: rgba(var(--primary), 0.52); }
.hero-orb.two { background: rgba(234, 88, 12, 0.38); }
.hero-orb.three { background: rgba(var(--secondary), 0.28); }

.nav-shell {
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(var(--surface-strong), 0.82), rgba(var(--surface), 0.68));
  border: 1px solid rgba(var(--line), 0.18);
  box-shadow: 0 18px 48px rgba(var(--shadow), 0.1);
}

.nav-shell.scrolled {
  background: linear-gradient(180deg, rgba(var(--surface-strong), 0.9), rgba(var(--surface), 0.78));
  box-shadow: 0 24px 68px rgba(var(--shadow), 0.16);
}

.surface {
  background: linear-gradient(180deg, rgba(var(--surface-strong), 0.92), rgba(var(--surface), 0.84));
  border: 1px solid rgba(var(--line), 0.16);
  box-shadow: 0 24px 80px rgba(var(--shadow), 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.surface-soft {
  background: rgba(var(--surface-soft), 0.72);
  border: 1px solid rgba(var(--line), 0.12);
  box-shadow: 0 18px 55px rgba(var(--shadow), 0.06);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 80px rgba(var(--shadow), 0.14), 0 0 0 1px rgba(var(--primary), 0.12);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.3rem;
  border-radius: 999px;
  color: white;
  font-weight: 700;
  box-shadow: 0 18px 40px rgba(var(--primary), 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, rgb(var(--primary)), rgb(234, 88, 12));
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 52px rgba(var(--primary), 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  color: rgb(var(--fg));
  border: 1px solid rgba(var(--line), 0.18);
  background: rgba(var(--surface), 0.7);
  box-shadow: 0 12px 26px rgba(var(--shadow), 0.08);
}

.btn-secondary:hover, .badge-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--primary), 0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  color: rgb(var(--fg));
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--line), 0.18);
  background: rgba(var(--surface), 0.68);
  box-shadow: 0 10px 24px rgba(var(--shadow), 0.06);
}

.section-kicker {
  color: rgb(var(--primary));
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.section-title {
  color: rgb(var(--fg));
  font-weight: 800;
  letter-spacing: -0.04em;
}

.section-copy {
  color: rgb(var(--muted));
  line-height: 1.75;
}

.glow-border { position: relative; }

.glow-border::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(var(--primary), 0.45), rgba(234, 88, 12, 0.18), rgba(var(--secondary), 0.45));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.grid-backdrop { position: relative; }

.grid-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background-image:
    linear-gradient(rgba(var(--line-soft), 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--line-soft), 0.16) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 85%);
}

.dashboard-screen {
  position: relative;
  overflow: hidden;
  border-radius: 1.75rem;
}

.dashboard-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 18%),
    radial-gradient(circle at top right, rgba(var(--primary), 0.22), transparent 26%);
  pointer-events: none;
}

.stat-card, .feature-card, .metric-card,
.testimonial-card, .pricing-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
}

.stat-card::after, .feature-card::after, .pricing-card::after,
.testimonial-card::after, .metric-card::after {
  content: "";
  position: absolute;
  inset: auto -60px -70px auto;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(var(--primary), 0.12), transparent 68%);
  pointer-events: none;
}

.announcement {
  border: 1px solid rgba(var(--line), 0.16);
  background: linear-gradient(135deg, rgba(var(--primary), 0.18), rgba(234, 88, 12, 0.12), rgba(var(--secondary), 0.14));
  box-shadow: 0 12px 30px rgba(var(--shadow), 0.08);
}

.logo-chip {
  border: 1px solid rgba(var(--line), 0.16);
  background: rgba(var(--surface), 0.65);
  backdrop-filter: blur(12px);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  color: white;
  background: linear-gradient(135deg, rgba(var(--primary), 0.9), rgba(234, 88, 12, 0.85));
  box-shadow: 0 18px 30px rgba(var(--primary), 0.18);
}

.pricing-card.popular {
  transform: translateY(-8px);
  box-shadow: 0 32px 80px rgba(var(--primary), 0.18), 0 0 0 1px rgba(var(--primary), 0.18);
}

.pricing-card.popular::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(var(--primary), 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(234, 88, 12, 0.18), transparent 30%);
  pointer-events: none;
}

.accordion-item {
  border: 1px solid rgba(var(--line), 0.14);
  background: rgba(var(--surface), 0.7);
  border-radius: 1.25rem;
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 260ms ease, opacity 220ms ease, transform 220ms ease;
  transform: translateY(-4px);
}

.accordion-item.is-open .accordion-panel {
  max-height: 300px;
  opacity: 1;
  transform: translateY(0);
}

.accordion-icon { transition: transform 220ms ease; }

.accordion-item.is-open .accordion-icon { transform: rotate(45deg); }

.modal-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  transform: translateY(16px) scale(0.98);
  transition: transform 220ms ease;
}

.modal-backdrop.is-open .modal-panel {
  transform: translateY(0) scale(1);
}

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

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 70ms; }
.delay-2 { transition-delay: 140ms; }
.delay-3 { transition-delay: 210ms; }
.delay-4 { transition-delay: 280ms; }

.text-balance { text-wrap: balance; }

.ticker-mask {
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.status-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
  background: rgb(var(--success));
}

.stats-grid > * { min-height: 100%; }

.testimonial-quote { font-size: 1.05rem; line-height: 1.8; }

.swiper-slide { height: auto; }

.swiper-pagination-bullet { background: rgba(var(--line), 0.45); }

.swiper-pagination-bullet-active { background: rgb(var(--primary)); }

.marquee { animation: marquee 28s linear infinite; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 1024px) {
  .pricing-card.popular { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

body[data-controller="landing"] {
  background-color: rgb(var(--bg));
  background-image:
    radial-gradient(circle at top left, rgba(var(--primary), 0.12), transparent 32%),
    radial-gradient(circle at top right, rgba(234, 88, 12, 0.10), transparent 28%),
    radial-gradient(circle at bottom center, rgba(var(--muted), 0.10), transparent 30%);
}

body[data-controller="landing"]::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 120px 120px;
}

.dark body[data-controller="landing"]::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
}


/* ===============================
   Auth Pages (Login / Cadastro)
   =============================== */

.auth-bg {
  position: relative;
  z-index: 0;
  min-height: 100vh;
  background-color: rgb(var(--bg));
  background-image:
    radial-gradient(circle at top left, rgba(var(--primary), 0.12), transparent 32%),
    radial-gradient(circle at top right, rgba(234, 88, 12, 0.10), transparent 28%),
    radial-gradient(circle at bottom center, rgba(var(--muted), 0.10), transparent 30%);
}

.auth-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 120px 120px;
}

.dark .auth-bg::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
}

.auth-bg > *:not(.hero-orb) {
  position: relative;
  z-index: 4;
}

/* Stepper — gradiente laranja (btn-primary pattern) */

.stepper-circle-active {
  background: linear-gradient(135deg, rgb(var(--primary)), rgb(234, 88, 12)) !important;
  border-color: transparent !important;
  color: white !important;
  box-shadow: 0 4px 14px rgba(var(--primary), 0.35);
}

.stepper-line-completed::after {
  background: linear-gradient(90deg, rgb(var(--primary)), rgb(234, 88, 12)) !important;
  border: none !important;
}
