/* ---------- Landing page (/ e /home) — reaproveita a identidade Thyros ZAP
   (azul/teal/roxo), tema escuro/tech no hero, degradê pra branco no resto da
   página. Mesmo truque de alias do styles.css: nomes antigos --lp-orange-*
   continuam existindo (usados no resto deste arquivo), só o valor por trás
   virou a escala azul nova -- evita reescrever cada seletor um por um. ---------- */
:root {
  --lp-sidebar: #07152f;
  --lp-primary-dark: #0f1b3d;
  --lp-accent: #14b8a6;
  --lp-secondary: #8b5cf6;

  --lp-orange-50: #eff6ff;
  --lp-orange-100: #dbeafe;
  --lp-orange-200: #bfdbfe;
  --lp-orange-300: #93c5fd;
  --lp-orange-400: #60a5fa;
  --lp-orange-500: #3b82f6;
  --lp-orange-600: #2563eb;
  --lp-orange-700: #1d4ed8;
  --lp-orange-900: #1e3a8a;
  --lp-ink: #0f172a;
  --lp-ink-soft: #475569;
}
* { box-sizing: border-box; }
.hidden { display: none !important; }
html { scroll-behavior: smooth; }
body.landing-body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--lp-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Nav ---------- */
.lp-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 6vw;
  background: rgba(7, 21, 47, 0.55);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background .2s;
}
.lp-nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: #fff; }
.lp-nav-logo .mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--lp-accent) 0%, var(--lp-orange-600) 55%, var(--lp-secondary) 100%);
  display: flex; align-items: center; justify-content: center; font-weight: 900; color: #fff;
  box-shadow: 0 0 24px rgba(20, 184, 166, 0.6);
}
.lp-nav-links { display: flex; align-items: center; gap: 36px; }
.lp-nav-links a {
  color: rgba(255,255,255,0.82); text-decoration: none; font-size: 14px; font-weight: 600;
  transition: color .15s;
}
.lp-nav-links a:hover { color: #fff; }
.lp-nav-cta {
  background: linear-gradient(135deg, var(--lp-accent) 0%, var(--lp-orange-600) 55%, var(--lp-secondary) 100%);
  color: #fff; border: none; padding: 10px 22px; border-radius: 30px;
  font-weight: 700; font-size: 13.5px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center;
  box-shadow: 0 4px 20px rgba(20, 184, 166, 0.45);
  transition: transform .15s, box-shadow .15s;
}
.lp-nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 26px rgba(20, 184, 166, 0.6); }
.lp-nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }
.lp-nav.scrolled { background: rgba(7, 21, 47, 0.86); box-shadow: 0 6px 28px rgba(7, 21, 47, 0.35); }

