/* =====================================================
   F4CIL DESIGN SYSTEM
   Cores: Roxo #5A2D91  |  Laranja #F06423
   ===================================================== */

:root {
  --purple:       #5A2D91;
  --purple-dark:  #3d1e64;
  --purple-light: #7b4db5;
  --purple-pale:  #f0eaf8;
  --orange:       #F06423;
  --orange-dark:  #c94e1a;
  --orange-light: #ff8c50;
  --orange-pale:  #fff3ed;

  --gray-50:  #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;

  --success: #28a745;
  --danger:  #dc3545;
  --warning: #ffc107;
  --info:    #17a2b8;

  --radius:    8px;
  --radius-lg: 14px;
  --shadow:    0 2px 8px rgba(0,0,0,.10);
  --shadow-lg: 0 4px 20px rgba(0,0,0,.14);

  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--gray-100); color: var(--gray-900); }
a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-light); }

/* ── HEADER ──────────────────────────────────────────── */
.header {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 0;
  box-shadow: var(--shadow);
}

.header .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link { display: flex; align-items: center; }
.logo-img  { height: 56px; width: auto; }

.btn-entrar {
  background: var(--purple);
  color: #fff;
  padding: 9px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 13px;
  transition: background .15s;
}
.btn-entrar:hover { background: var(--purple-dark); color: #fff; }

/* ── HERO ────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 100%);
  color: #fff;
  padding: 90px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '4';
  position: absolute;
  font-size: 520px;
  font-weight: 900;
  color: rgba(255,255,255,.04);
  right: -60px;
  bottom: -120px;
  line-height: 1;
  font-family: var(--font);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-logo {
  height: 120px;
  width: auto;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.hero-content { position: relative; z-index: 1; }

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-content h1 span { color: var(--orange); }

.hero-content p {
  font-size: 1.1rem;
  opacity: 0.75;
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.btn-cta {
  background: var(--orange);
  color: #fff;
  padding: 13px 40px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  display: inline-block;
  transition: background .15s, transform .1s;
}
.btn-cta:hover { background: var(--orange-dark); color: #fff; transform: translateY(-1px); }

/* ── FEATURES ────────────────────────────────────────── */
.features {
  padding: 80px 0;
  background: var(--gray-100);
}

.section-title {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gray-800);
  margin-bottom: 48px;
}

.section-title span { color: var(--purple); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--purple-pale);
  color: var(--purple);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ── FOOTER ──────────────────────────────────────────── */
.footer {
  background: var(--purple-dark);
  color: rgba(255,255,255,.6);
  text-align: center;
  padding: 32px 0;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-logo { height: 32px; width: auto; opacity: 0.8; }

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn-primary   { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-dark); color: #fff; }
.btn-orange    { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); color: #fff; }

/* ── FORMS ───────────────────────────────────────────── */
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--gray-700); margin-bottom: 5px; }
.form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--gray-900);
  background: #fff;
  transition: border .15s, box-shadow .15s;
}
.form-control:focus {
  outline: none;
  border-color: var(--purple-light);
  box-shadow: 0 0 0 3px rgba(90,45,145,.12);
}
.form-control::placeholder { color: var(--gray-400); }

/* ── LOGIN PAGE ──────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  background: var(--purple-dark);
}
.login-brand {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 100%);
  position: relative;
  overflow: hidden;
}
.login-brand::before {
  content: '4';
  position: absolute;
  font-size: 420px;
  font-weight: 900;
  color: rgba(255,255,255,.04);
  right: -60px; bottom: -80px;
  line-height: 1;
  font-family: var(--font);
}
.login-brand .brand-logo-img { height: 72px; width: auto; position: relative; z-index: 1; }
.login-brand .brand-tagline {
  color: rgba(255,255,255,.55);
  font-size: 13px;
  margin-top: 12px;
  letter-spacing: 1px;
  position: relative; z-index: 1;
}
.login-brand .brand-desc {
  margin-top: 32px;
  max-width: 300px;
  text-align: center;
  color: rgba(255,255,255,.45);
  font-size: 13px;
  line-height: 1.6;
  position: relative; z-index: 1;
}
.login-form-panel {
  width: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 40px;
}
.login-box { width: 100%; }
.login-box h2 { font-size: 22px; font-weight: 800; color: var(--gray-900); margin-bottom: 4px; }
.login-box p  { font-size: 13px; color: var(--gray-500); margin-bottom: 28px; }
.login-box .form-control { padding: 11px 14px; font-size: 14px; }
.login-box .btn-primary { width: 100%; padding: 12px; font-size: 14px; justify-content: center; }
.login-error {
  background: #fdecea;
  border: 1px solid #f5c6cb;
  border-radius: var(--radius);
  padding: 10px 14px;
  color: #b71c1c;
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── LOADING ─────────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(90,45,145,.2);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── TOAST ───────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 9999;
}
.toast {
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--gray-900);
  color: #fff;
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  min-width: 240px;
}
.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }

/* ── HEADER NAV ──────────────────────────────────────── */
.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.header-nav a:not(.btn-entrar) {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  transition: color .15s;
}
.header-nav a:not(.btn-entrar):hover { color: var(--purple); }

