/* Hero slideshow */
.hero-slide {
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.hero-slide.is-active {
  opacity: 1;
}

.cta-overlay {
  background: linear-gradient(
    105deg,
    rgba(15, 40, 50, 0.92) 0%,
    rgba(13, 148, 136, 0.55) 50%,
    rgba(15, 23, 42, 0.5) 100%
  );
}

.landing-cta-img {
  top: -8%;
  height: 116%;
  object-position: center 62%;
}

@media (min-width: 640px) {
  .landing-cta-img {
    top: -6%;
    height: 114%;
    object-position: center 58%;
  }
}

.font-serif-display {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
}

.font-hero-display {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 40, "WONK" 1;
}

.landing-step-num {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: #0d9488;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Inloggad resa: steg 1–4 under profil / vänpar / väntelista */
.journey-steps {
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  padding: 1rem 1.25rem;
}

.journey-steps-heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.75rem;
}

.journey-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.journey-step {
  display: flex;
  gap: 0.75rem;
  padding: 0.65rem 0;
  position: relative;
}

.journey-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.125rem;
  top: 2.5rem;
  bottom: -0.15rem;
  width: 2px;
  background: #e2e8f0;
}

.journey-step--done:not(:last-child)::after {
  background: #99f6e4;
}

.journey-step-num {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}

.journey-step--done .journey-step-num {
  background: #0d9488;
  color: #fff;
}

.journey-step--current .journey-step-num {
  background: #fff;
  color: #0f766e;
  border: 2px solid #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.journey-step--upcoming .journey-step-num {
  background: #f1f5f9;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
}

.journey-step-check {
  width: 1.125rem;
  height: 1.125rem;
}

.journey-step-body {
  min-width: 0;
  padding-top: 0.1rem;
}

.journey-step-title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: #0f172a;
  margin: 0;
}

.journey-step--upcoming .journey-step-title {
  color: #64748b;
}

.journey-step-desc {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0.15rem 0 0;
  line-height: 1.45;
}

.journey-step-now {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0f766e;
  margin: 0.35rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.journey-step-now-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #0d9488;
  animation: journey-pulse 1.5s ease-in-out infinite;
}

@keyframes journey-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.journey-step-cta {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
}

.journey-gate {
  border-radius: 0.75rem;
  border: 2px solid #fcd34d;
  background: #fffbeb;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.journey-gate-title {
  font-weight: 700;
  font-size: 1rem;
  color: #92400e;
  margin: 0 0 0.35rem;
}

.journey-gate-text {
  font-size: 0.875rem;
  color: #78350f;
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.testimonial-mark {
  color: #0d9488;
  font-size: 2.5rem;
  line-height: 1;
  font-family: Georgia, serif;
}

/* Hero: kant-till-kant-bild, text ovanpå med lokal läsbarhetsskärm */
.landing-hero {
  position: relative;
  width: 100%;
  min-height: min(88svh, 820px);
  overflow: hidden;
}

.landing-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.landing-hero-media .hero-slide {
  object-position: center 38%;
}

.landing-hero-dim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.22);
}

.landing-hero-text-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(247, 245, 240, 0.86) 0%,
    rgba(247, 245, 240, 0.68) 26%,
    rgba(247, 245, 240, 0.34) 46%,
    rgba(247, 245, 240, 0.1) 60%,
    transparent 74%
  );
}

.landing-hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  min-height: inherit;
  max-width: 1400px;
  margin: 0 auto;
  padding: 5.5rem 1.25rem 3rem;
}

@media (min-width: 640px) {
  .landing-hero-inner {
    padding: 6rem 2rem 3.5rem;
  }
}

@media (min-width: 1024px) {
  .landing-hero-inner {
    padding: 4rem 3.5rem;
  }
}

.landing-hero-content {
  width: 100%;
  max-width: 32rem;
}

.landing-hero-title,
.landing-hero-lead {
  text-shadow: 0 1px 20px rgba(247, 245, 240, 0.75);
}

@media (max-width: 1023px) {
  .landing-hero {
    min-height: min(94svh, 860px);
  }

  .landing-hero-media .hero-slide {
    object-position: center 42%;
  }

  .landing-hero-text-scrim {
    background: linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.35) 0%,
      rgba(15, 23, 42, 0.12) 40%,
      transparent 58%
    );
  }

  .landing-hero-inner {
    align-items: flex-start;
    padding-top: 5.25rem;
    padding-bottom: 0.75rem;
  }
}

/* Mobil: text i tydlig panel — läsbar ovanpå bild */
@media (max-width: 639px) {
  .landing-hero-dim {
    background: rgba(15, 23, 42, 0.4);
  }

  .landing-hero-text-scrim {
    background: linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.55) 0%,
      rgba(15, 23, 42, 0.2) 45%,
      transparent 65%
    );
  }

  .landing-hero-inner {
    padding-top: 4.75rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .landing-hero-content {
    max-width: 100%;
    padding: 1.25rem 1.125rem 1.375rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
      0 4px 6px rgba(15, 23, 42, 0.06),
      0 16px 40px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .landing-hero-eyebrow {
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: #0f766e;
  }

  .landing-hero-title {
    font-size: 1.875rem;
    font-weight: 800;
    line-height: 1.18;
    color: #0f2847;
    text-shadow: none;
    letter-spacing: -0.025em;
  }

  .landing-hero-lead {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.55;
    color: #1e293b;
    text-shadow: none;
  }

  .landing-hero-content .flex.flex-col a[href*="Login"] {
    border-color: #cbd5e1;
    background: #fff;
    font-weight: 700;
  }

  body:has(.landing-page) .landing-header:not(.is-scrolled) .logo-on-hero,
  body:has(.landing-page) .landing-header:not(.is-scrolled) .nav-on-hero {
    color: #0f2847;
    font-weight: 600;
    text-shadow: 0 1px 8px rgba(255, 255, 255, 0.9);
  }

  body:has(.landing-page) .landing-header:not(.is-scrolled) {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.55) 70%,
      transparent 100%
    );
    border-bottom-color: transparent;
  }
}

@media (min-width: 1024px) {
  .landing-hero-media .hero-slide {
    object-position: center 35%;
  }
}

.logo-hearts {
  position: relative;
  width: 1.75rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.logo-hearts span {
  position: absolute;
  color: #0d9488;
  font-size: 1rem;
  line-height: 1;
}

.logo-hearts span:first-child {
  left: 0;
  top: 0;
}

.logo-hearts span:last-child {
  left: 0.45rem;
  top: 0.15rem;
  opacity: 0.85;
}

body:has(.landing-page) {
  overflow-x: hidden;
}

body:has(.landing-page) .landing-header {
  position: relative;
  z-index: 40;
  background: #f7f5f0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.65);
  box-shadow: none;
}

body:has(.landing-page) .landing-header.is-scrolled {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

body:has(.landing-page) .landing-header-nav {
  max-width: 100%;
}

body:has(.landing-page) .nav-on-hero {
  color: #475569;
}

body:has(.landing-page) .nav-on-hero:hover {
  color: #0d9488;
}

body:has(.landing-page) .logo-on-hero {
  color: #1a2b3c;
}

body:has(.landing-page) .user-on-hero {
  color: #64748b;
}

body:has(.landing-page) .user-on-hero strong {
  color: #0f172a;
}