/* ---------- Hero ---------- */
.lp-hero {
  position: relative; overflow: hidden;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 140px 6vw 100px;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,0.08), transparent 40%),
    radial-gradient(circle at 80% 85%, rgba(139,92,246,0.20), transparent 45%),
    linear-gradient(160deg, #060d1c 0%, var(--lp-sidebar) 42%, var(--lp-primary-dark) 100%);
}
.lp-hero-blob { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.lp-hero-blob-1 { width: 560px; height: 560px; top: -180px; left: -160px; background: radial-gradient(circle, var(--lp-accent), transparent 70%); opacity: .4; animation: lp-float 14s ease-in-out infinite; }
.lp-hero-blob-2 { width: 480px; height: 480px; bottom: -160px; right: -120px; background: radial-gradient(circle, var(--lp-secondary), transparent 70%); opacity: .28; animation: lp-float 18s ease-in-out infinite reverse; }
.lp-hero-blob-3 { width: 360px; height: 360px; top: 30%; right: 15%; background: radial-gradient(circle, #60a5fa, transparent 70%); opacity: .22; animation: lp-float 16s ease-in-out infinite; }
@keyframes lp-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.06); }
}
.lp-hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent);
}
.lp-hero-inner { position: relative; z-index: 1; max-width: 880px; text-align: center; }
.lp-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  color: var(--lp-orange-200); padding: 7px 16px; border-radius: 30px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em; margin-bottom: 26px;
}
.lp-hero h1 {
  font-size: clamp(34px, 6vw, 64px); line-height: 1.08; font-weight: 800; margin: 0 0 22px;
  color: #fff;
}
.lp-hero h1 .grad {
  background: linear-gradient(90deg, #5eead4, #93c5fd, #c4b5fd, #5eead4);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: lpShine 5s linear infinite;
}
.lp-hero p.lead {
  font-size: clamp(15px, 2vw, 19px); color: rgba(255,255,255,0.72); max-width: 620px; margin: 0 auto 38px;
  line-height: 1.6;
}
.lp-hero-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.lp-btn-primary {
  background: linear-gradient(135deg, var(--lp-accent) 0%, var(--lp-orange-600) 55%, var(--lp-secondary) 100%);
  color: #fff; border: none; padding: 15px 32px; border-radius: 14px;
  font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; display: inline-block;
  box-shadow: 0 8px 30px rgba(20, 184, 166, 0.5);
  transition: transform .15s, box-shadow .15s;
}
.lp-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(20, 184, 166, 0.65); animation-play-state: paused; }
.lp-hero .lp-btn-primary { animation: lpPulseGlow 3.2s ease-in-out infinite; }
.lp-btn-ghost {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.2); color: #fff;
  padding: 15px 32px; border-radius: 14px; font-weight: 700; font-size: 15px; cursor: pointer;
  text-decoration: none; display: inline-block; transition: background .15s;
}
.lp-btn-ghost:hover { background: rgba(255,255,255,0.12); }
.lp-hero-stats { display: flex; justify-content: center; gap: 48px; margin-top: 64px; flex-wrap: wrap; }
.lp-hero-stat { text-align: center; }
.lp-hero-stat .num { font-size: 30px; font-weight: 800; color: #fff; }
.lp-hero-stat .label { font-size: 12.5px; color: rgba(255,255,255,0.6); margin-top: 2px; }

/* ---------- Animações ---------- */
@keyframes lpFadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lpShine { to { background-position: 200% center; } }
@keyframes lpPulseGlow { 0%, 100% { box-shadow: 0 8px 30px rgba(20, 184, 166, 0.5); } 50% { box-shadow: 0 8px 44px rgba(20, 184, 166, 0.85); } }

.lp-hero-badge, .lp-hero h1, .lp-hero p.lead, .lp-hero-actions, .lp-hero-stats {
  opacity: 0; animation: lpFadeUp .8s cubic-bezier(.22, 1, .36, 1) forwards;
}
.lp-hero-badge { animation-delay: .05s; }
.lp-hero h1 { animation-delay: .15s; }
.lp-hero p.lead { animation-delay: .28s; }
.lp-hero-actions { animation-delay: .4s; }
.lp-hero-stats { animation-delay: .52s; }

.lp-reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
}
.lp-reveal.in-view { opacity: 1; transform: translateY(0); }
.lp-reveal-d1 { transition-delay: .08s; }
.lp-reveal-d2 { transition-delay: .16s; }
.lp-reveal-d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .lp-hero-badge, .lp-hero h1, .lp-hero p.lead, .lp-hero-actions, .lp-hero-stats,
  .lp-hero h1 .grad, .lp-hero .lp-btn-primary, .lp-hero-blob {
    animation: none !important; opacity: 1; transform: none;
  }
  .lp-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Sections (light) ---------- */
