/* ==========================================================================
   Loopsi homepage
   Loads only on the front page.
   Global variables, buttons, footer, signup, containers and common grids live
   in loopsi-base.css.
   ========================================================================== */

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 24px 0 48px;
  display: flex;
  align-items: flex-start;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  margin-bottom: 24px;
  font-size: 3.75rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-content p {
  max-width: 95%;
  margin-bottom: 40px;
  color: var(--text-muted);
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  gap: 24px;
}

.image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-soft);
}

.image-wrapper.soft-border {
  border: 8px solid #fff;
  box-shadow: var(--shadow-soft);
}

.hero-img {
  width: 100%;
  border-radius: calc(var(--radius-soft) - 8px);
  transition: var(--transition);
}

.image-wrapper:hover .hero-img {
  transform: scale(1.02);
}

/* ==========================================================================
   Trust strip
   ========================================================================== */

.trust-strip {
  padding: 48px 0;
  border-top: 1px solid rgba(47, 43, 41, 0.08);
  border-bottom: 1px solid rgba(47, 43, 41, 0.08);
}

.trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.trust-point {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-dark);
  font-size: 1.15rem;
  font-weight: 700;
}

.trust-point svg {
  width: 32px;
  height: 32px;
  color: var(--accent-aqua);
}

/* ==========================================================================
   Featured products
   ========================================================================== */

.product-card {
  position: relative;
  padding: 16px;
  background: #fff;
  border-radius: var(--radius-soft);
  transition: var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.loopsi-home-product-link {
  display: block;
  color: inherit;
}

.loopsi-home-product-link:hover {
  color: inherit;
}

.product-image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  margin-bottom: 16px;
  overflow: hidden;
  background: var(--bg-main);
  border-radius: calc(var(--radius-soft) - 4px);
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.product-info .price {
  margin-bottom: 20px;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
}

.add-to-cart {
  width: 100%;
  padding: 14px;
  font-size: 1.1rem;
}

.loopsi-empty-shop-state {
  padding: 40px 24px;
  background: #fff;
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.loopsi-empty-shop-state p {
  margin: 0 0 20px;
  color: var(--text-muted);
}

/* ==========================================================================
   How it works
   ========================================================================== */

.how-it-works {
  padding: 64px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  padding: 32px 24px;
  background: #fff;
  border-radius: var(--radius-soft);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  text-align: center;
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--accent-blush);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
}

.step-card h3 {
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.step-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ==========================================================================
   Why Loopsi
   ========================================================================== */

.why-loopsi {
  padding-bottom: 64px;
}

.why-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.about-img {
  max-width: 85%;
  margin: 0 auto;
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-soft);
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.why-list li {
  display: flex;
  gap: 12px;
}

.why-list-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-alt);
  border-radius: 50%;
  color: var(--accent-aqua);
}

.why-list strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.why-list p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.social-proof {
  padding-top: 64px;
  padding-bottom: 64px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  background: #fff;
  border-radius: var(--radius-soft);
  box-shadow: 0 4px 20px rgba(47, 43, 41, 0.03);
}

.stars {
  margin-bottom: 16px;
  color: var(--accent-aqua);
  font-size: 1.25rem;
}

.review {
  margin-bottom: 24px;
  color: var(--text-dark);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.5;
}

.reviewer {
  font-size: 1.05rem;
  font-weight: 800;
}

.reviewer span {
  margin-left: 8px;
  color: var(--text-muted);
  font-weight: 400;
}

/* ==========================================================================
   Gift section
   ========================================================================== */

.gift-section {
  padding-top: 64px;
  padding-bottom: 40px;
  background-color: transparent;
}

.loopsi-gift-copy {
  max-width: 600px;
  margin: 0 auto 30px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq {
  padding-top: 0;
  padding-bottom: 64px;
}

.faq-inner {
  max-width: 800px;
  margin: 0 auto;
}

.faq-inner .section-title {
  margin-bottom: 40px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  color: var(--accent-aqua);
  font-size: 1.5rem;
  transition: var(--transition);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 32px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
  padding-bottom: 24px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-item.active .faq-icon {
  color: var(--accent-blush);
  transform: rotate(45deg);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .kits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content p {
    margin: 0 auto 32px;
  }

  .hero-actions {
    justify-content: center;
  }

  .why-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .why-visual {
    order: 2;
  }

  .why-content {
    order: 1;
    text-align: center;
  }

  .why-content .section-title {
    text-align: center;
  }

  .why-list li {
    text-align: left;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .trust-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2.4rem;
  }

  .hero-content p {
    font-size: 1.05rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .kits-grid {
    grid-template-columns: 1fr;
  }

  .trust-inner {
    grid-template-columns: 1fr;
  }
}
/* ==========================================================================
   FAQ safety fix
   Prevents longer FAQ answers from being clipped.
   ========================================================================== */

.faq-item.active .faq-answer {
  max-height: 600px;
}

@media (max-width: 576px) {
  .faq-item.active .faq-answer {
    max-height: 800px;
  }
}