/**
 * HeartPass outline CTAs — /public so Tailwind v4 does not tree-shake these rules.
 * Hover matches .nav-button-primary (lift + ripple); ripple uses @keyframes ripple-in from globals.css.
 */

/* Non-Tailwind escape hatch: filled primary must never reserve a stroke (matches globals; survives stale caches). */
.nav-button-primary {
  border: none !important;
  border-width: 0 !important;
}

/* Mobile/tablet BOARDING NOW — overrides padding only; inherits fill + cream text + border:none from globals */
.nav-button-primary.nav-button-primary--nav-mobile {
  padding: 8px 12px;
  font-size: 0.875rem;
}

.nav-button-download {
  font-family: var(--font-sans), sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--heartpass-red, #f20e0e);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--heartpass-red, #f20e0e);
  padding: 10px 20px;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  line-height: 1;
}

.nav-button-download::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(242, 14, 14, 0.14);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
}

@media (hover: hover) {
  .nav-button-download:hover {
    opacity: 0.92;
    transform: translateY(-1px);
  }

  .nav-button-download:hover::before {
    width: 200px;
    height: 200px;
    animation: ripple-in 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    opacity: 1;
  }
}

.nav-button-download--compact {
  padding: 8px 12px;
  font-size: 0.875rem;
}

@media (max-width: 767.98px) {
  .nav-button-primary.nav-button-primary--nav-mobile,
  .nav-button-download.nav-button-download--compact {
    min-height: var(--nav-mobile-cta-min-height);
  }
}

/* Narrow phones: slightly smaller CTAs so BOARDING / DOWNLOAD + logo stay clear of each other */
@media (max-width: 400px) {
  .nav-button-primary.nav-button-primary--nav-mobile,
  .nav-button-download.nav-button-download--compact {
    padding: 6px 10px;
    font-size: 0.8125rem;
  }
}

.nav-button-download:focus-visible {
  outline: 2px solid var(--heartpass-red, #f20e0e);
  outline-offset: 3px;
}