.lp-section { padding: 100px 6vw; max-width: 1200px; margin: 0 auto; }
.lp-section-eyebrow { text-align: center; color: var(--lp-orange-600); font-weight: 800; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.lp-section-title { text-align: center; font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin: 0 0 16px; color: var(--lp-ink); }
.lp-section-sub { text-align: center; color: var(--lp-ink-soft); font-size: 15.5px; max-width: 560px; margin: 0 auto 60px; line-height: 1.6; }

/* ---------- Recursos ---------- */
.lp-features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.lp-feature-card {
  background: linear-gradient(180deg, #fff, var(--lp-orange-50));
  border: 1px solid var(--lp-orange-100); border-radius: 20px; padding: 28px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.lp-feature-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(37, 99, 235, 0.12); border-color: var(--lp-orange-300); }
.lp-feature-icon {
  width: 48px; height: 48px; border-radius: 14px; font-size: 22px;
  background: linear-gradient(135deg, var(--lp-orange-500), var(--lp-orange-700));
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}
.lp-feature-card h3 { font-size: 16.5px; margin: 0 0 8px; }
.lp-feature-card p { font-size: 13.5px; color: var(--lp-ink-soft); line-height: 1.6; margin: 0; }

/* ---------- Planos ---------- */
.lp-plans-section { background: linear-gradient(180deg, var(--lp-orange-50), #fff); }
.lp-plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 1080px; margin: 0 auto; }
@media (max-width: 860px) {
  .lp-plans-grid { grid-template-columns: 1fr; max-width: 420px; }
}
.lp-plan-card {
  position: relative;
  background: #fff; border: 1.5px solid var(--lp-orange-100); border-radius: 24px; padding: 36px 30px;
  display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s;
}
.lp-plan-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(37, 99, 235, 0.16); }
.lp-plan-card.featured {
  border: none;
  background: linear-gradient(160deg, var(--lp-orange-700), var(--lp-orange-900));
  color: #fff; box-shadow: 0 20px 60px rgba(15, 27, 61, 0.4);
}
.lp-plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-orange-500)); color: #fff;
  font-size: 11px; font-weight: 800; padding: 5px 16px; border-radius: 20px; letter-spacing: .03em;
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.5);
}
.lp-plan-name { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.lp-plan-desc { font-size: 13px; opacity: .75; margin-bottom: 22px; min-height: 34px; }
.lp-plan-price { font-size: 40px; font-weight: 800; margin-bottom: 4px; }
.lp-plan-price span { font-size: 14px; font-weight: 600; opacity: .65; }
.lp-plan-per-agent { font-size: 12.5px; opacity: .65; margin: -2px 0 18px; }
.lp-plan-features { list-style: none; padding: 0; margin: 22px 0 28px; flex: 1; }
.lp-plan-features li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; padding: 7px 0; opacity: .9; }
.lp-plan-features li::before { content: "✓"; color: var(--lp-orange-400); font-weight: 800; }
.lp-plan-card.featured .lp-plan-features li::before { color: #5eead4; }
.lp-plan-cta {
  text-align: center; padding: 13px; border-radius: 12px; font-weight: 700; font-size: 14px;
  text-decoration: none; border: 1.5px solid var(--lp-orange-500); color: var(--lp-orange-600);
  transition: background .15s, color .15s;
}
.lp-plan-cta:hover { background: var(--lp-orange-50); }
.lp-plan-card.featured .lp-plan-cta {
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-orange-500)); color: #fff; border: none;
}
.lp-plans-empty { text-align: center; color: var(--lp-ink-soft); padding: 40px; grid-column: 1 / -1; }