/* ── HERO ACTIONS ────────────────────────────────────── */
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-cta-ghost {
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
  padding: 11px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  display: inline-block;
  transition: border-color .15s, background .15s;
}
.btn-cta-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }

/* ── SECTION COMMONS ─────────────────────────────────── */
.section-subtitle {
  text-align: center;
  font-size: 14px;
  color: var(--gray-600);
  margin-top: -32px;
  margin-bottom: 48px;
}

/* ── CONHEÇA A SOLUÇÃO ───────────────────────────────── */
.solucao {
  padding: 80px 0;
  background: #fff;
}
.video-wrapper {
  max-width: 800px;
  margin: 0 auto;
}
.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.video-placeholder-inner {
  text-align: center;
  color: var(--gray-500);
}
.play-icon {
  font-size: 52px;
  color: var(--purple-light);
  margin-bottom: 12px;
  opacity: .6;
}
.video-placeholder-inner p {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 4px;
}
.video-placeholder-inner span {
  font-size: 12px;
  color: var(--gray-500);
}

/* ── PLANOS ──────────────────────────────────────────── */
.planos {
  padding: 80px 0;
  background: var(--gray-100);
}
.planos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}
.plano-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  position: relative;
  border: 2px solid transparent;
  transition: box-shadow .2s, transform .2s;
}
.plano-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.plano-destaque {
  border-color: var(--purple);
  transform: scale(1.03);
}
.plano-destaque:hover { transform: scale(1.03) translateY(-3px); }
.plano-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 99px;
  white-space: nowrap;
}
.plano-header { margin-bottom: 20px; }
.plano-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.plano-header p { font-size: 12px; color: var(--gray-500); }
.plano-preco {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
}
.preco-valor {
  font-size: 2rem;
  font-weight: 800;
  color: var(--purple);
}
.preco-per { font-size: 13px; color: var(--gray-500); margin-left: 4px; }
.plano-recursos {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plano-recursos li {
  font-size: 13px;
  color: var(--gray-700);
}
.btn-plano {
  display: block;
  text-align: center;
  padding: 11px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  background: var(--purple);
  color: #fff;
  transition: background .15s;
}
.btn-plano:hover { background: var(--purple-dark); color: #fff; }
.plano-destaque .btn-plano { background: var(--orange); }
.plano-destaque .btn-plano:hover { background: var(--orange-dark); }

/* ── CONTATO ─────────────────────────────────────────── */
.contato {
  padding: 80px 0;
  background: var(--purple-dark);
}
.contato-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.contato-text h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.contato-text p {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  max-width: 420px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.contato-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contato-info li { font-size: 13px; color: rgba(255,255,255,.55); }
.contato-action { text-align: center; }
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  transition: background .15s, transform .1s;
  margin-bottom: 12px;
}
.btn-whatsapp:hover { background: #1ebe5d; color: #fff; transform: translateY(-1px); }
.contato-num { font-size: 13px; color: rgba(255,255,255,.5); }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-content h1 { font-size: 2rem; }
  .header-nav a:not(.btn-entrar) { display: none; }
  .plano-destaque { transform: scale(1); }
  .plano-destaque:hover { transform: translateY(-3px); }
  .contato-box { flex-direction: column; text-align: center; }
  .contato-info { align-items: center; }
  .login-brand { display: none; }
  .login-form-panel { width: 100%; }
}
