/* ============================================
   ResolviAqui — Landing editorial (v2)
   Sistema: tokens sólidos, sem gradientes animados,
   sem blobs, sem marquee, sem mock de chat.
   Tipografia: Poppins (títulos) + Inter (texto).
   Acessibilidade: foco visível, reduced-motion,
   contraste AA.
   ============================================ */

/* ---------- Base ---------- */
body {
  font-family: "Inter", "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
}

h1,
h2,
h3,
.hero-heading,
.section-header h2,
.plan-price,
.stat-item .number {
  font-family: "Poppins", "Inter", sans-serif;
  letter-spacing: -0.01em;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--primary-light, #0a6fa8);
  outline-offset: 2px;
}

/* ---------- Neutraliza herança "made by IA" do styles-v2 ---------- */
.bg-animation {
  display: none !important;
}

.hero-badge {
  display: none !important;
}

.marquee {
  display: none !important;
}

.hero::before {
  display: none !important;
}

.category-image-container,
.category-header-image,
.phone-mock,
.chat-msg,
.float-chip {
  display: none !important;
}

.hero h1 span,
.stat-item .number,
.footer-logo-highlight,
.pricing-card .price,
.page-header h1 span {
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  color: var(--dark);
}

nav {
  background: #fff !important;
  backdrop-filter: none !important;
  border-bottom: 1px solid #e4e7ec !important;
}

.logo-highlight {
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  color: var(--primary-dark);
}

/* ---------- HERO editorial ---------- */
.hero-editorial {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  min-height: auto;
  text-align: left;
}

.hero-editorial .hero-content {
  max-width: 640px;
}

.hero-heading {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--dark);
  margin: 0 0 1rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
  line-height: 1.65;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn-primary-dark {
  background: var(--primary-dark);
  color: #fff;
  padding: 0.95rem 1.6rem;
  font-weight: 600;
  border-radius: 0.65rem;
  border: 1px solid var(--primary-dark);
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary-dark:hover {
  background: var(--primary);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #fff;
  color: var(--primary-dark);
  padding: 0.95rem 1.6rem;
  font-weight: 600;
  border: 1px solid #cfd6df;
  border-radius: 0.65rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--primary-dark);
  background: #f2f6f9;
  color: var(--primary-dark);
}

.hero-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 2rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid #e4e7ec;
}

.hero-trust li {
  font-size: 0.92rem;
  color: var(--gray);
  padding: 0 1.25rem;
  border-left: 1px solid #e4e7ec;
}

.hero-trust li:first-child {
  padding-left: 0;
  border-left: none;
}

.hero-trust strong {
  color: var(--dark);
}

/* ---------- Cartão de pedido (visual estático, sem animação) ---------- */
.hero-visual {
  min-width: 0;
}

.order-card {
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 1rem;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.1);
  overflow: hidden;
}

.order-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e4e7ec;
  background: #f8fafc;
}

.order-id {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark);
}

.order-status {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: #e6f1f7;
  border: 1px solid #c8e0ee;
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.order-quotes {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1.25rem;
}

.order-quotes li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid #eef1f4;
}

.order-quotes li:last-child {
  border-bottom: none;
}

.quote-name {
  font-size: 0.92rem;
  color: var(--gray);
}

.quote-price {
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
}

.order-note {
  margin: 0;
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  color: var(--gray);
  background: #f8fafc;
  border-top: 1px solid #e4e7ec;
  line-height: 1.55;
}

/* ---------- Cartão vivo: orçamentos chegando (movimento com propósito) ---------- */
.order-status {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  margin-right: 0.45rem;
  animation: pulseDot 2.2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
}

.typing-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 0;
  color: var(--gray);
  font-size: 0.85rem;
}

