/*
 * SPARO public marketing calls to action.
 * Scope is limited to named CTA components, not navigation or ordinary links.
 */

#sparo-site-header .sparo-header-contact,
#sparo-site-header .sparo-header-demo,
#sparo-header-mobile-menu .sparo-header-demo,
.hero-cta-wrap .signup-btn,
.cta-bottom-home .final-demo-wrap .signup-btn,
.cta-section .cta-btn,
.hero .club-btn,
.closing .club-btn,
.team-section .club-btn,
.hero .hero-btn,
.closing .hero-btn,
.work-with-us-section .work-with-us-btn,
.work-with-us-submit,
.contact-card form button[type="submit"] {
  font-family: 'Inter Tight', sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 18px !important;
  letter-spacing: -0.02em !important;
  padding: 7px 12px !important;
  box-sizing: border-box !important;
  height: 34px !important;
  min-height: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  min-width: 0 !important;
  max-width: 100% !important;
  border: 1px solid transparent !important;
  border-radius: 7px !important;
  box-shadow: none !important;
  background-image: none !important;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease !important;
}

/* Slight rounding for header actions; keep all other CTA shapes unchanged. */
#sparo-site-header .sparo-header-contact,
#sparo-site-header .sparo-header-demo,
#sparo-header-mobile-menu .sparo-header-demo {
  border-radius: 9px !important;
}

/* Primary solution-page hero actions are larger; header actions stay compact. */
.hero .solution-hero-cta {
  display: inline-flex;
  height: 50px !important;
  font-size: 18px !important;
  line-height: 22px !important;
  padding: 13px 24px !important;
}

/* The two solution-page closing actions are intentionally larger than the header. */
.closing .closing-cta-note {
  max-width: 420px;
  margin: 0 0 20px;
  color: #bac4c9;
  font-size: 16px;
  line-height: 1.6;
}

.closing .solution-closing-cta {
  position: relative;
  left: -16px;
  display: inline-flex;
  height: 46px !important;
  font-size: 16px !important;
  line-height: 20px !important;
  padding: 12px 20px !important;
  gap: 14px;
}

