/*
 * Landing Page Styles for "Mecânica de Carros Populares" e‑book
 *
 * This stylesheet was written with a mobile‑first philosophy. It uses a clean
 * colour palette derived from the ebook cover and generous spacing to make
 * the content easy to scan on small screens. Media queries enhance the
 * layout for larger viewports without compromising readability.
 */

/* Utility variables */
:root {
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --color-primary: #f86141; /* accent colour inspired by the book cover */
  --color-secondary: #1f2933; /* dark neutral for text */
  --color-light: #ffffff;
  --color-muted: #6b7280;
  --max-width: 1200px;
  --border-radius: 8px;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--color-secondary);
  background: #f9fafb;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 0;
}

/* Hero section */
.hero {
  background: var(--color-secondary);
  color: var(--color-light);
  padding: 4rem 0;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.hero-headline {
  font-size: 2rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}

.hero-subheading {
  font-size: 1.125rem;
  font-weight: 600;
  opacity: 0.9;
  margin: 0.5rem 0;
}

.hero-badges {
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0.5rem 0;
  opacity: 0.8;
}

.hero-description {
  font-size: 1rem;
  max-width: 40em;
  margin: 0.5rem 0 1.5rem;
  opacity: 0.9;
}

.hero-image img {
  width: 220px;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.price-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.price-tag {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
}

.total-value {
  font-size: 0.875rem;
  text-decoration: line-through;
  opacity: 0.7;
}

.cta-button {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-light);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 700;
  margin-top: 1rem;
  transition: background 0.2s ease;
}

.cta-button:hover {
  background: #d74c33;
}

/* Offer section */
.offer {
  background: #fef3f2;
  color: var(--color-secondary);
  text-align: center;
  padding: 2rem 0;
}

.offer h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.offer p {
  margin: 0.25rem 0;
  font-size: 0.875rem;
}

.offer .features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.offer .features p {
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Timer styling: make the countdown eye‑catching and persuasive */
#timer {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  background: #fff1f0;
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius);
  margin-left: 0.25rem;
}

@media (min-width: 768px) {
  #timer {
    font-size: 1.5rem;
  }
}

/* What you get section */
.what-you-get {
  background: var(--color-light);
  padding: 2rem 0;
}

.what-you-get h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-align: center;
}

.what-you-get ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.what-you-get li {
  background: #f1f5f9;
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
}

/* Why different section */
.why-different {
  background: #f9fafb;
  padding: 2rem 0;
}

.why-different h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.why-different ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 40em;
}

.why-different li {
  margin: 0.5rem 0;
  font-size: 0.875rem;
  position: relative;
  padding-left: 1.5rem;
}

.why-different li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

.why-different blockquote {
  margin: 1.5rem auto 0;
  padding: 1rem;
  font-style: italic;
  background: #fef3f2;
  border-left: 4px solid var(--color-primary);
  max-width: 40em;
}

/* Testimonials */
.testimonials {
  background: var(--color-light);
  padding: 2rem 0;
}

.testimonials h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.testimonials .subtitle {
  text-align: center;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  color: var(--color-muted);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.testimonial {
  background: #f1f5f9;
  padding: 1rem;
  border-radius: var(--border-radius);
  font-size: 0.875rem;
}

.testimonial strong {
  display: block;
  margin-top: 0.5rem;
  font-weight: 600;
}

/* Guarantee section */
.guarantee {
  background: #fef3f2;
  text-align: center;
  padding: 1rem 0;
}

.guarantee p {
  margin: 0;
  font-weight: 600;
}

/* FAQ */
.faq {
  background: var(--color-light);
  padding: 2rem 0;
}

.faq h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.faq .subtitle {
  text-align: center;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  color: var(--color-muted);
}

.accordion {
  max-width: 600px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 0.75rem 0;
}

.faq-question {
  cursor: pointer;
  font-weight: 600;
  position: relative;
  padding-right: 1.5rem;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.25rem;
  line-height: 1;
}

.faq-item.open .faq-question::after {
  content: '–';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

/* CTA section */
.cta {
  background: var(--color-secondary);
  color: var(--color-light);
  text-align: center;
  padding: 2rem 0;
}

.cta .cta-price {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cta .cta-offer {
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.cta .cta-button {
  background: var(--color-primary);
  color: var(--color-light);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 700;
  display: inline-block;
  transition: background 0.2s ease;
}

.cta .cta-button:hover {
  background: #d74c33;
}

footer {
  background: #f1f5f9;
  color: var(--color-muted);
  padding: 1rem 0;
  font-size: 0.75rem;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-content {
    flex-direction: row;
    text-align: left;
    gap: 4rem;
  }
  .hero-image img {
    width: 320px;
  }
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}