/**
 * Hero Walkthrough & Trust Anchors Styles
 * Added to homepage.css or as separate import
 */

@keyframes fadeUpSoft {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-animate {
  opacity: 0;
  animation: fadeUpSoft 0.6s ease forwards;
}

.hero-animate-d1 { animation-delay: 0.1s; }
.hero-animate-d2 { animation-delay: 0.2s; }
.hero-animate-d3 { animation-delay: 0.3s; }
.hero-animate-d4 { animation-delay: 0.4s; }
.hero-animate-d5 { animation-delay: 0.5s; }
.hero-animate-d6 { animation-delay: 0.6s; }
.hero-animate-d7 { animation-delay: 0.7s; }

@media (prefers-reduced-motion: reduce) {
  .hero-animate {
    opacity: 1;
    animation: none;
  }
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Hero Walkthrough */
.hero-walkthrough {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  align-items: stretch;
  margin: 40px 0 50px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(21, 94, 82, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.walkthrough-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
  padding: 20px;
  border-radius: 16px;
  background: rgba(21, 94, 82, 0.02);
  transition: all 0.3s ease;
  animation: fadeUpSoft 0.7s ease both;
}

.walkthrough-step:hover {
  background: rgba(21, 94, 82, 0.06);
  transform: translateY(-2px);
}

.walkthrough-icon {
  font-size: 48px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(212, 169, 79, 0.1);
}

.walkthrough-content strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #14231f;
  margin-bottom: 6px;
}

.walkthrough-content p {
  margin: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

.walkthrough-arrow {
  display: none;
  align-self: center;
  font-size: 24px;
  color: rgba(21, 94, 82, 0.2);
  font-weight: bold;
}

@media (min-width: 768px) {
  .hero-walkthrough {
    grid-template-columns: repeat(3, 1fr);
  }

  .walkthrough-arrow {
    display: block;
    grid-column: auto;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    margin: 0 -10px;
  }
}

/* Hero Trust Anchors */
.hero-trust-anchors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(21, 94, 82, 0.1);
}

.trust-anchor {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #14231f;
  line-height: 1.4;
  animation: fadeUpSoft 0.7s ease both;
}

.trust-anchor i {
  font-size: 18px;
  color: #155E52;
  flex-shrink: 0;
  animation: floatSoft 3s ease-in-out infinite;
}

.hero-proof-card,
.usecase-card-premium,
.testimonial-card {
  animation: fadeUpSoft 0.75s ease both;
}

.hero-proof-card:nth-child(2),
.trust-anchor:nth-child(2),
.usecase-card-premium:nth-child(2),
.testimonial-card:nth-child(2) {
  animation-delay: 0.08s;
}

.hero-proof-card:nth-child(3),
.trust-anchor:nth-child(3),
.usecase-card-premium:nth-child(3),
.testimonial-card:nth-child(3) {
  animation-delay: 0.16s;
}

.hero-proof-card:nth-child(4),
.trust-anchor:nth-child(4),
.usecase-card-premium:nth-child(4),
.testimonial-card:nth-child(4) {
  animation-delay: 0.24s;
}

@media (max-width: 767px) {
  .hero-walkthrough {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px;
    margin: 30px 0 40px;
  }

  .walkthrough-arrow {
    margin: 8px 0;
    order: 2;
  }
}

/* Payment Method Icons */
.payment-method-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f5f3f0;
  border-radius: 8px;
  font-size: 13px;
  color: #14231f;
}

.payment-method-item i {
  font-size: 16px;
  color: #155E52;
}

/* Legacy FAQ Accordion (kept for backward compatibility only) */
.legacy-faq-section {
  background: #f9f7f4;
  padding: 60px 0;
  margin-top: 40px;
}

.legacy-faq-title {
  text-align: center;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 12px;
  color: #14231f;
}

.legacy-faq-subtitle {
  text-align: center;
  font-size: 16px;
  color: #666;
  margin-bottom: 40px;
  max-width:600px;
  margin-left: auto;
  margin-right: auto;
}

.legacy-faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}

.legacy-faq-item {
  background: white;
  border: 1px solid rgba(21, 94, 82, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.legacy-faq-item:hover {
  border-color: rgba(21, 94, 82, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.legacy-faq-question {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 18px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #14231f;
  text-align: left;
  transition: color 0.2s ease;
}

.legacy-faq-question:hover {
  color: #155E52;
}

.legacy-faq-question::after {
  content: '';
  width: 20px;
  height: 20px;
  margin-left: auto;
  flex-shrink: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23155E52" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
  transition: transform 0.3s ease;
}

.legacy-faq-item.active .legacy-faq-question::after,
.legacy-faq-item.open .legacy-faq-question::after {
  transform: rotate(180deg);
}

.legacy-faq-answer {
  display: none;
  padding: 0 18px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  animation: slideDown 0.3s ease;
}

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

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

/* Trustpilot-style badges row */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 40px 0;
  padding: 30px;
  background: rgba(21, 94, 82, 0.02);
  border-radius: 16px;
  border: 1px solid rgba(21, 94, 82, 0.08);
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.trust-badge-value {
  font-size: 22px;
  font-weight: 700;
  color: #155E52;
}

.trust-badge-label {
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.trust-badge-stars {
  color: #D4A94F;
  font-size: 14px;
  letter-spacing: -2px;
}

/* Risk reversal section */
.risk-reversal {
  background: linear-gradient(135deg, rgba(212, 169, 79, 0.1) 0%, rgba(21, 94, 82, 0.05) 100%);
  border: 2px solid rgba(212, 169, 79, 0.3);
  border-radius: 16px;
  padding: 24px;
  margin: 40px 0;
  text-align: center;
}

.risk-reversal-title {
  font-size: 18px;
  font-weight: 700;
  color: #14231f;
  margin-bottom: 8px;
}

.risk-reversal-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.risk-reversal-cta {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 20px;
  background: #155E52;
  color: white;
  border-radius: 8px;
}
