/* Landing page (affiliates.html) refinements.
   Every rule is scoped to .landing-page. No global style is changed. */

/* 1. Hero CTAs, mobile only (below 576px).
   Start Free is first in the DOM and therefore first visually and in keyboard order.
   Request Demo becomes an outlined secondary button. */
@media (max-width: 575.98px) {
  .landing-page .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
  }
  .landing-page .hero-cta > span,
  .landing-page .hero-cta > a {
    width: 100%;
  }
  .landing-page .hero-cta .btn {
    display: block;
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: center;
  }
  .landing-page .hero-cta .hero-cta-secondary .btn {
    background-color: var(--bs-white) !important;
    color: var(--bs-primary) !important;
    border: 1px solid var(--bs-primary) !important;
  }
}

/* 2. Desktop and tablet (576px and up): Start Free first, matching the DOM and keyboard order.
   Margins are replaced by gap so the spacing matches the original (0.5rem, then 1rem from 768px). */
@media (min-width: 576px) {
  .landing-page .hero-cta {
    gap: 0.5rem;
  }
  .landing-page .hero-cta .btn {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
@media (min-width: 768px) {
  .landing-page .hero-cta {
    gap: 1rem;
  }
}

/* 3. Supported-by logos, mobile only (below 576px).
   One box height for every logo; width follows each image's own proportions.
   Width is capped at the column width (100%), so a wide logo cannot overflow its column. */
@media (max-width: 575.98px) {
  .landing-page .supported-logo-img {
    height: 40px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain;
  }
}

/* 4. Highlighted phrase in the closing heading, below 768px only.
   .underline-2 is nowrap globally (style.css:22397). Below 768px the phrase is wider than its
   container, so it may wrap. Wrapping only changes the layout where the text would overflow.
   At 768px and up the global nowrap is kept, so desktop is unchanged. */
@media (max-width: 767.98px) {
  .landing-page .underline-2 {
    white-space: normal;
  }
}
