/* Price toggle: swap monthly/quarterly values */
/* NOTE: this file also holds .tier-card / .tier-grid, reused on contact.html */
.price {
  transition: opacity 0.18s ease;
  opacity: 1;
}
.price-hidden {
  display: none !important;
}

/* ---------- Segmented Monthly/Quarterly toggle ---------- */
.price-toggle {
  position: relative;
  display: inline-flex;
  background: #eef0f1;
  border-radius: 999px;
  padding: 4px;
  margin: 0 auto 1.5rem;
}
.price-toggle .toggle-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: 0;
  background: var(--brand-green);
  border-radius: 999px;
  transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1), width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}
.price-toggle button {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brand-green-dark);
  transition: color 0.2s ease;
}
.price-toggle button.active {
  color: #fff;
}
.price-toggle button .save-badge {
  font-weight: 500;
  font-size: 0.75rem;
  opacity: 0.85;
}

/* ---------- Tier cards ---------- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.tier-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  text-align: left;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.reveal.is-visible .tier-card {
  opacity: 1;
  transform: translateY(0);
}
.tier-grid .tier-card:nth-child(1) { transition-delay: 0.05s; }
.tier-grid .tier-card:nth-child(2) { transition-delay: 0.15s; }
.tier-grid .tier-card:nth-child(3) { transition-delay: 0.25s; }
.tier-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  border-color: var(--brand-green);
}
.tier-card .tier-icon {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--brand-green);
  display: inline-block;
  transition: transform 0.3s ease;
}
.tier-card:hover .tier-icon {
  transform: scale(1.15) rotate(-5deg);
}
.tier-card .tier-name {
  font-family: 'Fredoka', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 0.15rem;
}
.tier-card .tier-subtitle {
  color: #6c757d;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.tier-card .tier-price {
  margin-bottom: 1rem;
}
.tier-card .tier-price .amount {
  font-size: 1.9rem;
  font-weight: 600;
  font-family: 'Fredoka', 'Inter', sans-serif;
  color: var(--brand-green-dark);
}
.tier-card .tier-price .unit {
  font-size: 0.85rem;
  color: #6c757d;
}
.tier-card .tier-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: #495057;
}
.tier-card .tier-features li {
  padding: 0.3rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.tier-card .tier-features i {
  color: var(--brand-green);
  margin-top: 0.15rem;
}
.tier-card .tier-cta {
  margin-top: auto;
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .tier-card,
  .tier-card .tier-icon,
  .price-toggle .toggle-indicator,
  .price {
    transition: none !important;
  }
  .tier-card {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Gymex responsive table ---------- */
.gymex-table thead th {
  position: sticky;
  top: 0;
  background: #f8f9fa;
}
.gymex-table tbody tr:nth-child(odd) {
  background-color: #f4f7f2;
}

@media (max-width: 576px) {
  .gymex-table thead {
    display: none;
  }
  .gymex-table, .gymex-table tbody, .gymex-table tr, .gymex-table td {
    display: block;
    width: 100%;
  }
  .gymex-table tr {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
  }
  .gymex-table td {
    border: none;
    text-align: left !important;
    padding: 0.35rem 0 !important;
  }
  .gymex-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }
  .gymex-table td[rowspan] {
    border-top: 1px dashed #e5e7eb;
    margin-top: 0.35rem;
    padding-top: 0.5rem !important;
  }
}
