/* =========================================================
   TReinaCOM Landings - Design System Oficial
   Módulo: Hero, Benefícios, Comparativo, FAQ, CTA e Rodapé
   ========================================================= */

/* HERO Section */
.tc-hero {
  background: linear-gradient(135deg, var(--lp-hero-from) 0%, var(--lp-hero-mid) 50%, var(--lp-hero-to) 100%) !important;
  padding: 60px 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--lp-card-border);
}

.tc-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(99, 102, 241, .06) 0%, transparent 50%), radial-gradient(circle at 70% 50%, rgba(5, 150, 105, .05) 0%, transparent 50%);
  animation: tcPulse 8s ease-in-out infinite;
}

@keyframes tcPulse {
  0%, 100% { opacity: .5; }
  50% { opacity: 1; }
}

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

.tc-hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent2));
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 6px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}

.tc-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--lp-heading) 0%, var(--lp-accent) 60%, var(--lp-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.15;
  margin-bottom: 16px;
}

.tc-hero p {
  font-size: 1.15rem;
  color: var(--lp-text2) !important;
  max-width: 650px;
  margin: 0 auto 32px;
}

.tc-hero-cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.tc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all .2s ease;
  cursor: pointer;
  border: none;
}

.tc-btn-primary {
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent2));
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(99, 102, 241, .3);
}

.tc-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(99, 102, 241, .4);
  color: #fff !important;
}

.tc-btn-secondary {
  background: var(--lp-btn-sec-bg) !important;
  color: var(--lp-text) !important;
  border: 1px solid var(--lp-btn-sec-border) !important;
}

.tc-btn-secondary:hover {
  background: var(--lp-bg2) !important;
}

/* Benefícios Grid */
.tc-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 0;
}

.tc-benefit-card {
  background: var(--lp-card-bg) !important;
  border: 1px solid var(--lp-card-border) !important;
  border-radius: 16px;
  padding: 20px 18px;
  text-align: center;
  transition: all .2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .04);
}

.tc-benefit-card:hover {
  border-color: var(--lp-card-hover) !important;
  transform: translateY(-4px);
  box-shadow: var(--lp-shadow);
}

.tc-benefit-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.tc-benefit-card h3 {
  font-size: 1.15rem;
  color: var(--lp-heading) !important;
  margin-bottom: 8px;
  font-weight: 700;
}

.tc-benefit-card p {
  font-size: .92rem;
  color: var(--lp-text2) !important;
}

/* Indicador de rolagem lateral (visível exclusivamente no mobile) */
.tc-table-scroll-hint {
  display: none;
}

/* Tabela Comparativa */
.tc-comparison-wrapper {
  overflow: auto;
  max-height: 72vh;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--lp-card-border) !important;
  border-radius: 16px;
  background: var(--lp-card-bg) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .04);
  position: relative;
}

.tc-comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .95rem;
}

.tc-comparison-table thead th {
  position: sticky;
  top: 0;
  z-index: 15;
  background: var(--lp-bg2) !important;
  color: var(--lp-accent) !important;
  text-align: left;
  padding: 16px 20px;
  font-weight: 700;
  border-bottom: 2px solid var(--lp-card-border) !important;
  white-space: nowrap;
  box-shadow: 0 2px 6px -1px rgba(15, 23, 42, 0.06);
}

.tc-comparison-table thead th:first-child {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 25 !important;
  background: var(--lp-bg2) !important;
  border-top-left-radius: 15px;
}

.tc-comparison-table thead th:last-child {
  border-top-right-radius: 15px;
}

.tc-comparison-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--lp-card-border) !important;
  color: var(--lp-text) !important;
}

.tc-comparison-table tr:hover td {
  background: var(--lp-table-row-hover) !important;
}

.tc-comparison-table .tc-highlight {
  background: var(--lp-table-highlight) !important;
}

.tc-chk {
  color: var(--lp-green) !important;
  font-weight: 700;
}

.tc-price-col {
  font-weight: 700 !important;
  color: var(--lp-heading) !important;
  white-space: nowrap;
}

.tc-price-col-sale {
  color: var(--lp-green) !important;
}

.tc-table-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.tc-btn-table-view {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--lp-card-bg) !important;
  color: var(--lp-text) !important;
  border: 1px solid var(--lp-card-border) !important;
  font-size: .83rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s ease;
  white-space: nowrap;
}

.tc-btn-table-view:hover {
  background: var(--lp-bg2) !important;
  border-color: var(--lp-accent) !important;
  color: var(--lp-accent) !important;
  transform: translateY(-1px);
}

.tc-btn-table-buy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent2)) !important;
  color: #fff !important;
  font-size: .83rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(99, 102, 241, .2);
}

