Equity Compensation (Expense) (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2017
Sep. 30, 2016
Sep. 30, 2017
Sep. 30, 2016
Stock options        
Total stock-based compensation expense        
Total stock-based compensation expense $ 3,028 $ 1,983 $ 9,191 $ 5,933
Total unrecognized compensation cost related to non-vested stock option awards 3,300   $ 3,300  
Weighted-average period over which unrecognized compensation cost will be recognized     1 year 1 month 6 days  
Stock options | Cost of revenue        
Total stock-based compensation expense        
Total stock-based compensation expense 66 38 $ 185 128
Stock options | Research and development        
Total stock-based compensation expense        
Total stock-based compensation expense 1,031 789 3,210 2,493
Stock options | Sales and marketing        
Total stock-based compensation expense        
Total stock-based compensation expense 883 496 2,831 1,605
Stock options | General and administrative        
Total stock-based compensation expense        
Total stock-based compensation expense 1,048 $ 660 2,965 $ 1,707
Restricted stock units        
Total stock-based compensation expense        
Total unrecognized compensation cost related to non-vested restricted stock units $ 10,200   $ 10,200  
Weighted-average period over which unrecognized compensation cost will be recognized     1 year 10 months 24 days