/* ============================================================
   LP1 — Design System & Landing Page Styles
   Escopo: isolado, carregado APENAS em lp1.twig
   Fonte: novalp-modelo/css/style.css (adaptado)
   ============================================================ */

/* ---------- Reset & Variables ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Cores Principais */
  --azul-escuro: #185BDC;
  --azul-vibrante: #315DFF;
  --azul-claro: #9acbff;
  --azul-bebe-claro: #00c9ff;

  /* Cores Neutras */
  --branco-padrao: #FFFFFF;
  --fundo-padrao: #F7F8FC;
  --preto-padrao: #141414;
  --texto-secundario: #6c757d;
  --cinza-medio: #EAECEF;
  --cinza-escuro: #F3F4F6;
  --borda-padrao: #E5E7EB;

  /* Semânticas */
  --sucesso: #4cd964;
  --sucesso-dark: #28a745;
  --erro: #fc5286;
  --erro-dark: #dc3545;
  --aviso: #FFAB5A;

  /* Layout */
  --radius-card: 18px;
  --radius-btn: 14px;
  --radius-input: 10px;
  --radius-badge: 6px;
  --radius-metric: 16px;

  --shadow-padrao: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.12);
  --shadow-btn: 0 4px 16px rgba(24, 91, 220, 0.3);
  --shadow-btn-hover: 0 6px 20px rgba(24, 91, 220, 0.45);

  --transition: all 0.2s ease;
  --max-w: 1140px;
}

body.dark {
  --branco-padrao: #1a1a2e !important;
  --fundo-padrao: #0f0f1a !important;
  --preto-padrao: #e0e0e0 !important;
  --cinza-medio: #16213e !important;
  --cinza-escuro: #1b2845 !important;
  --borda-padrao: #2a2a4a !important;
  --texto-secundario: #a0a0b0 !important;
  --shadow-padrao: 0 2px 12px rgba(0, 0, 0, 0.3) !important;
  --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.5) !important;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
    Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 15px;
  color: var(--preto-padrao);
  background: var(--fundo-padrao);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img { max-width: 100%; display: block; border-radius: 8px; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 { color: var(--preto-padrao); margin-bottom: 16px; line-height: 1.3; }
h2 { font-size: 28px; font-weight: 700; }
h3 { font-size: 22px; font-weight: 600; }
h5 { font-size: 18px; font-weight: 600; margin-bottom: 0; }
p  { font-size: 15px; font-weight: 400; margin-bottom: 16px; }
small { font-size: 13px; color: var(--texto-secundario); }

/* ---------- Containers & Grid ---------- */
.main-content {
  padding-top: 30px;
  padding-bottom: 0;
  min-height: calc(100vh - 30px);
}

.innn {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}

.alll {
  padding: 24px 0;
}

/* Espaçamento */
.mb-20 { margin-bottom: 20px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-principal {
  background: var(--azul-escuro);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-principal:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
  background: var(--azul-vibrante);
  color: #fff;
}

.btn-secundario {
  background: transparent;
  color: var(--azul-escuro);
  border: 1.5px solid var(--azul-claro);
}
.btn-secundario:hover {
  background: var(--cinza-escuro);
  transform: translateY(-1px);
}

/* ---------- Cards ---------- */
.d-card {
  background: var(--branco-padrao);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-padrao);
  margin-bottom: 24px;
  transition: var(--transition);
  border: 1px solid var(--borda-padrao);
}

.d-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.d-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--borda-padrao);
}

.d-card-body { padding: 20px 24px; }

/* ---------- Dashboard Metrics ---------- */
.dhs-item {
  border-radius: var(--radius-metric);
  padding: 24px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.dhs-item h3 {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  margin-top: 16px;
}

.dhs-item p {
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 0;
  opacity: 0.9;
}

/* Gradients */
.grad-pedidos   { background: linear-gradient(230deg, #759bff, #843cf6); }
.grad-usuarios  { background: linear-gradient(230deg, #fc5286, #fbaaa2); }
.grad-receita   { background: linear-gradient(230deg, #ffc480, #ffa344); }
.grad-satisfacao { background: linear-gradient(230deg, #4cd964, #00b08c); }

/* ---------- Header Fixo ---------- */
.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 70px;
  background: var(--branco-padrao);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition);
  border-bottom: 1px solid var(--borda-padrao);
}

.app-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--azul-escuro);
}

.app-brand-icon {
  background: var(--azul-escuro);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  flex-shrink: 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--texto-secundario);
}
.header-link:hover { color: var(--azul-escuro); }

/* ---------- Hero Section ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.hero-title span { color: var(--azul-escuro); }

.hero-pills {
  margin-top: 24px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--preto-padrao);
}
.hero-pill-icon {
  background: var(--sucesso);
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

/* ---------- Trust Bar ---------- */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 24px;
  background: var(--branco-padrao);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-padrao);
  margin-top: 24px;
  position: relative;
  z-index: 10;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--texto-secundario);
  font-size: 14px;
}
.trust-item svg { width: 20px; height: 20px; color: var(--azul-escuro); }

/* ---------- Sections ---------- */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: 32px;
  margin-bottom: 12px;
}
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--azul-escuro);
  background: rgba(24, 91, 220, 0.1);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

