/* ========================================================
   HOME PAGE - ESTILOS EXCLUSIVOS
   ======================================================== */

.hero {
  min-height: calc(100vh - 74px);
  min-height: calc(100dvh - 74px);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 16px 0 32px;
  text-align: center;
  position: relative;
  background-color: #07090B;
  background-image:
    linear-gradient(180deg, rgba(11, 13, 15, 0.72) 0%, rgba(11, 13, 15, 0.88) 50%, var(--bg-deep) 100%),
    radial-gradient(circle at 50% 25%, rgba(11, 13, 15, 0.35) 0%, rgba(11, 13, 15, 0.95) 85%),
    url('../../assets/tablesy_showcase.webp');
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
}

.hero-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  width: 100%;
}

.hero-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  padding: 10px 0 24px;
}

.hero-title {
  font-size: clamp(2rem, 3.2vw, 3.15rem);
  max-width: 1140px;
  margin: 0 auto 16px;
  letter-spacing: -0.025em;
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.85);
}

/* Mantém o recuo superior desejado exclusivamente em telas de desktop */
@media (min-width: 993px) {
  .hero-title {
    margin-top: -100px;
  }
}

.hero-line {
  display: inline-block;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .hero-line {
    white-space: normal;
  }
}

.hero-subtitle {
  font-size: 1.15rem;
  max-width: 980px;
  margin: 0 auto 36px;
  color: #c8c9b5;
  line-height: 1.55;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 35px;
}

.hero-cta #btn-hero-start {
  min-width: 330px;
}

.hero-cta #btn-hero-demo {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
}

.hero-cta #btn-hero-demo:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  border-color: var(--c-cream);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 940px;
  width: 100%;
  margin: 0 auto;
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.stat-item:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
}

.stat-item h4 {
  font-size: 1.8rem;
  color: var(--c-cream);
  margin-bottom: 6px;
}

.stat-item p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ========================================================
   SEÇÃO: ANTES VS DEPOIS COM TABLESY (100vh / 100dvh)
   ======================================================== */
.section-comparison {
  min-height: calc(100vh - 74px);
  min-height: calc(100dvh - 74px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 32px 0;
  position: relative;
  background: rgba(0, 0, 0, 0.25);
  scroll-margin-top: 74px;
}

.comparison-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.section-comparison .section-header {
  max-width: 1100px;
  margin: 0 auto 32px;
}

.section-comparison .section-title {
  white-space: nowrap;
  font-size: clamp(1.8rem, 2.5vw, 2.35rem);
  letter-spacing: -0.02em;
}

.section-comparison .section-desc {
  white-space: nowrap;
  font-size: clamp(0.95rem, 1.15vw, 1.08rem);
}

@media (max-width: 860px) {

  .section-comparison .section-title,
  .section-comparison .section-desc {
    white-space: normal;
  }
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 36px;
}

.comp-card {
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  position: relative;
  backdrop-filter: none;
}

.comp-card.tradicional {
  border-color: rgba(239, 68, 68, 0.25);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.03) 0%, var(--bg-card) 100%);
}

.comp-card.tablesy {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.04) 0%, var(--bg-card) 100%);
  box-shadow: none;
  backdrop-filter: none;
}

.comp-col-header {
  text-align: center;
  margin-bottom: 24px;
}

.comp-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-cream);
  margin-bottom: 6px;
}

.comp-title {
  font-size: 1.45rem;
  color: var(--text-bright);
  font-weight: 700;
  margin-bottom: 0;
}

.comp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comp-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--text-main);
}

.comp-list li strong {
  color: var(--text-bright);
}

.comp-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.comp-icon-bad {
  color: #ef4444;
}

.comp-icon-good {
  color: var(--emerald);
}

/* ========================================================
   SEÇÃO: PREÇOS RESUMIDOS (100vh / 100dvh)
   ======================================================== */
.section-pricing {
  min-height: calc(100vh - 74px);
  min-height: calc(100dvh - 74px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 24px 0;
  position: relative;
  background: rgba(0, 0, 0, 0.3);
  scroll-margin-top: 74px;
}

.pricing-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.section-pricing .section-header {
  max-width: 1100px;
  margin: 0 auto 24px;
  text-align: center;
}

.section-pricing .section-title {
  white-space: nowrap;
  font-size: clamp(1.8rem, 2.5vw, 2.35rem);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-pricing .section-desc {
  white-space: nowrap;
  font-size: clamp(0.92rem, 1.1vw, 1.05rem);
}

@media (max-width: 900px) {
  .section-pricing {
    min-height: auto;
    padding: 60px 0;
  }

  .section-pricing .section-title,
  .section-pricing .section-desc {
    white-space: normal;
  }
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  width: 100%;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition);
  backdrop-filter: none;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--c-cream);
  background: linear-gradient(180deg, rgba(222, 223, 197, 0.05) 0%, var(--bg-card) 100%);
  box-shadow: none;
  backdrop-filter: none;
}

.featured-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-cream);
  color: #0B0D0F;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

.plan-name {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.plan-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  min-height: 42px;
  margin-bottom: 20px;
  line-height: 1.45;
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-bright);
  font-family: var(--font-heading);
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 22px;
}

.plan-price .period {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dim);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.plan-features li {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
}

.plan-features li span {
  color: var(--text-main);
  font-weight: 500;
}

.plan-features li.disabled span {
  color: var(--text-dim);
}

.plan-icon {
  width: 17px;
  height: 17px;
  min-width: 17px;
  flex-shrink: 0;
}

.plan-icon-check {
  color: var(--emerald);
}

.plan-icon-cross {
  color: #ef4444;
  opacity: 0.7;
}

/* ========================================================
   FAQ RESUMIDO
   ======================================================== */
.faq-grid {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  padding: 22px 24px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question span:last-child {
  font-size: 1.3rem;
  color: var(--c-cream);
  transition: transform 0.25s ease;
}

.faq-item.active .faq-question span:last-child {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Banner CTA Final */
.cta-banner {
  background: linear-gradient(135deg, rgba(222, 223, 197, 0.12) 0%, rgba(18, 20, 23, 0.9) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
  box-shadow: var(--shadow-glow);
}

.cta-banner h2 {
  font-size: 2.6rem;
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 32px;
}

/* Responsividade Home */
@media (max-width: 992px) {
  .hero {
    min-height: auto;
    padding: 32px 0 44px;
  }

  .hero-container {
    justify-content: flex-start;
  }

  .hero-body {
    padding: 0 0 16px;
  }

  .hero-title {
    font-size: clamp(1.75rem, 5.5vw, 2.35rem);
    margin: 16px auto 16px !important;
    line-height: 1.22;
  }

  .hero-title br {
    display: none;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin: 0 auto 28px;
    padding: 0 8px;
  }

  .hero-cta {
    width: 100%;
    margin-bottom: 28px;
  }

  .hero-cta #btn-hero-start {
    min-width: 0;
    width: 100%;
    max-width: 320px;
  }

  .hero-cta #btn-hero-demo {
    width: 100%;
    max-width: 320px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
  }

  .stat-item {
    padding: 20px 16px;
  }

  .section-comparison,
  .pricing-section {
    min-height: auto;
    padding: 56px 0;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 24px auto 0;
  }
}

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

  .hero-title {
    font-size: 1.65rem;
    margin: 16px auto 16px !important;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 0.94rem;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
  }
}