/* Landing page styles — isolated from application.css */

@font-face {
  font-family: "Aeonik";
  src: url(/fonts/landing/aeonik-medium.woff2) format("woff2"),
       url(/fonts/landing/aeonik-medium.woff) format("woff");
  font-display: swap;
  font-weight: 500;
  font-feature-settings: "ss07" 1;

  font-style: normal;
}

@font-face {
  font-family: "Aeonik";
  src: url(/fonts/landing/aeonik-black.woff2) format("woff2"),
       url(/fonts/landing/aeonik-black.woff) format("woff");
  font-display: swap;
  font-weight: 900;
  font-feature-settings: "ss01" 1, "ss07" 1;

  font-style: normal;
}

.landing {
  font-family: "Aeonik", sans-serif;
  font-weight: 500;
}

.landing h1,
.landing h2,
.landing h3,
.landing h4,
.landing h5,
.landing h6 {
  font-family: "Aeonik", sans-serif;
}

.landing .bold,
.landing h1,
.landing h2,
.landing h3 {
  font-weight: 500;
}

.landing .bolder {
  font-weight: 900;
}

/* ── Navbar ── */
.landing .ff-nav {
  font-feature-settings: "ss06" 1, "ss07" 1, "case" 1, "salt" 1;
}

/* Light (grey) nav buttons fill dark with white text on hover. */
.landing .nav-btn-light {
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.landing .nav-btn-light:hover {
  background-color: #1f1f1f;
  border-color: #1f1f1f;
  color: #ffffff;
}

/* Primary CTA "Zur Abstimmung": blue bg + black text on hover. */
.landing .nav-btn-primary {
  transition: background-color 0.15s ease, color 0.15s ease;
}

.landing .nav-btn-primary:hover {
  background-color: rgba(77, 154, 255, 1);
  color: #000000;
}

/* Hero animation */
.landing .hero-block {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.landing .hero-block.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .landing .hero-block {
    transform: translateY(40px) translateX(-50%);
  }

  .landing .hero-block.visible {
    transform: translateY(0) translateX(-50%);
  }
}

.landing .hero-block:nth-child(1) { transition-delay: 0.1s; }
.landing .hero-block:nth-child(2) { transition-delay: 0.4s; }
.landing .hero-block:nth-child(3) { transition-delay: 0.7s; }

/* Stagger delays; tablet/desktop: absolute stack */
@media (min-width: 768px) {
  .landing .hero-block:nth-child(1) { top: 0; }
  .landing .hero-block:nth-child(2) { top: 120px; }
  .landing .hero-block:nth-child(3) { top: 240px; }
}

@media (min-width: 1024px) {
  .landing .hero-block:nth-child(2) { top: 152px; }
  .landing .hero-block:nth-child(3) { top: 304px; }
}

/* GSAP-like reveal for other elements */
.landing [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.landing [data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Step list vertical line */
.landing .step-line {
  position: absolute;
  top: 0;
  width: 14px;
  background-color: #1f1f1f;
}

/* Step bullet */
.landing .step-bullet {
  position: absolute;
  left: -1px;
  width: 8px;
  height: 8px;
  background-color: #55ffb3;
  z-index: 1;
}

/* FAQ accordion */
.landing .faq-item summary::-webkit-details-marker {
  display: none;
}

/* Form input focus */
.landing input[type="email"]:focus {
  outline: none;
  box-shadow: none;
}

/* Landing funnel — mirror of the report's #section-funnel so the labels read
   large at every width. Desktop: 40px labels, funnel at 100%. Mobile (<768px):
   the funnel is scaled to 142% (top corners meet the green box edge, sides clip)
   and labels stay a fixed 24px, so they never shrink away or overlap the box. */
#landing-funnel .funnel-label {
  font-size: 40px;
  letter-spacing: -0.4px;
}
@media (max-width: 767px) {
  #landing-funnel .funnel-shape {
    z-index: 3;
  }
  #landing-funnel .funnel-shape svg {
    width: 142%;
    margin-left: -21%;
    display: block;
  }
  #landing-funnel .funnel-shape::before,
  #landing-funnel .funnel-shape::after {
    content: "";
    position: absolute;
    top: 0;
    width: 60px;
    height: calc(100% - 20px);
    z-index: 5;
    pointer-events: none;
  }
  #landing-funnel .funnel-shape::before {
    left: -20px;
    background: linear-gradient(to right, #4dffb0, rgba(77, 255, 176, 0));
  }
  #landing-funnel .funnel-shape::after {
    right: -20px;
    background: linear-gradient(to left, #4dffb0, rgba(77, 255, 176, 0));
  }
  #landing-funnel .funnel-label {
    font-size: 24px;
    letter-spacing: -0.24px;
  }
}