.closing .solution-closing-cta svg {
  display: block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

.closing--performance .solution-closing-cta {
  left: 0;
}

@media (max-width: 767px) {
  .closing .solution-closing-cta {
    left: -6px;
  }

  .closing--performance .solution-closing-cta {
    left: 0;
  }
}

/* Filled primary actions: shared header, solution-page heroes, and form submit. */
#sparo-site-header .sparo-header-demo,
#sparo-header-mobile-menu .sparo-header-demo,
.hero .club-btn,
.hero .hero-btn,
.work-with-us-submit,
.community-submit,
.contact-card form button[type="submit"] {
  background: #2878FF !important;
  border-color: #2878FF !important;
  color: #fff !important;
}

/* Recruiting entrance: white at rest, black on hover. */
.work-with-us-section .work-with-us-btn {
  font-size: 16px !important;
  line-height: 20px !important;
  padding: 10px 18px !important;
  height: 42px !important;
  background: #fff !important;
  border-color: #fff !important;
  color: #000 !important;
}

/* Homepage hero: reference-sized white button, bare chevron, blue on hover. */
.hero-cta-wrap .signup-btn {
  width: fit-content !important;
  min-width: 160px !important;
  height: 44px !important;
  font-size: 16px !important;
  line-height: 20px !important;
  padding: 11px 20px !important;
  margin-left: 0 !important;
  gap: 10px !important;
  justify-content: space-between !important;
  background: #fff !important;
  border-color: #fff !important;
  color: #111 !important;
  border-radius: 7px !important;
  box-shadow: none !important;
}

.hero-cta-wrap .signup-btn .hero-cta-label {
  padding-left: 0;
}

.hero-cta-wrap .signup-btn .hero-cta-arrow {
  display: inline-flex;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: inherit;
}

.hero-cta-wrap .signup-btn .hero-cta-arrow svg {
  display: block;
  width: 16px;
  height: 16px;
}

@media (max-width: 767px) {
  .hero-cta-wrap .signup-btn {
    margin-left: 0 !important;
  }
}

/* Slightly larger homepage partnership action; other CTAs keep their sizing. */
.cta-bottom-home .final-demo-wrap .signup-btn {
  font-size: 16px !important;
  line-height: 20px !important;
  padding: 10px 18px !important;
  height: 42px !important;
}

/* Repeat/lower-page actions and Contact us remain outlined on dark surfaces. */
#sparo-site-header .sparo-header-contact,
.cta-bottom-home .final-demo-wrap .signup-btn,
.cta-section .cta-btn,
.closing .club-btn,
.team-section .club-btn,
.closing .hero-btn {
  background: transparent !important;
  border-color: rgba(238, 244, 247, 0.42) !important;
  color: rgba(245, 248, 250, 0.94) !important;
}

/* Club closing action is white; other outlined actions are unchanged. */
.club-faq--club .closing .solution-closing-cta {
  background: #fff !important;
  border-color: #fff !important;
  color: #07111c !important;
}

/* High Performance uses the normal closing-button size with a white fill. */
.closing--performance .hero-btn.solution-closing-cta {
  background: #fff !important;
  border-color: #fff !important;
  color: #07111c !important;
}

/* Neutralize legacy lift, filter, and shadow effects for these CTAs only. */
#sparo-site-header .sparo-header-demo:hover,
#sparo-header-mobile-menu .sparo-header-demo:hover,
.hero-cta-wrap .signup-btn:hover,
.cta-bottom-home .final-demo-wrap .signup-btn:hover,
.cta-section .cta-btn:hover,
.hero .club-btn:hover,
.closing .club-btn:hover,
.team-section .club-btn:hover,
.hero .hero-btn:hover,
.closing .hero-btn:hover,
.work-with-us-section .work-with-us-btn:hover,
.work-with-us-submit:hover,
.contact-card form button[type="submit"]:hover {
  transform: none !important;
  filter: none !important;
}

@media (hover: hover) and (pointer: fine) {
  #sparo-site-header .sparo-header-demo:hover,
  #sparo-header-mobile-menu .sparo-header-demo:hover,
  .hero .club-btn:hover,
  .hero .hero-btn:hover,
  .work-with-us-submit:hover,
  .community-submit:hover,
  .contact-card form button[type="submit"]:hover {
    background: #2169DE !important;
    border-color: #2169DE !important;
    color: #fff !important;
  }

  .work-with-us-section .work-with-us-btn:hover {
    background: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
  }

  .hero-cta-wrap .signup-btn:hover {
    background: #2169DE !important;
    border-color: #2169DE !important;
    color: #fff !important;
  }

  #sparo-site-header .sparo-header-contact:hover,
  .cta-bottom-home .final-demo-wrap .signup-btn:hover,
  .cta-section .cta-btn:hover,
  .closing .club-btn:hover,
  .team-section .club-btn:hover,
  .closing .hero-btn:hover {
    background: #393c41 !important;
    border-color: #555a61 !important;
    color: #fff !important;
  }
}

#sparo-site-header .sparo-header-contact:focus-visible,
#sparo-site-header .sparo-header-demo:focus-visible,
#sparo-header-mobile-menu .sparo-header-demo:focus-visible,
.hero-cta-wrap .signup-btn:focus-visible,
.cta-bottom-home .final-demo-wrap .signup-btn:focus-visible,
.cta-section .cta-btn:focus-visible,
.hero .club-btn:focus-visible,
.closing .club-btn:focus-visible,
.team-section .club-btn:focus-visible,
.hero .hero-btn:focus-visible,
.closing .hero-btn:focus-visible,
.work-with-us-section .work-with-us-btn:focus-visible,
.work-with-us-submit:focus-visible,
.contact-card form button[type="submit"]:focus-visible {
  outline: 2px solid #91baff !important;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  #sparo-site-header .sparo-header-contact,
  #sparo-site-header .sparo-header-demo,
  #sparo-header-mobile-menu .sparo-header-demo,
  .hero-cta-wrap .signup-btn,
  .cta-bottom-home .final-demo-wrap .signup-btn,
  .cta-section .cta-btn,
  .hero .club-btn,
  .closing .club-btn,
  .team-section .club-btn,
  .hero .hero-btn,
  .closing .hero-btn,
  .work-with-us-section .work-with-us-btn,
  .work-with-us-submit,
  .contact-card form button[type="submit"] {
    transition: none !important;
  }

  .hero-cta-wrap .signup-btn .hero-cta-arrow {
    transition: none !important;
  }
}
