/* 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;
}

/* Module headline pill — the bold black rounded label used at the top of
   major landing sections (voting results, funnel, hackathon, mission).
   Single source of truth for the black/white headline banner style so every
   module's pill stays visually identical across breakpoints; stack multiple
   pills (one per line) inside a flex column with gap-2 in the markup. */
.landing .headline-pill {
  display: inline-block;
  background-color: #000;
  color: #fff;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: clamp(24px, 7.5vw, 48px);
  line-height: 0.83;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .landing .headline-pill {
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 64px;
  }
}

/* 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;
  }
}

/* ── Voting results overview: row-hover + tooltip ── */
.vro-table tbody td,
.vro-table tbody td div {
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.vro-table tbody tr.vro-hot td {
  background-color: rgba(19, 36, 83, 0.08);
  border-color: transparent;
}
.vro-table tbody tr.vro-hot td:first-child {
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}
.vro-table tbody tr.vro-hot td:last-child {
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
  font-weight: 900;
}
.vro-table tbody tr.vro-pre td {
  border-color: transparent;
}
.vro-table tbody tr.vro-hot td div {
  background-color: #000;
}
.vro-dim tr:not(.vro-hot) td:nth-child(1) {
  color: rgba(90, 90, 90, 0.4);
}
.vro-dim tr:not(.vro-hot) td:nth-child(2) {
  color: rgba(17, 17, 17, 0.4);
}
.vro-dim tr:not(.vro-hot) td div {
  background-color: rgba(0, 0, 0, 0.096);
}
.vro-topic {
  font: inherit;
  color: inherit;
  text-align: left;
}
.vro-topic:focus-visible {
  outline: 2px solid #1f1f1f;
  outline-offset: 2px;
  border-radius: 4px;
}
.vro-tooltip {
  position: absolute;
  z-index: 30;
  width: 426px;
  max-width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.15s ease-out, transform 0.15s ease-out, visibility 0s linear 0.15s;
}
.vro-tooltip.vro-below {
  transform: translateY(-4px);
}
.vro-tooltip.vro-show {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}
.vro-tooltip.vro-below .vro-tail {
  top: -30.5px;
  bottom: auto;
  transform: scaleY(-1);
}
@media (prefers-reduced-motion: reduce) {
  .vro-tooltip,
  .vro-table tbody td,
  .vro-table tbody td div {
    transition: none;
  }
  .vro-tooltip {
    transform: none;
  }
}
