/* Dynamic motion & interactive usability layer for v9 pages. */
:root {
  --v9-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --v9-ease-spring: cubic-bezier(0.34, 1.36, 0.64, 1);
  --v9-accent-teal: #28705b;
}

html, body {
  width: auto !important;
  max-width: 100%;
  overflow-x: clip;
}

/* Sticky translucent header with smooth scroll elevation */
header[data-v9-header] {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 260ms var(--v9-ease-out), background-color 260ms var(--v9-ease-out), border-color 260ms var(--v9-ease-out);
}
header[data-v9-header].is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(23, 23, 23, 0.1);
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.06);
}

/* Top scroll progress bar */
.v9-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 120;
  pointer-events: none;
  background: transparent;
}
.v9-scroll-progress-bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #171717 0%, var(--v9-accent-teal) 100%);
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
}

/* Footer polish */
footer[data-v9-footer] a {
  color: #e5e5e5;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 180ms ease;
}
footer[data-v9-footer] a:hover {
  color: #ffffff;
}

/* Interactive tactile hover & focus transitions */
.v9-shell-nav a,
.v9-shell-cta,
.v9-shell-locale select,
.v9-shell-toggle,
.store-link,
.web-app-button,
.aud-link,
.offer-brief a,
.adoption-evidence-copy a,
.v9-columns__head a {
  transition: transform 220ms var(--v9-ease-out), box-shadow 220ms var(--v9-ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.v9-shell-actions .v9-shell-cta:not(.v9-shell-cta--primary) {
  background: #171717;
  color: #ffffff;
  border-color: #171717;
  gap: 7px;
  padding: 7px 15px;
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.14);
}
.v9-shell-actions .v9-shell-cta:not(.v9-shell-cta--primary)::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3eb489;
  flex: none;
}
.v9-shell-actions .v9-shell-cta:not(.v9-shell-cta--primary):hover {
  background: #28705b;
  border-color: #28705b;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(23, 23, 23, 0.2);
}

.v9-shell-cta:hover,
.web-app-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(17, 17, 17, 0.1);
}
.v9-shell-cta:active,
.web-app-button:active {
  transform: translateY(0);
}

.store-link:hover {
  transform: translateY(-2px);
}

/* Audience cards dynamic lift & photo zoom */
.audience-grid a {
  transition: transform 280ms var(--v9-ease-out), box-shadow 280ms var(--v9-ease-out), border-color 240ms ease;
}
.audience-grid a .audience-photo {
  transition: transform 380ms var(--v9-ease-out), box-shadow 280ms var(--v9-ease-out);
}
.audience-grid a:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.08);
}
.audience-grid a:hover .audience-photo {
  transform: scale(1.045);
}

/* Evidence cards, feature cards, columns, reward steps, service cards */
.adoption-evidence-card,
.data-card,
.chat-box,
.security-card,
.reward-steps li,
.v9-columns li,
.card,
.card-soft,
.btn-primary,
.btn-secondary,
.btn-white,
.btn-ghost {
  transition: transform 280ms var(--v9-ease-out), box-shadow 280ms var(--v9-ease-out), border-color 240ms ease, background-color 200ms ease, color 200ms ease;
}
.adoption-evidence-card:hover,
.v9-columns li:hover,
.card:hover,
.card-soft:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(17, 17, 17, 0.08);
}
.btn-primary:hover,
.btn-secondary:hover,
.btn-white:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.14);
}
.btn-primary:active,
.btn-secondary:active,
.btn-white:active,
.btn-ghost:active {
  transform: translateY(0);
}
.v9-columns li img {
  transition: transform 420ms var(--v9-ease-out);
}
.v9-columns li:hover img {
  transform: scale(1.04);
}
.reward-steps li:hover {
  transform: translateX(4px);
}

/* Zoomable screenshots */
.v9-example-screen-frame,
.mini-phone,
.phone-card,
.org-feature-shot {
  position: relative;
  cursor: zoom-in;
  transition: transform 300ms var(--v9-ease-out), box-shadow 300ms var(--v9-ease-out);
}
.v9-example-screen-frame:hover,
.mini-phone:hover,
.phone-card:hover,
.org-feature-shot:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(17, 17, 17, 0.12);
}

/* Bottom-right floating action dock (Back-to-top + persistent Contact CTA) */
.v9-floating-dock {
  position: fixed;
  right: 20px;
  bottom: max(20px, env(safe-area-inset-bottom, 20px));
  z-index: 85;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}
.v9-floating-dock > * {
  pointer-events: auto;
}
.v9-floating-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 62px;
  padding: 18px 30px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: #171717;
  color: #ffffff !important;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  box-shadow: 0 14px 34px rgba(17, 17, 17, 0.28);
  transition: transform 240ms var(--v9-ease-out), box-shadow 240ms var(--v9-ease-out), background-color 200ms ease;
}
.v9-floating-cta::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3eb489;
  flex: none;
}
.v9-floating-cta .v9-floating-cta-arrow {
  display: inline-block;
  font-size: 18px;
  transition: transform 220ms var(--v9-ease-out);
}
.v9-floating-cta:hover {
  background: #28705b;
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(23, 23, 23, 0.28);
}
.v9-floating-cta:hover .v9-floating-cta-arrow {
  transform: translateX(3px);
}
.v9-floating-cta:active {
  transform: translateY(0);
}
.v9-floating-cta:focus-visible {
  outline: 2px solid var(--v9-accent-teal);
  outline-offset: 3px;
}

