/* BeFit — Health for everyone (Apple-inspired) */

html:has([data-health-page]) {
  scroll-padding-top: 9.5rem;
}

.health-page {
  --health-max: 72rem;
  --health-pad: clamp(1.25rem, 4vw, 2.5rem);
  --health-ease: cubic-bezier(0.22, 1, 0.36, 1);
  background: #0b121c;
  color: #fff;
  padding-top: 5rem;
  overflow-x: clip;
}

.health-subnav {
  position: sticky;
  top: 5rem;
  z-index: 40;
  background: rgba(11, 18, 28, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.health-subnav__inner {
  max-width: var(--health-max);
  margin: 0 auto;
  padding: 0.75rem var(--health-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.health-subnav__brand {
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
  white-space: nowrap;
}

.health-subnav__links {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.15rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.health-subnav__links::-webkit-scrollbar {
  display: none;
}

.health-subnav__link {
  flex-shrink: 0;
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease;
}

.health-subnav__link:hover {
  color: #cbd5e1;
}

.health-subnav__link.is-active {
  color: #fff;
  background: rgba(59, 130, 246, 0.15);
}

/* Hero — 全幅生活感背景 + 置中標語 */
.health-hero {
  position: relative;
  min-height: min(92dvh, 820px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(4rem, 12vh, 7rem) var(--health-pad);
  overflow: hidden;
}

.health-hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 18, 28, 0.55) 0%, rgba(11, 18, 28, 0.92) 55%, #0b121c 100%),
    url("screenshot-today.png") center 30% / cover no-repeat;
  transform: scale(1.05);
  filter: saturate(1.05) brightness(0.85);
}

.health-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(59, 130, 246, 0.22) 0%, transparent 65%);
}

.health-hero__content {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.health-hero__icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #fff;
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.35), rgba(52, 211, 153, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 48px rgba(59, 130, 246, 0.35);
}

.health-hero__title {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
}

.health-section {
  max-width: var(--health-max);
  margin: 0 auto;
  padding: clamp(3.5rem, 10vh, 6rem) var(--health-pad);
}

.health-section--wide {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.health-section--wide .health-section__inner {
  max-width: var(--health-max);
  margin: 0 auto;
  padding: 0 var(--health-pad);
}

.health-statement {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 500;
  line-height: 1.65;
  color: #cbd5e1;
}

.health-features-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.75rem;
}

.health-features-head__title {
  margin: 0;
  max-width: 36rem;
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.health-features-head__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.health-features-head__link {
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #38bdf8;
  text-decoration: none;
  white-space: nowrap;
}

.health-features-head__link:hover {
  color: #7dd3fc;
}

.health-cards__nav {
  display: flex;
  gap: 0.5rem;
}

.health-cards__btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(30, 41, 59, 0.8);
  color: #e2e8f0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}

.health-cards__btn:hover {
  background: rgba(59, 130, 246, 0.2);
}

.health-cards__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 var(--health-pad) 1rem;
  scrollbar-width: none;
}

.health-cards__track::-webkit-scrollbar {
  display: none;
}

.health-card {
  flex: 0 0 min(320px, 85vw);
  scroll-snap-align: start;
  border-radius: 1.75rem;
  padding: 1.75rem 1.75rem 0;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.4s var(--health-ease);
}

.health-card:hover {
  transform: translateY(-6px);
}

.health-card__label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.health-card__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}

.health-card__visual {
  margin-top: auto;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 200px;
  padding-top: 0.5rem;
}

.health-card__visual img {
  width: min(200px, 72%);
  height: auto;
  border-radius: 1.5rem 1.5rem 0 0;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-bottom: none;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.35);
  object-fit: cover;
  aspect-ratio: 390 / 844;
  object-position: top center;
}

.health-card--blue {
  background: linear-gradient(160deg, #1d4ed8 0%, #2563eb 45%, #1e3a8a 100%);
}

.health-card--slate {
  background: linear-gradient(160deg, #334155 0%, #1e293b 55%, #0f172a 100%);
}

.health-card--amber {
  background: linear-gradient(160deg, #b45309 0%, #92400e 50%, #451a03 100%);
}

.health-card--violet {
  background: linear-gradient(160deg, #6d28d9 0%, #5b21b6 50%, #312e81 100%);
}

.health-card--cyan {
  background: linear-gradient(160deg, #0e7490 0%, #155e75 50%, #164e63 100%);
}

.health-card--mint {
  background: linear-gradient(160deg, #047857 0%, #065f46 50%, #064e3b 100%);
}

/* 價格區 */
.health-pricing-intro {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

.health-pricing-intro__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #38bdf8;
}

.health-pricing-intro__title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.health-pricing-intro__lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: #94a3b8;
}

.health-price-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2.5rem;
  padding: 2rem 2.5rem;
  max-width: 22rem;
  border-radius: 1.5rem;
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.2), rgba(52, 211, 153, 0.08));
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 24px 60px -20px rgba(59, 130, 246, 0.35);
}

.health-price-badge__row {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
}

.health-price-badge__amount {
  font-size: clamp(3rem, 10vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(90deg, #fff 0%, #93c5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.health-price-badge__period {
  font-size: 1.25rem;
  font-weight: 600;
  color: #94a3b8;
}

.health-price-badge__note {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: #64748b;
  text-align: center;
}

.health-compare-wrap {
  margin-top: 1rem;
}

.health-cta {
  text-align: center;
  margin-top: 2.5rem;
}

.health-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  background: #3b82f6;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.35);
  transition: background 0.25s ease, transform 0.2s ease;
}

.health-cta__btn:hover {
  background: #2563eb;
  transform: scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
  .health-card {
    transition: none;
  }

  .health-card:hover {
    transform: none;
  }
}
