/* 
   Izitalk - Responsive CSS
   Author: Manus
   Date: May 19, 2025
*/

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1333ff;
  --primary-dark: #0052cc;
  --primary-light: #e6f0ff;
  --secondary-color: #00c853;
  --text-dark: #333333;
  --text-medium: #666666;
  --text-light: #999999;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #757575;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

html {
  font-size: 62.5%; /* 10px */
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

ul,
ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 8rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 6rem;
}

.section-header h2 {
  font-size: 3.6rem;
  font-weight: 700;
  margin-bottom: 1.6rem;
  color: var(--text-dark);
}

.section-header p {
  font-size: 1.8rem;
  color: var(--text-medium);
  max-width: 700px;
  margin: 0 auto;
}

/* ===== BUTTONS ===== */
.cta-button,
.primary-button,
.secondary-button,
.plan-button {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.cta-button,
.primary-button {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
}

.cta-button:hover,
.primary-button:hover {
  background-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.secondary-button {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.secondary-button:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

.plan-button {
  width: 100%;
  padding: 1.4rem;
}

.featured .plan-button {
  background-color: var(--secondary-color);
  color: var(--white);
}

.featured .plan-button:hover {
  background-color: #00b34a;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  padding: 1.6rem 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  flex: 0 0 auto;
}

.logo img {
  height: 3.2rem;
}

.main-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  gap: 3.2rem;
}

.nav-list a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1.6rem;
}

.nav-list a:hover {
  color: var(--primary-color);
}

.cta-button-container {
  flex: 0 0 auto;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 3.2rem;
  height: 3.2rem;
  position: relative;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-dark);
  position: absolute;
  left: 0;
  transition: var(--transition);
}

.mobile-menu-toggle span:nth-child(1) {
  top: 25%;
}

.mobile-menu-toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.mobile-menu-toggle span:nth-child(3) {
  bottom: 25%;
}

/* ===== HERO SECTION ===== */
.hero {
  padding: 8rem 0;
  padding-top: 40px;
  background-color: var(--white);
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 6rem;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 4.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2.4rem;
  color: var(--text-dark);
}

.hero-text p {
  font-size: 1.8rem;
  color: var(--text-medium);
  margin-bottom: 3.2rem;
}

.hero-buttons {
  display: flex;
  gap: 1.6rem;
  margin-bottom: 2.4rem;
}

.trust-indicators {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-light);
  font-size: 1.4rem;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.demo-card {
  width: 100%;
  height: 100%;
  max-width: 360px;
  background-color: var(--white);
  border-radius: var(--border-radius);

  overflow: hidden;
}

.demo-header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 1.2rem;
  text-align: left;
}

.demo-content {
  padding: 2rem;
}

.chat-preview {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.chat-message {
  background-color: var(--light-gray);
  padding: 1.2rem;
  border-radius: var(--border-radius);
  max-width: 80%;
}

.chat-input {
  display: flex;
  gap: 1rem;
  margin-top: 1.6rem;
}

.chat-input input {
  flex: 1;
  padding: 1rem;
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius);
  font-size: 1.4rem;
}

.send-button {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  padding: 1rem 1.6rem;
  cursor: pointer;
  transition: var(--transition);
}

.send-button:hover {
  background-color: var(--primary-dark);
}

/* ===== FEATURES SECTION ===== */
.features {
  background-color: var(--light-gray);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3.2rem;
}

.feature-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 3.2rem 2.4rem;
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 6.4rem;
  height: 6.4rem;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2.4rem;
}

.feature-icon i {
  font-size: 2.4rem;
  color: var(--primary-color);
}

.feature-card h3 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.6rem;
}

.feature-card p {
  color: var(--text-medium);
  font-size: 1.5rem;
}

/* ===== HOW IT WORKS SECTION ===== */
.how-it-works {
  background-color: var(--white);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 6.4rem;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.step-number {
  display: inline-block;
  margin-bottom: 2.8rem;
}

.step-number span {
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-weight: 600;
  padding: 0.8rem 1.6rem;
  border-radius: 2rem;
}

.step-content {
  display: flex;
  align-items: center;
  gap: 4.8rem;
}

.step-text {
  flex: 1;
}

.step-text h3 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1.6rem;
}

