/* ============================================================
   Nordlayer Alternative LP page styles
   ============================================================ */

/* Work Sans font-face — @font-face inside @scope is not reliably registered by browsers */
@font-face {
  font-family: "Worksans";
  src: url("../fonts/WorkSans-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Worksans";
  src: url("../fonts/WorkSans-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* CSS custom properties (declared globally — @scope can't set :root vars) */
:root {
  --midnight-blue: #0e2b8f;
  --orange-red: #ff5206;
  --bluish-white: #f1f3f8;
}

/* Hard reset body margin + prevent x-overflow */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Reset button defaults for .desc-link-22 used as tooltip toggle */
button.desc-link-22 {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

/* ============================================================
   Scoped styles — only apply inside .wf-pricing wrapper
   ============================================================ */
@scope (.wf-pricing) {

  /* ---- Push page content below fixed nav ---- */
  .sticky-nav-area-2 {
    padding-top: 68px;
  }

  .hero-platform.comparison {
    padding-top: 0;
  }

  /* ---- Sticky nav ---- */
  .sticky-navigation-landing {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .sticky-navigation-landing_inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    max-width: 1280px;
    margin: 0 auto;
  }

  .grid-logos {
    margin-bottom: 60px;
  }

  /* Testimonial slider: the .slider.w-slider must clip the translating mask */
  .slider.w-slider {
    overflow: hidden;
  }

  /* Apply body-landing base typography to scope root */
  :scope {
    color: #0e2b8f;
    font-family: Worksans, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 23px;
  }

  /* ---- Inline styles from source head ---- */

  .faq-item-blog {
    overflow: hidden;
    margin-top: 25px;
    padding-bottom: 0;
    border-top: 1px solid rgba(14, 43, 143, 0.25);
    border-bottom: 1px solid rgba(14, 43, 143, 0.25);
    text-align: left;
  }

  .faq-title-blog {
    font-size: 18px;
    line-height: 29px;
    font-weight: 500;
  }

  .plan-price-original {
    position: relative;
    display: inline-block;
  }

  .plan-price-original::before,
  .plan-price-original::after {
    content: '';
    width: 100%;
    position: absolute;
    right: 0;
    top: 50%;
  }

  .plan-price-original::before {
    border-bottom: 2px solid #ff5206;
    -webkit-transform: skewY(-10deg);
    transform: skewY(-10deg);
  }

  /* slider dots: polygon shape, blue/orange */
  .w-slider-dot {
    background: #0e2b8f !important;
    clip-path: polygon(50% 0%, 90% 20%, 100% 60%, 74% 95%, 25% 95%, 0 59%, 8% 25%);
    width: 30px !important;
    height: 30px !important;
  }

  .w-slider-dot.w-active {
    background: #ff5206 !important;
  }

  /* Pricing tooltip — show desc paragraph on click */
  .feature-desc-24 {
    display: none;
    font-size: 14px;
    line-height: 20px;
    color: #0e2b8f;
    padding-top: 6px;
  }

  .feature-desc-24.visible {
    display: block;
  }

  /* ---- features-section-4 feature grid lines ---- */
  .line {
    height: 1px;
    background-color: rgba(14, 43, 143, 0.15);
    margin: 0;
  }

  .line.hide {
    display: none;
  }

  .line.h {
    display: none;
  }

  .line.m {
    display: none;
  }

  /* ---- NordLayer logo sizing ---- */
  .img-nordlayer {
    height: 20px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
  }


  /* ---- Navigation full — push page content below fixed nav ---- */
  .navigation-full {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
  }

  /* ---- Push hero below fixed nav ---- */
  .hero-wrap {
    padding-top: 80px;
  }

  /* ---- features-section-4 ---- */
  .features-section-4 {
    background-color: #f1f3f8;
  }

  /* Hide empty Lottie/animation divs */
  .gauge_circle-3 {
    display: none;
  }

  /* ---- What You Get section — lines at desktop ---- */
  @media screen and (min-width: 992px) {
    .features-grid-2 > .feature-div.bottom > .line:not(.hide):not(.h):not(.m) {
      display: none;
    }
  }

  /* ---- HowToStart HR line ---- */
  .feature_component_steps .feature_component_hr {
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
  }

  /* ---- Footer ---- */
  .f-footer-regular {
    background-color: #0e2b8f;
  }

  /* ---- Banner (hidden by default - webinar banner is outdated) ---- */
  .link-banner {
    display: none;
  }

  /* ---- Dropdown nav — show on hover (JS handles click) ---- */
  .dropdown-list-3.w-dropdown-list {
    display: none;
    position: absolute;
    background: #fff;
    box-shadow: 0 8px 24px rgba(14, 43, 143, 0.15);
    border-radius: 8px;
    z-index: 1000;
    min-width: 280px;
  }

  .dropdown-list-3.w-dropdown-list.w--open {
    display: block;
  }

  .w-dropdown {
    position: relative;
  }

  @media (max-width: 991px) {
    .features-grid-2 {
      grid-template-columns: 1fr 1fr;
    }

    .image-91 {
      width: 140px;
    }

    .div-block-6 {
      flex-direction: column;
    }
  }

  @media (max-width: 767px) {
    .features-grid-2 {
      grid-template-columns: 1fr 1fr;
    }

    .feature-div {
      border-right: none;
      border-bottom: 1px solid rgba(14, 43, 143, 0.1);
    }

    .div-block-6 {
      flex-direction: column;
    }

    .image-91 {
      width: 100%;
    }

    .h-feature {
      font-size: 28px;
    }
  }

  @media (max-width: 479px) {
    .features-grid-2 {
      grid-template-columns: 1fr;
    }
  }

  #testimonials-dots .w-slider-dot {
    width: 30px;
    height: 30px;
    background: #0e2b8f;
    clip-path: polygon(50% 0%, 90% 20%, 100% 60%, 74% 95%, 25% 95%, 0 59%, 8% 25%);
    border-radius: 0;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: none;
  }
  #testimonials-dots .w-slider-dot.w-active {
    background: #ff5206;
  }
  #testimonials-dots .w-slider-dot:focus {
    box-shadow: none;
    outline: none;
  }
}
