/* Home page extras - partners marquee, article teaser */

#symtom {
  background: var(--green-muted);
}

#ladda-ner {
  background: var(--cream);
}

/* WP core adds 24px margin between site-blocks children - kill the seam under header. */
body.home .wp-site-blocks > main {
  margin-block-start: 0;
}

/* --- Softer, warmer home hero (same copy, gentler frame) --- */
.home {
  --home-wash: color-mix(in srgb, var(--cream) 32%, var(--white));
}

.home .home-hero {
  position: relative;
  overflow: hidden;
  background: var(--white);
  padding-bottom: clamp(2rem, 4vw, 2.75rem);
}

/* Soft tonal wash: white at the top, easing into the warm pink toward the
   bottom - built from a blurred flat shape (no linear-gradient) per brand
   guidelines (gradients are avoided). */
.home .home-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 38% -12% -35% -12%;
  background: var(--home-wash);
  border-radius: 50% 50% 0 0 / 65% 65% 0 0;
  filter: blur(70px);
  pointer-events: none;
}

.home .home-hero .hero-deco {
  position: absolute;
  top: -10%;
  right: -22%;
  width: min(80vw, 460px);
  max-width: none;
  height: auto;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.home .home-hero .hero-grid {
  position: relative;
  z-index: 1;
}

.home .home-hero .hero-content {
  position: relative;
  z-index: 2;
}

.home .home-hero h1 {
  font-weight: 700;
  line-height: 1.15;
  color: var(--green-darker);
}

.home .home-hero .eyebrow {
  letter-spacing: 0.06em;
}

.home .home-hero .hero-visual {
  position: relative;
  z-index: 2;
  align-self: center;
  box-shadow: none;
  background: transparent;
}

.home .home-hero .hero-visual--illustration {
  aspect-ratio: auto;
  overflow: visible;
  width: 100%;
  max-width: 30rem;
  margin-inline: auto;
  border-radius: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home .home-hero .hero-visual--illustration img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(24rem, 55vh);
  object-fit: contain;
}

/* "Verktyg" (feature-showcase) - horizontal side-scroll cards instead of stacked split-rows */
.feature-scroll {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.5rem 0.25rem 1.75rem;
  margin: 0 -0.25rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.feature-scroll::-webkit-scrollbar {
  display: none;
}

.feature-card {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: min(80vw, 300px);
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-card__media {
  aspect-ratio: 16 / 10;
  background: var(--cream);
  overflow: hidden;
}
.feature-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.feature-card__body h3 {
  margin: 0;
  font-size: 1.1875rem;
}
.feature-card__body p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.feature-card__body ul {
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.feature-card__body li {
  position: relative;
  padding-left: 1.125rem;
  font-size: 0.875rem;
  color: var(--text);
}
.feature-card__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

@media (min-width: 900px) {
  .feature-card { width: min(28vw, 330px); }
}

.home-pricing {
  background: var(--cream);
  padding: clamp(3.5rem, 6vw, 5rem) 0;
}

/* Trust bar reads as a continuation of the hero, not a separate banner */
.home .trust-bar {
  position: relative;
  border-block: 0;
  background: var(--home-wash);
  padding: 0 0 clamp(2.5rem, 6vw, 3.5rem);
}

.home .trust-grid {
  padding-top: clamp(1.5rem, 4vw, 2.25rem);
  border-top: 1px solid color-mix(in srgb, var(--green) 18%, transparent);
}

.home .trust-item strong {
  font-weight: 700;
}

.partners-section {
  background: var(--white);
  border-top: 1px solid var(--border);
}
.partners-marquee {
  overflow: hidden;
  margin-top: 1rem;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.partners-track {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: max-content;
  animation: partners-scroll 45s linear infinite;
}
.partners-set {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 168px;
  height: 76px;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px rgba(26, 46, 46, 0.06);
}
.partner-logo img {
  max-height: 40px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
@keyframes partners-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.articles-grid {
  display: grid;
  gap: 1.25rem;
}
.article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.article-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
}
.article-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.article-card-body { padding: 1.25rem; }
.article-card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.article-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.store-badges--center { justify-content: center; }
.home-cta-center { text-align: center; margin-top: 3.5rem; }
.home-steps-badges { text-align: center; margin-top: 2.5rem; }

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

@media (prefers-reduced-motion: reduce) {
  .partners-marquee {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .partners-track {
    animation: none !important;
    flex-wrap: wrap;
    justify-content: center;
    width: min(100% - 2.5rem, var(--max));
    margin-inline: auto;
    gap: 1.5rem 2.5rem;
    transform: none !important;
  }
  .partners-set--duplicate { display: none; }
  .partners-set { flex-wrap: wrap; justify-content: center; gap: 1rem; }
  .partner-logo { width: 152px; height: 68px; }
}