.typing-dots {
  display: inline-flex;
  gap: 4px;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.35;
  animation: typingBounce 1.2s ease-in-out infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typingBounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.order-quotes li.quote-enter {
  animation: quoteIn 0.55s cubic-bezier(0.22, 0.9, 0.3, 1.15) both;
}

@keyframes quoteIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.order-quotes li.quote-exit {
  animation: quoteOut 0.35s ease both;
}

@keyframes quoteOut {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* ---------- Linha dos passos se desenha no scroll ---------- */
.steps-container::before {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.1s ease 0.15s;
}

.steps-container.draw::before {
  transform: scaleX(1);
}

/* ---------- Faixa de confiança (sem cards) ---------- */
.trust-strip {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.trust-item {
  border-top: 2px solid var(--primary-dark);
  padding-top: 1rem;
}

.trust-item h3 {
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
  color: var(--dark);
}

.trust-item p {
  color: var(--gray);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ---------- Seções genéricas ---------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.eyebrow-light {
  color: var(--secondary-light);
}

.section-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ---------- Dor ---------- */
.pain-section {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.pain-card {
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 1rem;
  padding: 1.6rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.pain-card:hover {
  border-color: #c8d2dc;
  transform: translateY(-2px);
}

.pain-num {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.7rem;
}

.pain-card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.pain-card p {
  color: var(--gray);
  line-height: 1.6;
  font-size: 0.95rem;
}

.pain-close {
  text-align: center;
  font-size: 1.15rem;
  margin-top: 2.5rem;
  color: var(--dark);
}

/* ---------- Categorias (ícones SVG, sem imagens IA) ---------- */
.category-icon {
  width: 52px;
  height: 52px;
  border-radius: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef4f8;
  color: var(--primary-dark);
  border: 1px solid #d9e6ef;
  margin-bottom: 1rem;
}

.category-icon svg {
  width: 28px;
  height: 28px;
}

.category-card[data-cat="casa"] .category-icon {
  background: #fdf6e9;
  color: #92600a;
  border-color: #f0dfb8;
}

.category-card[data-cat="obra"] .category-icon {
  background: #fdf1ea;
  color: #b34a12;
  border-color: #f3d3bd;
}

.category-card[data-cat="auto"] .category-icon {
  background: #fdeeee;
  color: #b42323;
  border-color: #f3c8c8;
}

.category-card[data-cat="saude"] .category-icon {
  background: #eaf7ef;
  color: #157347;
  border-color: #c6e7d2;
}

.category-card[data-cat="pro"] .category-icon {
  background: #f1edfd;
  color: #5b3bb5;
  border-color: #d8cdf3;
}

/* ---------- Lojistas ---------- */
.lojista-section {
  background: var(--dark);
  color: #fff;
  padding: 5rem 2rem;
}

.lojista-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.lojista-section .section-header h2 {
  color: #fff;
}

.lojista-section .section-header p {
  color: var(--gray-lighter);
}

.plan-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.plan-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.25rem;
  padding: 2rem;
}

.plan-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.plan-price {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  color: #fff;
}

.plan-price span {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.75;
}

.plan-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  line-height: 1.5;
}

.plan-card ul li::before {
  content: "✓ ";
  color: #22c55e;
  font-weight: 700;
}

.plan-highlight {
  background: var(--primary-dark);
  border-color: var(--secondary-light);
}

.plan-tag {
  display: inline-block;
  background: #fff;
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.lojista-section .btn-ghost {
  color: #fff;
}

.lojista-section .btn-ghost:hover {
  color: var(--secondary-light);
}

.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.dept {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.9rem;
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.dept span {
  color: var(--gray-lighter);
  font-size: 0.92rem;
  line-height: 1.5;
}

.pilot-note {
  text-align: center;
  color: var(--gray-lighter);
  margin-top: 2.2rem;
  font-style: italic;
}

.pro-cta-bar {
  text-align: center;
  margin-top: 1.5rem;
}

/* ---------- Stats ---------- */
.stats-honest {
  background: var(--lighter);
}

/* ---------- FAQ ---------- */
.faq-section {
  padding: 5rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 2rem;
}

.faq-list details {
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 0.9rem;
  padding: 1.1rem 1.3rem;
}

.faq-list summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--dark);
  list-style-position: inside;
}

.faq-list details p {
  margin-top: 0.7rem;
  color: var(--gray);
  line-height: 1.65;
}

/* ---------- Depoimentos ---------- */
.testimonials-section {
  padding: 4rem 2rem 5rem;
  background: var(--light);
}

.testimonials-grid {
  max-width: 1000px;
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.testimonial-card {
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 1rem;
  padding: 1.6rem;
}

.testimonial-card blockquote {
  margin: 0;
}

.testimonial-card p {
  color: var(--dark);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.testimonial-card cite {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--gray);
}

/* ---------- CTA final ---------- */
.cta-section {
  background: var(--primary-dark);
}

.cta-section::before {
  display: none !important;
}

.cta-section .cta-content h2,
.cta-section .cta-content p {
  color: #fff;
}

/* ---------- Fade sutil ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsivo ---------- */
@media (max-width: 959px) {
  .hero-editorial {
    grid-template-columns: 1fr;
    padding: 7rem 1.25rem 3rem;
    text-align: left;
  }

  .hero-trust li {
    padding: 0 0.9rem;
  }

  .hero-trust li:first-child {
    padding-left: 0;
  }

  .trust-strip {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1.25rem 3rem;
  }

  .hero-visual {
    width: 100%;
    margin-top: 0.5rem;
  }
}

/* ---------- Movimento reduzido (WCAG) ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn-primary-dark:hover,
  .pain-card:hover,
  .category-card:hover {
    transform: none;
  }

  .pulse-dot,
  .typing-dots span,
  .order-quotes li.quote-enter,
  .order-quotes li.quote-exit {
    animation: none !important;
  }

  .steps-container::before {
    transform: scaleX(1);
    transition: none;
  }
}
