/* ==========================================================================
   Homepage Refresh Styles
   Custom CSS that survives Webflow re-exports (same pattern as pricing-tiers.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   "Så fungerar det" (How it works) Section
   -------------------------------------------------------------------------- */

#hur-det-fungerar {
  padding-bottom: 3rem;
}

.how-it-works-header {
  text-align: center;
  margin-bottom: 3rem;
}

.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
}

.how-it-works-step {
  text-align: center;
  padding: 2rem 1.5rem;
}

.step-number {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 2px solid #000;
  background: #5dd17f;
  font-family: "Lexend", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 1.5rem;
}

.step-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  color: #1e1f28;
}

.step-title {
  font-family: "Lexend", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1e1f28;
}

.step-description {
  font-family: "Instrument Sans", sans-serif;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Benefits Section
   -------------------------------------------------------------------------- */

.benefits-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.benefits-header h2 {
  line-height: 1.3;
  margin-bottom: 1.25rem;
}

.benefits-intro {
  font-family: "Instrument Sans", sans-serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  max-width: 38rem;
  margin: 0 auto;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 56rem;
  margin: 0 auto;
}

.benefit-item {
  text-align: center;
  padding: 2rem 1.5rem;
}

.benefit-title {
  font-family: "Lexend", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}

.benefit-text {
  font-family: "Instrument Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

/* --------------------------------------------------------------------------
   "Problemet" Market Stats Section
   -------------------------------------------------------------------------- */

.stats-header {
  text-align: center;
  margin-bottom: 3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: 1.5rem 1rem;
}

.stat-number {
  font-family: "Lexend", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #5dd17f;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  white-space: nowrap;
}

.stat-label {
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

.stats-source {
  text-align: center;
  margin-top: 2rem;
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------------------------
   "Samarbeta med oss" Partner Section
   -------------------------------------------------------------------------- */

.partner-section {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}

.partner-section h2 {
  margin-bottom: 1rem;
}

.partner-section .partner-description {
  font-family: "Instrument Sans", sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 2rem;
}

.partner-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.partner-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 2px solid #1e1f28;
  border-radius: 2rem;
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #1e1f28;
}

/* --------------------------------------------------------------------------
   Secondary Button Polish
   -------------------------------------------------------------------------- */

.button.is-secondary {
  border: 2px solid #1e1f28;
}

/* --------------------------------------------------------------------------
   Scroll Animations (fade-in-up)
   -------------------------------------------------------------------------- */

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up[data-delay="1"] {
  transition-delay: 0.1s;
}
.fade-in-up[data-delay="2"] {
  transition-delay: 0.2s;
}
.fade-in-up[data-delay="3"] {
  transition-delay: 0.3s;
}
.fade-in-up[data-delay="4"] {
  transition-delay: 0.4s;
}

/* --------------------------------------------------------------------------
   Nav & Footer Mobile Fixes
   -------------------------------------------------------------------------- */

@media screen and (max-width: 991px) {
  .navlink-container {
    display: none !important;
  }

  .nav_mobile-menu-button {
    display: none !important;
  }
}

.footer_bottom-3-col {
  text-align: center;
}

@media screen and (max-width: 767px) {
  .footer_bottom-3-col {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .footer_links {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media screen and (max-width: 991px) {
  .how-it-works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .benefits-header {
    margin-bottom: 2.5rem;
  }

  .benefits-intro {
    font-size: 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }
}

@media screen and (max-width: 767px) {
  .pricing-card-price .heading-4 {
    font-size: 2rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 24rem;
  }

  .benefits-header {
    margin-bottom: 2rem;
  }

  .benefit-item {
    padding: 1.5rem 1rem;
  }

  .how-it-works-header {
    margin-bottom: 2rem;
  }

  .how-it-works-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .how-it-works-step {
    padding: 1.5rem 1rem;
  }

  .step-number {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .step-icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  .step-title {
    font-size: 1.1rem;
  }

  .step-description {
    font-size: 0.9rem;
  }

  #hur-det-fungerar {
    padding-bottom: 2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .partner-tags {
    gap: 0.5rem;
  }

  .partner-tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
  }
}

@media screen and (max-width: 479px) {
  .how-it-works-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 16rem;
    margin: 0 auto;
  }

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