v3.24.1.u1
Stockholders’ Deficit and Stock-Based Compensation - Common Stock Equivalents Excluded from the Calculation of Earnings per Share (Details) - shares
3 Months Ended
Mar. 31, 2024
Mar. 31, 2023
Convertible senior notes    
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Common stock equivalents excluded from computation of diluted net income (loss) per share (in shares) 8,878,938 8,878,938
Unvested RSUs and PSUs    
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Common stock equivalents excluded from computation of diluted net income (loss) per share (in shares) 5,496,036 3,598,879
Outstanding stock options    
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Common stock equivalents excluded from computation of diluted net income (loss) per share (in shares) 3,669,894 4,541,131
Outstanding stock options | 2014 ESPP    
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Common stock equivalents excluded from computation of diluted net income (loss) per share (in shares) 220,451 165,079
Unvested RSAs and PSAs    
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Common stock equivalents excluded from computation of diluted net income (loss) per share (in shares) 642,419 1,728,551