.lp-orderbump {
  max-width: 780px; margin: 50px auto 0; padding: 26px 30px; border-radius: 20px;
  background: linear-gradient(120deg, #fffbeb, #fef3c7);
  border: 1.5px dashed #f59e0b;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.lp-orderbump-icon { font-size: 34px; flex-shrink: 0; }
.lp-orderbump-body { flex: 1; min-width: 220px; }
.lp-orderbump-title { font-weight: 800; font-size: 15px; color: #b45309; margin-bottom: 4px; }
.lp-orderbump-desc { font-size: 13px; color: #b45309; line-height: 1.5; }
.lp-orderbump-price { text-align: center; flex-shrink: 0; }
.lp-orderbump-old { font-size: 13px; color: #b45309; text-decoration: line-through; opacity: .75; }
.lp-orderbump-new { font-size: 26px; font-weight: 800; color: #b45309; }
.lp-orderbump-tag { font-size: 10.5px; font-weight: 800; color: #fff; background: #ef4444; padding: 3px 10px; border-radius: 20px; margin-top: 4px; display: inline-block; letter-spacing: .03em; }

/* ---------- Footer ---------- */
.lp-footer { background: var(--lp-orange-50); }
.lp-footer-top {
  max-width: 1200px; margin: 0 auto; padding: 28px 6vw;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.lp-footer-brand { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.lp-footer-brand .mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--lp-accent) 0%, var(--lp-orange-600) 55%, var(--lp-secondary) 100%);
  display: flex; align-items: center; justify-content: center; font-weight: 900; color: #fff; font-size: 14px;
}
.lp-footer-links { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.lp-footer-links a { color: var(--lp-orange-600); text-decoration: none; font-weight: 600; }
.lp-footer-links a:hover { text-decoration: underline; }
.lp-footer-links .dot { color: var(--lp-ink-soft); }
.lp-footer-social { display: flex; gap: 10px; }
.lp-footer-social a {
  width: 36px; height: 36px; border-radius: 10px; background: #fff; border: 1px solid var(--lp-orange-200);
  display: flex; align-items: center; justify-content: center; color: var(--lp-orange-500);
  transition: background .15s, color .15s;
}
.lp-footer-social a:hover { background: var(--lp-orange-500); color: #fff; }
.lp-footer-bottom {
  border-top: 1px solid var(--lp-orange-100); padding: 16px 6vw; max-width: 1200px; margin: 0 auto;
  font-size: 12px; color: var(--lp-ink-soft);
}

/* ---------- Diálogo de Termos/Privacidade ---------- */
.lp-legal-backdrop {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(7, 21, 47, 0.55); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 24px;
}
.lp-legal-backdrop.open { display: flex; }
.lp-legal-modal {
  background: #fff; border-radius: 20px; max-width: 640px; width: 100%; max-height: 80vh;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 30px 80px rgba(43, 16, 85, 0.35);
}
.lp-legal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 26px; border-bottom: 1px solid var(--lp-orange-100);
}
.lp-legal-header h3 { margin: 0; font-size: 17px; color: var(--lp-ink); }
.lp-legal-close {
  background: none; border: none; font-size: 22px; line-height: 1; cursor: pointer;
  color: var(--lp-ink-soft); padding: 4px 8px; border-radius: 8px;
}
.lp-legal-close:hover { background: var(--lp-orange-50); }
.lp-legal-body {
  padding: 22px 26px; overflow-y: auto;
  font-size: 13.5px; line-height: 1.7; color: var(--lp-ink-soft);
}
.lp-legal-body h2, .lp-legal-body h3, .lp-legal-body h4 {
  color: var(--lp-ink); line-height: 1.35; margin: 22px 0 8px;
}
.lp-legal-body h2:first-child, .lp-legal-body h3:first-child, .lp-legal-body h4:first-child { margin-top: 0; }
.lp-legal-body h2 { font-size: 16px; font-weight: 800; }
.lp-legal-body h3 { font-size: 14.5px; font-weight: 700; }
.lp-legal-body h4 { font-size: 13.5px; font-weight: 700; }
.lp-legal-body p { margin: 0 0 12px; }
.lp-legal-body strong { color: var(--lp-ink); font-weight: 700; }
.lp-legal-body ul { margin: 0 0 12px; padding-left: 20px; }
.lp-legal-body li { margin-bottom: 5px; }
.lp-legal-body hr { border: none; border-top: 1px solid var(--lp-orange-100); margin: 20px 0; }

/* ---------- Login (modal flutuante sobre a home, com desfoque) ---------- */
.lp-login-backdrop {
  display: none; position: fixed; inset: 0; top: var(--app-vh-offset, 0px); height: var(--app-vh, 100vh); z-index: 110;
  background: radial-gradient(circle at 30% 20%, rgba(37,99,235,.18), transparent 55%), rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  align-items: center; justify-content: center; padding: 24px;
  animation: lpLoginScrimIn .18s ease-out;
}
.lp-login-backdrop.open { display: flex; }
@keyframes lpLoginScrimIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes lpLoginCardIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.lp-login-modal {
  position: relative; background: rgba(255,255,255,0.96); border-radius: 20px;
  box-shadow: 0 30px 80px rgba(43, 16, 85, 0.4), 0 0 0 1px rgba(255,255,255,0.6) inset;
  padding: 40px 36px; width: 380px; max-width: 100%;
  animation: lpLoginCardIn .22s cubic-bezier(.2,.9,.3,1.2);
  /* var(--app-vh) (api.js) em vez de vh estático -- teclado aberto no
     mobile encolhe a área visível sem mudar vh; sem isso o modal podia
     ficar mais alto que o espaço de verdade acima do teclado. */
  max-height: calc(var(--app-vh, 100vh) * 0.9); overflow-y: auto;
}
.lp-login-close {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%;
  background: none; border: none; font-size: 20px; line-height: 1; cursor: pointer; color: var(--lp-ink-soft);
}
.lp-login-close:hover { background: var(--lp-orange-50); }
.lp-login-logo { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--lp-ink); margin-bottom: 6px; }
.lp-login-logo .mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--lp-accent) 0%, var(--lp-orange-600) 55%, var(--lp-secondary) 100%);
  display: flex; align-items: center; justify-content: center; font-weight: 900; color: #fff; font-size: 16px;
}
.lp-login-sub { text-align: center; color: var(--lp-ink-soft); font-size: 12.5px; margin: 0 0 22px; }
#lp-login-form label { display: block; font-size: 12.5px; font-weight: 700; color: var(--lp-ink); margin: 14px 0 6px; }
#lp-login-form label:first-child { margin-top: 0; }
#lp-login-form input {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--lp-orange-200);
  font-size: 13.5px; font-family: inherit; color: var(--lp-ink); background: #fff;
}
#lp-login-form input:focus { outline: none; border-color: var(--lp-orange-500); box-shadow: 0 0 0 3px var(--lp-orange-100); }
.lp-login-submit { width: 100%; text-align: center; margin-top: 20px; border: none; font-family: inherit; }
.lp-login-error { color: #b91c1c; font-size: 12.5px; margin: 10px 0 0; }
@media (prefers-reduced-motion: reduce) {
  .lp-login-backdrop, .lp-login-modal { animation: none; }
}

@media (max-width: 760px) {
  /* Fechado: opacity:0 + visibility:hidden garante zero pixels
     visíveis/clicáveis fora da tela, sem depender de "empurrar 130% da
     ALTURA DO PRÓPRIO elemento" pra fora -- essa conta é relativa ao
     elemento (não da viewport), então um menu curto (poucos links) nunca
     saía de vez, deixando o último item (o botão "Fazer login") vazando por
     cima da barra de navegação mesmo com o menu "fechado". */
  .lp-nav-links {
    position: fixed; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(7, 21, 47, 0.97); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); padding: 10px 0;
    transform: translateY(-20px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform var(--transition-base), opacity var(--transition-base), visibility var(--transition-base);
  }
  .lp-nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .lp-nav-links a, .lp-nav-links .lp-nav-cta { width: 100%; text-align: center; padding: 14px; border-radius: 0; }
  .lp-nav-toggle { display: block; }
  .lp-hero-stats { gap: 28px; }
}