.step-text p {
  color: var(--text-medium);
  margin-bottom: 2.4rem;
}

.step-features {
  list-style: none;
  padding-left: 2rem;
}

.step-features li {
  margin-bottom: 0.8rem;
  color: var(--text-medium);
}

.step-features li::before {
  content: "✔";
  margin-right: 8px;
}

.step-image {
  flex: 1;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  background-color: #f3f4f6;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
  background-color: var(--light-gray);
}

.testimonial-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial {
  min-width: 100%;
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 32px 62px;
  box-shadow: var(--box-shadow);
  box-sizing: border-box;
}

.testimonial-content {
  display: flex;
  align-items: center;
  gap: 3.2rem;
}

.testimonial-image {
  flex: 0 0 8rem;
}

.testimonial-image img {
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-text {
  flex: 1;
}

.testimonial-text p {
  font-size: 1.8rem;
  font-style: italic;
  margin-bottom: 1.6rem;
  color: var(--text-medium);
}

.testimonial-author {
  display: flex;
  flex-direction: row;
  gap: 15px;
  align-items: center;
}

.testimonial-author .dados {
  display: flex;
  flex-direction: column;
}

.testimonial-author strong {
  font-weight: 600;
  color: var(--text-dark);
}

.testimonial-author span {
  font-size: 1.4rem;
  color: var(--text-light);
}

.testimonial-author img {
  width: 30px;
  height: 30px;
  border-radius: 100%;
}

.testimonial-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 1rem;
  cursor: pointer;
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  font-size: 2rem;
  z-index: 1;
}

.testimonial-button.prev {
  left: 1rem;
}

.testimonial-button.next {
  right: 1rem;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 3.2rem;
}

.dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: var(--medium-gray);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: var(--primary-color);
}

/* ===== PRICING SECTION ===== */
.pricing {
  background-color: var(--white);
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  margin-bottom: 4.8rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 6rem;
  height: 3.2rem;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--medium-gray);
  transition: var(--transition);
}

.slider:before {
  position: absolute;
  content: "";
  height: 2.4rem;
  width: 2.4rem;
  left: 0.4rem;
  bottom: 0.4rem;
  background-color: var(--white);
  transition: var(--transition);
}

.switch input:checked + .slider {
  background-color: var(--primary-color);
}

.switch input:checked + .slider:before {
  transform: translateX(2.8rem);
}

.slider.round {
  border-radius: 3.2rem;
}

.slider.round:before {
  border-radius: 50%;
}

.pricing-plans {
  display: flex;
  gap: 3.2rem;
  justify-content: center;
}

.pricing-plan {
  flex: 1;
  max-width: 360px;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--medium-gray);
}

.pricing-plan:hover {
  transform: translateY(-5px);
}

.pricing-plan.featured {
  border-color: var(--secondary-color);
  transform: scale(1.05);
}

.pricing-plan.featured:hover {
  transform: scale(1.05) translateY(-5px);
}

.plan-header {
  padding: 3.2rem 2.4rem;
  text-align: center;
  border-bottom: 1px solid var(--medium-gray);
}

.plan-header h3 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.plan-description {
  color: var(--text-medium);
  font-size: 1.4rem;
  margin-bottom: 2.4rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem;
}

.price {
  font-size: 4rem;
  font-weight: 700;
  color: var(--text-dark);
}

.period {
  font-size: 1.6rem;
  color: var(--text-light);
}

.plan-features {
  padding: 3.2rem 2.4rem;
}

.plan-features ul {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.plan-features li {
  position: relative;
  padding-left: 2.8rem;
  color: var(--text-medium);
}

.plan-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: 700;
}

.plan-cta {
  padding: 0 2.4rem 3.2rem;
}

