Stockholders' (Deficit) Equity - Additional Information (Detail) | Jan. 01, 2017shares | Jan. 01, 2015shares | Sep. 30, 2017shares | May 31, 2016shares | Feb. 29, 2016shares | Oct. 31, 2015shares | Mar. 31, 2014 | Jul. 31, 2015shares | Dec. 31, 2017USD ($)Vote$ / sharesshares | Dec. 31, 2016USD ($)$ / sharesshares | Dec. 31, 2015USD ($)$ / sharesshares | Aug. 31, 2015shares | Dec. 31, 2014shares |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Common stock voting description | | | | | | | | | Each share of common stock is entitled to one vote for matters to be voted on by the stockholders of the Company. | | | | |
Number of votes for each share of common stock | Vote | | | | | | | | | 1 | | | | |
Number of shares outstanding | | | | | | | | | 4,490,445 | 7,430,094 | | | |
Shares reserved for issuance | | | | | | | | | 21,425,267 | 29,409,436 | | | |
Options to purchase common stock granted, weighted average grant date fair value | $ / shares | | | | | | | | | | | $ 23.17 | | |
Options granted, Number of shares underlying | | | | | | | | | 0 | 0 | | | |
Aggregate intrinsic value of options exercised | $ | | | | | | | | | $ 23,500,000 | $ 13,200,000 | $ 42,900,000 | | |
Cash received from option exercises | $ | | | | | | | | | 12,100,000 | | | | |
Unrecognized stock-based compensation expense | $ | | | | | | | | | $ 4,600,000 | | | | |
Dividend rate | | | | | | | | | 0.00% | | | | |
Options outstanding, weighted average exercise price | $ / shares | | | | | | | | | $ 11.08 | $ 9.81 | | | |
Number of shares canceled | | | | | | | | | 662,470 | | | | |
Non-Employees [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Number of shares outstanding | | | | | | | | | 38,533 | 59,677 | | | |
Weighted-average grant date fair value of restricted stock units granted | $ / shares | | | | | | | | | $ 13.04 | $ 8.99 | $ 21.71 | | |
Weighted-average grant date fair value of restricted stock | $ / shares | | | | | | | | | 15.04 | 9.52 | | | |
Options outstanding, weighted average exercise price | $ / shares | | | | | | | | | $ 3.23 | $ 2.29 | | | |
Restricted stock units outstanding | | | | | | | | | 9,783 | 95,529 | | | |
Stock-based compensation expense | $ | | | | | | | | | $ 500,000 | $ 1,300,000 | $ 600,000 | | |
Executive Officer [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Number of shares canceled | | | | | 1,185,000 | | | | | | | | |
Executive Officer [Member] | General and Administrative [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Stock-based compensation expense | $ | | | | | | | | | | 10,000,000 | | | |
Performance Shares [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Stock-based compensation, recognition period | | | | | | | | | 7 months 24 days | | | | |
Fair value that vested | $ | | | | | | | | | $ 1,900,000 | $ 1,500,000 | 0 | | |
Unrecognized stock-based compensation expense | $ | | | | | | | | | $ 6,700,000 | | | | |
Weighted-average grant date fair value of restricted stock units granted | $ / shares | | | | | | | | | $ 13.39 | | | | |
Weighted-average grant date fair value of restricted stock | $ / shares | | | | | | | | | $ 14.58 | $ 21.16 | | | |
Performance Shares [Member] | April, June and July [Member] | Maximum [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Service period | | | | | | | | 3 years | | | | | |
Unvested Stock Options [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Stock-based compensation, recognition period | | | | | | | | | 8 months 5 days | | | | |
Restricted Stock [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Stock-based compensation, recognition period | | | | | | | | | 8 months 2 days | | | | |
Fair value that vested | $ | | | | | | | | | $ 2,300,000 | $ 4,500,000 | | | |
Unrecognized stock-based compensation expense | $ | | | | | | | | | $ 2,200,000 | | | | |
Weighted-average grant date fair value of restricted stock units granted | $ / shares | | | | | | | | | $ 0 | | | | |
Weighted-average grant date fair value of restricted stock | $ / shares | | | | | | | | | $ 23.76 | $ 23.76 | | | |
Restricted Stock [Member] | Vesting Over Requisite Service Period [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Fair value that vested | $ | | | | | | | | | | | 14,400,000 | | |
Restricted Stock [Member] | Fully vested restricted stock issued on acquisition [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Fair value that vested | $ | | | | | | | | | | | 26,500,000 | | |
RSUs [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Stock-based compensation, recognition period | | | | | | | | | 1 year 7 months 24 days | | | | |
Fair value that vested | $ | | | | | | | | | $ 113,100,000 | $ 25,300,000 | | | |
Unrecognized stock-based compensation expense | $ | | | | | | | | | $ 106,100,000 | | | | |
Weighted-average grant date fair value of restricted stock units granted | $ / shares | | | | | | | | | $ 12.60 | | | | |
Weighted-average grant date fair value of restricted stock | $ / shares | | | | | | | | | $ 13.10 | $ 12.90 | | | |
RSUs [Member] | Vesting Over Requisite Service Period [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Fair value that vested | $ | | | | | | | | | | | 1,100,000 | | |
RSUs [Member] | Fully vested RSUs issued on acquisition [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Fair value that vested | $ | | | | | | | | | | | $ 1,100,000 | | |
RSUs [Member] | Non-Employees [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Number of Shares Issued, Granted | | | | | | | | | 13,200 | 193,000 | 7,416 | | |
Restricted Stock and Stock Options Subject to Repurchase [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Shares of restricted stock and early exercised options subject to the Company's right of repurchase | | | | | | | | | 10,500 | 30,708 | | | |
Liability for shares subject to repurchase | $ | | | | | | | | | $ 100,000 | $ 400,000 | | | |
Restricted Stock and Stock Options Subject to Repurchase [Member] | Maximum [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Repurchase price per share | $ / shares | | | | | | | | | $ 14.22 | $ 14.22 | | | |
Restricted Stock and Stock Options Subject to Repurchase [Member] | Minimum [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Repurchase price per share | $ / shares | | | | | | | | | $ 8.46 | $ 8.46 | | | |
2014 Plan [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Share option, percentage of options granted to stockholder | | | | | | | | | 10.00% | | | | |
Share option, vesting period description | | | | | | | | | In general, RSUs granted to employees and non-employees typically vest over no more than three years. | | | | |
Shares reserved for issuance | | | | | | | | | 706,994 | 4,234,205 | | | 6,000,000 |
Percentage of increase in shares of common stock on the immediately preceding December 31, reserved and available for issuance, per year | | 5.00% | | | | | | | | | | | |
2014 Plan [Member] | Maximum [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Share based compensation, vesting period | | | | | | | | | 3 years | | | | |
2014 Plan [Member] | Minimum [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Share option, exercise price as a percentage of fair market value | | | | | | | | | 100.00% | | | | |
2014 Plan [Member] | Ten Percent Shareholders [Member] | Minimum [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Share option, exercise price as a percentage of fair market value | | | | | | | | | 110.00% | | | | |
2014 Plan [Member] | Performance Shares [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Number of Shares Issued, Granted | | | | | | 266,084 | | 421,484 | | | | | |
2014 Plan [Member] | Performance Shares [Member] | October [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Performance cycle | | | | | | 12 months | | | | | | | |
2014 Plan [Member] | Performance Shares [Member] | October [Member] | Maximum [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Service period | | | | | | 2 years | | | | | | | |
2014 Plan [Member] | Incentive Stock Options [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Share based compensation, expiration period | | | | | | | | | 10 years | | | | |
Share option, vesting period description | | | | | | | | | ISOs granted under the Amended 2014 Plan generally vest 25 percent after the completion of 12 months of service and the balance in equal monthly installments over the next 36 months of service, and expire 10 years from the date of grant (subject to earlier expiration upon occurrence of certain events). ISOs granted to a 10 percent stockholder expire five years from the date of grant (subject to earlier expiration upon occurrence of certain events) | | | | |
2014 Plan [Member] | Incentive Stock Options [Member] | Vesting During Initial Period [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Share option, percentage of vesting | | | | | | | | | 25.00% | | | | |
Shares, vesting period | | | | | | | | | 12 months | | | | |
2014 Plan [Member] | Incentive Stock Options [Member] | Vesting After Initial Period [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Shares, vesting period | | | | | | | | | 36 months | | | | |
2014 Plan [Member] | Incentive Stock Options [Member] | Ten Percent Shareholders [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Share based compensation, expiration period | | | | | | | | | 5 years | | | | |
2014 Plan [Member] | Non Statutory Stock Option [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Share based compensation, expiration period | | | | | | | | | 10 years | | | | |
2011 Plan [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Shares available for issuance | | | | | | | | | | | | | 923,732 |
2011 Plan [Member] | Restricted Stock and Stock Options Subject to Repurchase [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Shares repurchase percentage on original grant amount shares | | | | | | | | | 2.08333% | | | | |
Shares repurchase period | | | | | | | | | 4 years | | | | |
Amended 2014 Plan [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Shares available for issuance | | | | | | | | | 706,994 | | | | |
Shares reserved for issuance | | | | | | | | | 22,606,183 | | | | |
Annual increase in number of shares reserved and available for issuance | 3,071,470 | | | 7,000,000 | | | | | | | | | |
Amended 2014 Plan [Member] | Performance Shares [Member] | Chief Executive Officer [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Number of Shares Issued, Granted | | | 714,711 | | | | | | | | | | |
Performance cycle | | | 4 years | | | | | | | | | | |
Consecutive trading period | | | 40 days | | | | | | | | | | |
Amended 2014 Plan [Member] | Performance Shares [Member] | Chief Executive Officer [Member] | Vesting Based On Performance [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Stock based compensation vesting percentage | | | 100.00% | | | | | | | | | | |
Amended 2014 Plan [Member] | Stock Option, RSUs, and PSUs [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Number of shares outstanding | | | | | | | | | 10,973,357 | | | | |
ESPP [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Shares available for issuance | | | | | | | | | 1,933,343 | | | | |
Shares reserved for issuance | | | | | | | | | 1,933,343 | 2,451,215 | | | |
Percentage of increase in shares of common stock on the immediately preceding December 31, reserved and available for issuance, per year | | 1.00% | | | | | | | | | | | |
Annual increase in number of shares reserved and available for issuance | 614,294 | | | | | | | | | | | | |
Stock-based compensation, recognition period | | | | | | | | | 3 months 26 days | | | | |
Unrecognized stock-based compensation expense | $ | | | | | | | | | $ 1,400,000 | | | | |
Maximum percentage of salary allowed to be deducted for purchase of each employee on base compensation | | | | | | | | | 15.00% | | | | |
Percentage of share purchase price on fair market value | | | | | | | | | 85.00% | | | | |
Maximum value of common stock shares allowed to purchase per employee | $ | | | | | | | | | $ 25,000 | | | | |
Cash received from option exercises | $ | | | | | | | | | $ 7,400,000 | | | | |
ESPP [Member] | Maximum [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Annual increase in number of shares reserved and available for issuance | | 1,000,000 | | | | | | | | | | | |
Initially reserved and authorized shares | | | | | | | | | | | | 2,500,000 | |
ESPP [Member] | Two Thousand Seventeen Reserve [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Shares reserved for issuance | | | | | | | | | 4,006,767 | | | | |
2011 Option Plan [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Share option, percentage of options granted to stockholder | | | | | | | 10.00% | | | | | | |
Number of shares outstanding | | | | | | | | | 3,936,786 | | | | |
Shares available for issuance | | | | | | | | | 0 | | | | |
2011 Option Plan [Member] | Minimum [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Share option, exercise price as a percentage of fair market value | | | | | | | 100.00% | | | | | | |
2011 Option Plan [Member] | Ten Percent Shareholders [Member] | Minimum [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Share option, exercise price as a percentage of fair market value | | | | | | | 110.00% | | | | | | |
2011 Option Plan [Member] | Incentive Stock Options [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Share based compensation, expiration period | | | | | | | 10 years | | | | | | |
Share option, vesting period description | | | | | | | | | ISOs granted under the 2011 Plan generally vest 25 percent after the completion of 12 months of service and the balance in equal monthly installments over the next 36 months of service, and expire 10 years from the date of grant (subject to earlier expiration upon the occurrence of certain events). ISOs granted to a 10 percent stockholder expire five years from the date of grant (subject to earlier expiration upon the occurrence of certain events) | | | | |
2011 Option Plan [Member] | Incentive Stock Options [Member] | Vesting During Initial Period [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Share option, percentage of vesting | | | | | | | 25.00% | | | | | | |
Shares, vesting period | | | | | | | 12 months | | | | | | |
2011 Option Plan [Member] | Incentive Stock Options [Member] | Vesting After Initial Period [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Shares, vesting period | | | | | | | 36 months | | | | | | |
2011 Option Plan [Member] | Incentive Stock Options [Member] | Ten Percent Shareholders [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Share based compensation, expiration period | | | | | | | 5 years | | | | | | |
2011 Option Plan [Member] | Non Statutory Stock Option [Member] | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | |
Share based compensation, expiration period | | | | | | | 10 years | | | | | | |