/* Landing publica (venda do SaaS a novos donos de conta) -- usa as mesmas
   variaveis de cor/tema de app.css, layout proprio (nao e o app shell do
   painel: sem bottom-nav, sem largura fixa de mobile-primeiro). */
body.landing {
  overflow-x: hidden;
  background-image:
    radial-gradient(680px circle at 85% -10%, color-mix(in srgb, var(--primary) 8%, transparent), transparent 60%),
    radial-gradient(560px circle at -5% 30%, color-mix(in srgb, var(--primary) 5%, transparent), transparent 55%);
  background-attachment: fixed;
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.3) blur(10px);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  border-bottom: 1px solid transparent;
}
.landing-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.05);
}
.landing-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 20px;
}
.landing-brand {
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  white-space: nowrap;
}
.bat-icon {
  width: 26px;
  height: 16px;
  flex-shrink: 0;
}
.landing-nav {
  display: flex;
  gap: 24px;
  flex: 1;
  justify-content: center;
}
.landing-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.landing-nav a:hover { color: var(--text); }
.landing-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
}
@media (hover: hover) {
  .icon-btn:hover { color: var(--primary); border-color: var(--primary); }
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
}
.btn-text:hover { color: var(--primary); }

.hero {
  position: relative;
  max-width: 1080px;
  margin: 24px auto 64px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  overflow: hidden;
}
.hero-bat-watermark {
  position: absolute;
  top: -40px;
  right: -60px;
  width: 420px;
  height: 252px;
  color: var(--primary);
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}
.hero-copy, .hero-visual { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 16px;
  background: linear-gradient(135deg, var(--text), color-mix(in srgb, var(--primary) 55%, var(--text)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 28px;
  max-width: 46ch;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-stat strong { font-size: 22px; font-weight: 800; color: var(--text); }
.hero-stat span { font-size: 12.5px; color: var(--muted); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: var(--primary-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  box-shadow: var(--shadow-primary);
}

/* --- mockup de telefone com o fluxo real do produto (pedido -> entrega) --- */
.hero-visual { display: flex; justify-content: center; }
.phone-mock {
  width: 280px;
  border-radius: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 14px 12px 20px;
}
.phone-notch {
  width: 70px;
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  margin: 0 auto 14px;
}
.phone-screen {
  background: var(--bg);
  border-radius: 20px;
  padding: 16px 12px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-bubble {
  font-size: 12.5px;
  line-height: 1.5;
  padding: 10px 12px;
  border-radius: 14px;
  max-width: 88%;
  opacity: 0;
  animation: bubble-in 0.4s ease forwards;
}
.chat-bubble.in {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: var(--primary-text);
  border-bottom-right-radius: 4px;
  animation-delay: 0.2s;
}
.chat-bubble.out {
  align-self: flex-start;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  animation-delay: 1s;
}
.chat-bubble.out i { color: var(--success); margin-right: 4px; }
.chat-bubble.out.delayed { animation-delay: 2.4s; }
@keyframes bubble-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .chat-bubble { animation: none; opacity: 1; }
}

section h2 {
  font-size: 26px;
  margin: 0 0 8px;
  text-align: center;
  letter-spacing: -0.01em;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
  margin: 0 0 32px;
}

/* --- como funciona --- */
.how {
  max-width: 1080px;
  margin: 0 auto 64px;
  padding: 0 20px;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.how-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 22px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.how-num {
  position: absolute;
  top: -14px;
  left: 22px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-text);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.how-step > i {
  font-size: 20px;
  color: var(--primary);
  background: var(--primary-soft);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0 14px;
}
.how-step h3 { margin: 0 0 8px; font-size: 16px; }
.how-step p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* --- destaque (credito automatico sem comprovativo) --- */
.highlight {
  max-width: 1080px;
  margin: 0 auto 64px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: linear-gradient(135deg, var(--primary-soft), var(--surface));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 32px;
}
.highlight-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: var(--primary-text);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-primary);
}
.highlight-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.highlight-copy h2 { text-align: left; font-size: 22px; margin: 0 0 12px; }
.highlight-copy p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; max-width: 68ch; }
@media (max-width: 620px) {
  .highlight { flex-direction: column; padding: 24px; }
}

/* --- testemunhos --- */
.testimonials {
  max-width: 1080px;
  margin: 0 auto 64px;
  padding: 0 20px;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.testimonials-grid[hidden] { display: none; }
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.testimonial-stars { color: var(--warning); font-size: 12px; letter-spacing: 2px; }
.testimonial-quote {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
}
.testimonial-quote::before { content: '\201C'; }
.testimonial-quote::after { content: '\201D'; }
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: var(--primary-text);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial-name { font-size: 13.5px; font-weight: 700; }
.testimonial-role { font-size: 12px; color: var(--muted); }

/* --- features --- */
.features {
  max-width: 1080px;
  margin: 0 auto 64px;
  padding: 0 20px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 18px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.feature i {
  font-size: 18px;
  color: var(--primary);
  background: var(--primary-soft);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.feature h3 { margin: 0 0 6px; font-size: 15px; }
.feature p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }

/* --- planos --- */
.plans {
  max-width: 1080px;
  margin: 0 auto 64px;
  padding: 0 20px;
  text-align: center;
}
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  text-align: left;
}
.plan-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.plan-card.highlighted {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}
.plan-badge {
  position: absolute;
  top: -11px;
  right: 20px;
  background: var(--primary);
  color: var(--primary-text);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}
.plan-card h3 { margin: 0 0 8px; font-size: 17px; }
.plan-price { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.plan-price span { font-size: 13px; font-weight: 600; color: var(--muted); }
.plan-desc { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; }
.plan-features { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 8px; }
.plan-features li { font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.plan-features i { color: var(--success); font-size: 12px; }
.plan-cta {
  margin-top: auto;
  text-align: center;
  padding: 11px;
  border-radius: 10px;
  border: 1px solid var(--primary);
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 13.5px;
}
@media (hover: hover) {
  .plan-cta:hover { background: var(--primary-soft); }
  .how-step:hover, .feature:hover, .testimonial-card:hover, .plan-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
    box-shadow: var(--shadow-lg);
  }
  .btn-primary:hover { box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3); transform: translateY(-1px); }
  .btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
}
.btn-primary { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn-ghost { transition: border-color 0.15s ease, color 0.15s ease; }
.plans-grid .empty {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 14px;
  padding: 32px 20px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 16px;
}

/* --- faq --- */
.faq {
  max-width: 760px;
  margin: 0 auto 64px;
  padding: 0 20px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px 18px;
}
.faq-item summary {
  padding: 14px 0;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 12px;
  color: var(--muted);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.contact {
  max-width: 480px;
  margin: 0 auto 48px;
  padding: 40px 20px;
  text-align: center;
  background: var(--surface-alt);
  border-radius: 20px;
}
.contact h2 { margin: 0 0 8px; font-size: 22px; }
.contact p { color: var(--muted); margin: 0 0 20px; }

.landing-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: 12px;
}
.footer-login {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}
.footer-login:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .landing-nav { display: none; }
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-copy p { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero h1 { font-size: 30px; }
  .phone-mock { width: 100%; max-width: 300px; }
  .hero-bat-watermark { opacity: 0.04; }
}
@media (max-width: 420px) {
  .landing-header-inner { flex-wrap: wrap; row-gap: 10px; }
  .landing-header-actions { width: 100%; justify-content: flex-end; }
}