/* ===== FAQ SECTION ===== */
.faq {
  background-color: var(--white);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.faq-item {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.faq-question {
  padding: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-question h3 {
  font-size: 1.8rem;
  font-weight: 600;
}

.faq-toggle {
  color: var(--primary-color);
  transition: var(--transition);
}

.faq-answer {
  padding: 0 2.4rem;
  color: var(--text-medium);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out, padding-bottom 0.3s ease-in-out;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

.faq-item.active .faq-answer {
  padding-bottom: 2.4rem;
}

/* ===== CTA SECTION ===== */
.cta {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 8rem 0;
}

.cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 3.6rem;
  font-weight: 700;
  margin-bottom: 1.6rem;
}

.cta-content p {
  font-size: 1.8rem;
  margin-bottom: 3.2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
  margin-bottom: 3.2rem;
  flex-wrap: wrap;
}

.cta-button.primary {
  background-color: var(--white);
  color: var(--primary-color);
}

.cta-button.primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--primary-dark);
}

.cta-button.secondary {
  background-color: transparent;
  border: 1px solid var(--white);
  color: var(--white);
}

.cta-button.secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.cta-button.tertiary {
  background-color: transparent;
  color: var(--white);
  text-decoration: underline;
  padding: 1.2rem;
}

.cta-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.cta-form input {
  flex: 1;
  padding: 1.4rem;
  border: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-size: 1.6rem;
}

.cta-form button {
  background-color: var(--secondary-color);
  color: var(--white);
  border: none;
  padding: 0 2.4rem;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.cta-form button:hover {
  background-color: #00b34a;
}

/* ===== FOOTER ===== */
.email-container {
  position: relative;
  display: inline-block;
}

.tooltip {
  position: absolute;
  bottom: 100%; /* Position above the li */
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--text-dark);
  color: var(--white);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 1.2rem;
  margin-bottom: 5px; /* Space between tooltip and text */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  white-space: nowrap;
}

.tooltip.show {
  opacity: 1;
  visibility: visible;
}

.footer {
  background-color: #1a1a2e;
  color: var(--white);
  padding: 6.4rem 0 3.2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 4.8rem;
  margin-bottom: 4.8rem;
}

.footer-column {
  flex: 1;
}

.footer-column h4 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 2.4rem;
  color: var(--white);
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-column a:hover {
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 1.6rem;
  margin-top: 2.4rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
}

.social-links i {
  font-size: 1.8rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 3.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.4rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: flex;
  gap: 2.4rem;
  color: #ffffff;
}

.footer-links a {
  color: #ffffff;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
  html {
    font-size: 58%;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  html {
    font-size: 56%;
  }

  .hero-content {
    flex-direction: column;
  }

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

  .hero-buttons {
    justify-content: center;
  }

  .trust-indicators {
    justify-content: center;
  }

  .step-content {
    flex-direction: column;
  }

  .step--reversed .step-content {
    flex-direction: column-reverse;
  }

  .pricing-plans {
    flex-direction: column;
    align-items: center;
  }

  .pricing-plan {
    width: 100%;
    max-width: 500px;
  }

  .pricing-plan.featured {
    transform: none;
  }

  .pricing-plan.featured:hover {
    transform: translateY(-5px);
  }

  .footer-content {
    flex-wrap: wrap;
  }

  .footer-column {
    flex: 0 0 calc(50% - 2.4rem);
  }
}

@media (max-width: 768px) {
  .logo svg {
    width: 150px;
  }

  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

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

  .testimonial-content {
    flex-direction: column;
    text-align: center;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-button {
    width: 100%;
    max-width: 300px;
  }

  .footer-column {
    flex: 0 0 100%;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.6rem;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 54%;
  }

  .hero-text h1 {
    font-size: 3.6rem;
  }

  .section-header h2 {
    font-size: 3rem;
  }

  .cta-form {
    flex-direction: column;
  }

  .cta-form input {
    border-radius: var(--border-radius);
    margin-bottom: 1.6rem;
  }

  .cta-form button {
    border-radius: var(--border-radius);
    padding: 1.4rem;
  }
}