/* ---------- Problem Grid ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.problem-alert {
  background: rgba(24, 91, 220, 0.05);
  border-left: 4px solid var(--azul-escuro);
  padding: 16px 20px;
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  font-weight: 500;
  color: var(--azul-escuro);
  margin-top: 24px;
}

/* Profile Compare */
.profile-card { margin-bottom: 16px; }
.profile-card .d-card-body { padding: 24px; }
.profile-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.profile-stats { display: flex; gap: 24px; flex-wrap: wrap; }
.stat-box { display: flex; flex-direction: column; gap: 4px; }
.stat-box strong { font-size: 20px; font-weight: 700; line-height: 1; }
.stat-box span { font-size: 12px; color: var(--texto-secundario); }
.text-red   { color: var(--erro) !important; }
.text-green { color: var(--sucesso) !important; }

/* ---------- Steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.step-number {
  background: rgba(24, 91, 220, 0.1);
  color: var(--azul-escuro);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ---------- Catalog ---------- */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.catalog-item-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--texto-secundario);
}
.catalog-item-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--azul-escuro);
  border-radius: 50%;
  flex-shrink: 0;
}
.social-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; overflow: hidden;
}
.social-icon img {
  width: 40px; height: 40px; border-radius: 0;
}

/* ---------- Comparison Table ---------- */
.custom-table {
  width: 100%;
  border-collapse: collapse;
}
.custom-table th, .custom-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--borda-padrao);
}
.custom-table th {
  background: rgba(24, 91, 220, 0.05);
  font-weight: 600;
  color: var(--azul-escuro);
}
.custom-table tr:last-child td { border-bottom: none; }

/* ---------- Testimonials ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.testi-avatar {
  width: 48px; height: 48px;
  background: var(--azul-claro);
  color: var(--azul-escuro);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 20px;
  flex-shrink: 0;
}

/* ---------- FAQ ---------- */
#faq .d-card-body {
  display: block;
  width: 100%;
}
.faq-item {
  border-bottom: 1px solid var(--borda-padrao);
  display: block;
  width: 100%;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--preto-padrao);
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s;
}
.faq-q::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--azul-escuro);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-q:hover { color: var(--azul-escuro); }
.faq-a {
  display: block;
  max-height: 0;
  overflow: hidden;
  color: var(--texto-secundario);
  transition: max-height 0.3s ease, padding-bottom 0.3s ease;
  padding-bottom: 0;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding-bottom: 20px;
}

/* ---------- Footer ---------- */
.app-footer {
  background: var(--branco-padrao);
  border-top: 1px solid var(--borda-padrao);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--texto-secundario);
  font-weight: 500;
}
.footer-links a:hover { color: var(--azul-escuro); }
.footer-bottom {
  border-top: 1px solid var(--borda-padrao);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--texto-secundario);
}

/* ---------- Animations ---------- */
.animate { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.animate.visible { opacity: 1; transform: translateY(0); }

/* ---------- Dark Mode Toggle ---------- */
.dark-mode-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--azul-escuro);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-padrao);
  cursor: pointer;
  z-index: 1000;
  border: none;
  transition: var(--transition);
  font-size: 18px;
}
.dark-mode-toggle:hover {
  transform: scale(1.1);
  background: var(--azul-vibrante);
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .hero-grid, .problem-grid, .footer-grid { grid-template-columns: 1fr; }
  .steps-grid, .catalog-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 32px; }
  .hero-dashboard-img { margin-top: 16px; }
  .trust-bar { margin-top: 24px; }
}

@media (max-width: 767.98px) {
  .steps-grid, .catalog-grid, .testi-grid { grid-template-columns: 1fr; }
  .d-card-head, .d-card-body { padding: 16px; }
  .main-content { padding-top: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
