/* Responsive hero title sizing for landing page */
.hero-title {
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

/* Medium screens (1024px - 1399px): keep text away from face in background */
@media (min-width: 1024px) and (max-width: 1399px) {
  .hero-content-left {
    max-width: 340px;
  }

  .hero-title {
    font-size: clamp(1.85rem, 2.5vw, 2.2rem);
    line-height: 1.2;
  }

  .hero-grid {
    grid-template-columns: 340px 1fr;
    gap: 1.5rem;
    justify-content: space-between;
  }

  .hero-chat-card {
    max-width: 320px;
    margin-left: auto;
  }
}

/* Medium-large screens (1200px - 1600px): more breathing room */
@media (min-width: 1200px) and (max-width: 1599px) {
  .container {
    max-width: 1140px;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

/* Specific 1400-1599px range */
@media (min-width: 1400px) and (max-width: 1599px) {
  .hero-content-left {
    max-width: 480px;
  }

  .hero-title {
    font-size: clamp(2.4rem, 3vw, 2.7rem);
    line-height: 1.18;
  }

  .hero-grid {
    grid-template-columns: minmax(420px, 500px) 1fr;
  }
}

/* Large screens (1600px+): comfortable max-width */
@media (min-width: 1600px) {
  .container {
    max-width: 1320px;
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media (max-width: 960px) {
  .hero-title {
    font-size: clamp(2.1rem, 5.8vw, 2.6rem);
    line-height: 1.2;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: clamp(2rem, 7.5vw, 2.6rem);
    line-height: 1.15;
  }
}

/* Promotional ribbon for pricing cards */
.promo-ribbon {
  position: absolute;
  left: -35px;
  top: 20px;
  background: linear-gradient(135deg, #00C9A7, #00A88A);
  color: white;
  padding: 6px 40px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  transform: rotate(-45deg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

/* ==========================================================================
   Hero section — background, color overrides and animations
   (extraído do <style> inline de landingpage/index.html)
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .hero-caret { display: none !important; }
  .hero-voice-bars span { animation: none !important; }
  .hero-thinking-dots span { animation: none !important; }
}

.hero-bg {
  background-color: #0A2342;
  background-image:
    radial-gradient(900px 600px at 85% 85%, rgba(107, 70, 193, 0.38) 0%, rgba(107, 70, 193, 0) 60%),
    radial-gradient(800px 520px at 15% 25%, rgba(0, 201, 167, 0.18) 0%, rgba(0, 201, 167, 0) 55%),
    radial-gradient(520px 360px at 50% 0%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 70%);
}

.hero-title {
  color: #fff !important;
}

.hero-plans-btn {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

@media (min-width: 768px) {
  .hero-bg {
    background-image: url("../img/hero-2000.jpg");
    background-image: -webkit-image-set(
      url("../img/hero-1200.webp") 1x,
      url("../img/hero-2000.webp") 2x
    );
    background-image: image-set(
      url("../img/hero-1200.webp") 1x,
      url("../img/hero-2000.webp") 2x
    );
  }
}

@media (max-width: 767px) {
  /* Reduce hero top/bottom spacing on mobile (overrides Tailwind py-24) */
  .hero-grid {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
  }

  .hero-kicker {
    text-align: center;
  }

  /* Center the whole hero text block on mobile (matches reference design) */
  .hero-content-left {
    text-align: center;
  }

  /* The subtitle has a max-width; keep it centered as a block */
  .hero-content-left > p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-chat-card {
    max-width: 100%;
  }

  .card-elevated {
    transform: none;
  }
}

.hero-caret {
  display: inline-block;
  width: 0.5ch;
  margin-left: 0.1ch;
  border-right: 2px solid rgba(255, 255, 255, 0.85);
  height: 1em;
  transform: translateY(2px);
  animation: heroCaretBlink 1s steps(2, end) infinite;
}

@keyframes heroCaretBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.hero-voice-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}

.hero-voice-bars span {
  width: 3px;
  height: 6px;
  border-radius: 999px;
  background: rgba(107, 70, 193, 0.9);
  animation: heroVoice 900ms ease-in-out infinite;
}

.hero-voice-bars span:nth-child(2) { animation-delay: 120ms; height: 10px; }
.hero-voice-bars span:nth-child(3) { animation-delay: 240ms; height: 8px; }
.hero-voice-bars span:nth-child(4) { animation-delay: 360ms; height: 12px; }

@keyframes heroVoice {
  0%, 100% { transform: scaleY(0.6); opacity: 0.6; }
  50% { transform: scaleY(1.25); opacity: 1; }
}

.hero-thinking-dots span {
  animation: heroDotPulse 1.4s infinite;
  opacity: 0.3;
}
.hero-thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.hero-thinking-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes heroDotPulse {
  0%, 60%, 100% { opacity: 0.3; }
  30% { opacity: 1; }
}