.tc-btn-table-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, .35);
  color: #fff !important;
}

.tc-btn-table-out {
  background: var(--lp-bg3) !important;
  color: var(--lp-text4) !important;
  border: 1px solid var(--lp-card-border) !important;
  box-shadow: none;
  font-size: .8rem;
  padding: 7px 10px;
}

/* FAQ */
.tc-faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.tc-faq-item {
  border: 1px solid var(--lp-card-border) !important;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--lp-card-bg) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .02);
}

.tc-faq-q {
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600 !important;
  color: var(--lp-heading) !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--lp-card-bg) !important;
  transition: background .2s ease;
}

.tc-faq-q:hover {
  background: var(--lp-bg2) !important;
}

.tc-faq-q::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--lp-accent);
}

.tc-faq-q.open::after { content: '−'; }
.tc-faq-a {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all .3s ease;
  color: var(--lp-text2) !important;
  font-size: .95rem;
}
.tc-faq-a.open {
  padding: 0 24px 18px;
  max-height: 300px;
}
/* CTA Final & Rodapé */
.tc-cta-section {
  background: linear-gradient(135deg, var(--lp-hero-from) 0%, var(--lp-hero-mid) 50%, var(--lp-hero-to) 100%) !important;
  border-top: 1px solid var(--lp-card-border);
  border-bottom: 1px solid var(--lp-card-border);
  text-align: center;
  padding: 60px 0;
}
.tc-cta-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--lp-heading) !important;
  margin-bottom: 16px;
}
.tc-cta-section p {
  color: var(--lp-text2) !important;
  max-width: 550px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
}
.tc-lp-footer {
  text-align: center;
  padding: 32px 24px;
  color: var(--lp-text4) !important;
  font-size: .85rem;
  background: var(--lp-bg) !important;
  border-top: 1px solid var(--lp-card-border);
}

.tc-lp-footer a {
  color: var(--lp-accent) !important;
  text-decoration: none;
}

@media (max-width: 768px) {
  /* Alerta visual de deslize na tabela comparativa exclusivo no mobile */
  .tc-table-scroll-hint {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 12px;
    padding: 8px 14px;
    background: var(--lp-bg2) !important;
    border: 1px solid var(--lp-card-border) !important;
    border-radius: 9999px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--lp-accent) !important;
    text-align: center;
    box-sizing: border-box;
  }

  .tc-scroll-hint-icon {
    font-size: .95rem;
    display: inline-block;
    animation: tcHintSlide 1.5s ease-in-out infinite;
  }

  .tc-scroll-hint-arrows {
    font-weight: 800;
    font-size: .85rem;
    opacity: .8;
  }

  @keyframes tcHintSlide {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
  }

  /* Coluna Produto Fixa (Sticky) e Cabeçalho Sticky no Mobile */
  .tc-comparison-wrapper {
    max-height: 65vh;
  }

  .tc-comparison-table th,
  .tc-comparison-table td {
    padding: 12px 14px;
  }

  /* Cabeçalho Sticky no Mobile */
  .tc-comparison-table thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 15;
    background: var(--lp-bg2) !important;
    box-shadow: 0 3px 8px -2px rgba(15, 23, 42, 0.08);
  }

  /* Célula do Canto (th:first-child): Fixo no Topo E na Esquerda */
  .tc-comparison-table thead th:first-child {
    position: sticky !important;
    left: 0 !important;
    top: 0 !important;
    z-index: 30 !important;
    min-width: 130px;
    max-width: 155px;
    background: var(--lp-bg2) !important;
    border-top-left-radius: 15px;
    box-shadow: 4px 3px 10px -2px rgba(15, 23, 42, 0.12);
    border-right: 1.5px solid var(--lp-card-border) !important;
  }

  /* Células da Coluna Produto no tbody: Fixo na Esquerda */
  .tc-comparison-table tbody td:first-child {
    position: sticky !important;
    left: 0 !important;
    z-index: 10;
    min-width: 130px;
    max-width: 155px;
    background: var(--lp-card-bg) !important;
    word-break: break-word;
    box-shadow: 4px 0 10px -2px rgba(15, 23, 42, 0.1);
    border-right: 1.5px solid var(--lp-card-border) !important;
  }

  .tc-comparison-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 15px;
  }

  .tc-comparison-table tbody tr:hover td:first-child {
    background: var(--lp-table-row-hover) !important;
  }

  .tc-comparison-table tbody tr.tc-highlight td:first-child {
    background: var(--lp-table-highlight) !important;
  }

  .tc-comparison-table td:not(:first-child) {
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .tc-hero {
    padding: 36px 0 28px;
  }

  .tc-cta-section {
    padding: 44px 0;
  }

  .tc-cta-section h2 {
    font-size: 1.8rem;
  }
}