/* Back-to-top floating button */
.v9-back-to-top {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(23, 23, 23, 0.16);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  color: #171717;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.12);
  opacity: 0;
  transform: translateY(10px) scale(0.92);
  pointer-events: none;
  transition: opacity 240ms var(--v9-ease-out), transform 260ms var(--v9-ease-out), background-color 180ms ease, color 180ms ease;
}
.v9-back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.v9-back-to-top:hover {
  background: #171717;
  color: #ffffff;
  transform: translateY(-2px) scale(1.04);
}
.v9-back-to-top:focus-visible {
  outline: 2px solid var(--v9-accent-teal);
  outline-offset: 2px;
}
@media (max-width: 640px) {
  .v9-floating-dock {
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom, 14px));
    gap: 8px;
  }
  .v9-floating-cta {
    min-height: 52px;
    padding: 14px 22px;
    font-size: 15px;
    gap: 9px;
  }
  .v9-back-to-top {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }
}

/* Lightbox modal for inspecting screenshots */
.v9-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 17, 18, 0.84);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 240ms var(--v9-ease-out), visibility 240ms ease;
}
.v9-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.v9-lightbox-dialog {
  position: relative;
  max-width: min(92vw, 960px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transform: translateY(12px) scale(0.96);
  transition: transform 280ms var(--v9-ease-out);
}
.v9-lightbox.is-open .v9-lightbox-dialog {
  transform: translateY(0) scale(1);
}
.v9-lightbox-img {
  max-width: 100%;
  max-height: calc(90vh - 80px);
  width: auto;
  height: auto;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.v9-lightbox-caption {
  margin: 0;
  color: #f2f2f2;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  max-width: 68ch;
}
.v9-lightbox-close {
  position: fixed;
  top: 18px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(23, 23, 23, 0.78);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 180ms ease, transform 200ms var(--v9-ease-out);
}
.v9-lightbox-close:hover {
  background: #ffffff;
  color: #171717;
  transform: scale(1.06);
}

.security-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: #f0f0f0;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 180ms ease, gap 200ms var(--v9-ease-out);
}
.security-card-link:hover {
  color: #ffffff;
  gap: 9px;
}

/* Unified Home audience + problem-to-solution section */
.v9-audience-intro {
  padding-top: 32px;
  margin-bottom: 22px;
}
.v9-audience-intro h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.28;
  font-weight: 800;
  color: #171717;
  letter-spacing: -0.02em;
}
.v9-audience-intro p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: #4b4b4b;
}
.v9-audience-unified {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-bottom: 28px;
  align-items: stretch;
}
.v9-audience-unified > a.v9-audience-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  padding: 26px 22px 22px;
  border: 1px solid #e2e2e2;
  border-radius: 18px;
  background: #ffffff;
  text-decoration: none;
  color: #171717;
  cursor: pointer;
  transition: transform 280ms var(--v9-ease-out), box-shadow 280ms var(--v9-ease-out), border-color 220ms ease, background-color 220ms ease;
}
.v9-audience-unified > a.v9-audience-card:hover {
  border-color: #171717;
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(17, 17, 17, 0.1);
}
.v9-audience-unified > a.v9-audience-card:active {
  transform: translateY(-2px);
}
.v9-audience-unified > a.v9-audience-card:focus-visible {
  outline: 2px solid var(--v9-accent-teal);
  outline-offset: 3px;
}
.v9-audience-go {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid #e2e2e2;
  background: #fafafa;
  color: #555555;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 260ms var(--v9-ease-out), background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}
.v9-audience-unified > a.v9-audience-card:hover .v9-audience-go {
  background: #171717;
  border-color: #171717;
  color: #ffffff;
  transform: translateX(3px);
}
.v9-audience-photo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.v9-audience-photo {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.08);
  transition: transform 380ms var(--v9-ease-out), box-shadow 280ms var(--v9-ease-out);
}
.v9-audience-unified > a.v9-audience-card:hover .v9-audience-photo {
  transform: scale(1.05);
  box-shadow: 0 12px 26px rgba(17, 17, 17, 0.14);
}
.v9-audience-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eaeaea;
}
.v9-audience-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #171717;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1;
  flex: none;
}
.v9-audience-head strong {
  font-size: 18px;
  font-weight: 800;
  color: #171717;
  line-height: 1.3;
}
.v9-audience-solve {
  padding-top: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.v9-audience-problem {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: #525252;
}
.v9-audience-solution {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.5;
  color: #171717;
}
.v9-audience-arrow {
  color: var(--v9-accent-teal);
  font-weight: 800;
  flex: none;
}
.v9-audience-solution-text {
  color: #171717;
}
@media (max-width: 900px) {
  .v9-audience-unified {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .v9-audience-photo {
    width: 124px;
    height: 124px;
  }
}

/* Remove horizontal divider lines above and below the campaign banner on gym/biz */
body[data-page="gym"] .hero,
body[data-page="biz"] .hero {
  border-bottom: 0;
}
body[data-page="gym"] section.block.white:has(.campaign-strip),
body[data-page="biz"] section.block.white:has(.campaign-strip) {
  border-top: 0;
  border-bottom: 0;
  padding-top: 24px;
  padding-bottom: 24px;
}

/* Gym & Biz visual problem-to-solution section right above #features */
.v9-org-solve {
  padding: 58px 0 54px;
  background: #fafafa;
  border-top: 0;
  border-bottom: 1px solid #e6e6e6;
}
.v9-org-solve-intro {
  max-width: 780px;
  margin-bottom: 28px;
}
.v9-org-solve-intro h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 2.8vw, 33px);
  line-height: 1.3;
  font-weight: 800;
  color: #171717;
  letter-spacing: -0.02em;
}
.v9-org-solve-lead {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: #4b4b4b;
}
.v9-org-solve-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.v9-org-solve-card {
  display: flex;
  flex-direction: column;
  padding: 18px 20px 22px;
  border: 1px solid #e2e2e2;
  border-radius: 18px;
  background: #ffffff;
  text-decoration: none;
  color: #171717;
  transition: transform 280ms var(--v9-ease-out), box-shadow 280ms var(--v9-ease-out), border-color 220ms ease;
}
.v9-org-solve-card:hover {
  border-color: #171717;
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(17, 17, 17, 0.09);
}
.v9-org-solve-media {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: #f2f2f2;
  margin-bottom: 16px;
}
.v9-org-solve-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 420ms var(--v9-ease-out);
}
.v9-org-solve-card:hover .v9-org-solve-media img {
  transform: scale(1.045);
}
@media (max-width: 920px) {
  .v9-org-solve-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
@media (max-width: 640px) {
  .v9-org-solve {
    padding: 40px 0;
  }
}

/* Value proposition & problem-solving section (shared across Personal / Gym / Biz) */
.v9-value-prop {
  padding: 58px 0;
  background: #ffffff;
  border-top: 1px solid #e6e6e6;
  border-bottom: 1px solid #e6e6e6;
}
.v9-vp-intro {
  max-width: 780px;
  margin-bottom: 28px;
}
.v9-vp-eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f3f5f4;
  color: var(--v9-accent-teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.v9-vp-intro h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.32;
  color: #171717;
  letter-spacing: -0.02em;
}
.v9-vp-lead {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: #4b4b4b;
}
.v9-vp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.v9-vp-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  background: #fafafa;
  transition: transform 280ms var(--v9-ease-out), box-shadow 280ms var(--v9-ease-out), border-color 240ms ease, background-color 240ms ease;
}
.v9-vp-card:hover {
  transform: translateY(-4px);
  background: #ffffff;
  border-color: #c8d6d1;
  box-shadow: 0 16px 32px rgba(17, 17, 17, 0.07);
}
.v9-vp-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.v9-vp-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #171717;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  flex: none;
}
.v9-vp-tag {
  font-size: 15px;
  font-weight: 800;
  color: #171717;
}
.v9-vp-block {
  padding: 12px 14px;
  border-radius: 12px;
}
.v9-vp-block--problem {
  background: #f1f1f1;
}
.v9-vp-block--solution {
  background: #ffffff;
  border: 1px solid #d7e3df;
  flex: 1;
}
.v9-vp-label {
  margin: 0 0 5px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #5c5c5c;
}
.v9-vp-block--solution .v9-vp-label {
  color: var(--v9-accent-teal);
}
.v9-vp-text {
  margin: 0;
  font-size: 13.8px;
  line-height: 1.65;
  color: #262626;
}
.v9-vp-arrow {
  text-align: center;
  color: var(--v9-accent-teal);
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  padding: 6px 0;
}
.v9-vp-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 16px;
  font-size: 13.5px;
  font-weight: 750;
  color: #171717;
  text-decoration: none;
  transition: color 180ms ease, gap 200ms var(--v9-ease-out);
}
.v9-vp-link:hover {
  color: var(--v9-accent-teal);
  gap: 8px;
}
@media (max-width: 960px) {
  .v9-vp-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
@media (max-width: 640px) {
  .v9-value-prop {
    padding: 40px 0;
  }
  .v9-vp-card {
    padding: 18px;
  }
}

/* Scroll reveal choreography */
@media screen and (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .v9-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 560ms var(--v9-ease-out), transform 620ms var(--v9-ease-out);
    transition-delay: var(--v9-reveal-delay, 0ms);
    will-change: opacity, transform;
  }
  .v9-reveal.is-in {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
  }

  .v9-hero-enter {
    animation: v9-hero-in 640ms var(--v9-ease-out) both;
  }
  .v9-hero-enter--delay {
    animation: v9-hero-in 720ms var(--v9-ease-out) 110ms both;
  }
}

@keyframes v9-hero-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .v9-reveal,
  .v9-reveal.is-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .v9-hero-enter,
  .v9-hero-enter--delay {
    animation: none !important;
  }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}
