v3.25.0.1
CONSOLIDATED STATEMENTS OF STOCKHOLDERS' EQUITY (DEFICIT) - USD ($)
$ in Thousands
Total
Adoption of ASU 2020-06
Common Stock (Class A and B)
Additional Paid-in-Capital
Additional Paid-in-Capital
Adoption of ASU 2020-06
Accumulated Other Comprehensive (Loss) Income
Accumulated Deficit
Accumulated Deficit
Adoption of ASU 2020-06
Beginning of the period (in shares) at Dec. 31, 2021     51,444,000          
Beginning of the period at Dec. 31, 2021 $ 72,979 $ (40,299) $ 51 $ 525,646 $ (58,560) $ (288) $ (452,430) $ 18,261
End of the period at Jan. 01, 2022         (58,600)     18,300
Increase (Decrease) in Stockholders' Equity [Roll Forward]                
Accounting Standards Update [Extensible List] Accounting Standards Update 2020-06 [Member]              
Beginning of the period (in shares) at Dec. 31, 2021     51,444,000          
Beginning of the period at Dec. 31, 2021 $ 72,979 $ (40,299) $ 51 525,646 $ (58,560) (288) (452,430) $ 18,261
Increase (Decrease) in Stockholders' Equity [Roll Forward]                
Stock-based compensation expense 70,660     70,660        
Issuance of common stock upon exercise of stock options (in shares)     239,000          
Issuance of common stock upon exercise of stock options 3,273   $ 1 3,272        
Issuance of common stock under employee stock purchase plan (in shares)     131,000          
Issuance of common stock under employee stock purchase plan 9,256   $ 1 9,255        
Issuance of restricted stock units (in shares)     958,000          
Tax withholdings related to net share settlements of stock-based compensation awards (in shares)     (120,000)          
Tax withholdings related to net share settlements of stock-based compensation awards (12,541)     (12,541)        
Net loss (90,947)           (90,947)  
Other comprehensive (loss) income (6,398)         (6,398)    
End of the period (in shares) at Dec. 31, 2022     52,652,000          
End of the period at Dec. 31, 2022 5,983   $ 53 537,732   (6,686) (525,116)  
Increase (Decrease) in Stockholders' Equity [Roll Forward]                
Induced conversion of convertible senior notes (81,080)     (81,080)        
Stock-based compensation expense 98,765     98,765        
Issuance of common stock upon exercise of stock options (in shares)     297,000          
Issuance of common stock upon exercise of stock options 4,472   $ 1 4,471        
Issuance of common stock under employee stock purchase plan (in shares)     200,000          
Issuance of common stock under employee stock purchase plan 12,513     12,513        
Issuance of restricted stock units (in shares)     1,129,000          
Tax withholdings related to net share settlements of stock-based compensation awards (in shares)     (99,000)          
Tax withholdings related to net share settlements of stock-based compensation awards (9,459)     (9,459)        
Net loss (127,525)           (127,525)  
Other comprehensive (loss) income 6,941         6,941    
End of the period (in shares) at Dec. 31, 2023     54,179,000          
End of the period at Dec. 31, 2023 (89,390)   $ 54 562,942   255 (652,641)  
Increase (Decrease) in Stockholders' Equity [Roll Forward]                
Stock-based compensation expense $ 102,150     102,150        
Issuance of common stock upon exercise of stock options (in shares) 317,243   317,000          
Issuance of common stock upon exercise of stock options $ 4,909   $ 2 4,907        
Issuance of common stock under employee stock purchase plan (in shares)     194,000          
Issuance of common stock under employee stock purchase plan 13,822     13,822        
Issuance of restricted stock units (in shares)     928,000          
Tax withholdings related to net share settlements of stock-based compensation awards (in shares)     (126,000)          
Tax withholdings related to net share settlements of stock-based compensation awards (11,458)     (11,458)        
Net loss (55,042)           (55,042)  
Other comprehensive (loss) income (6,675)         (6,675)    
End of the period (in shares) at Dec. 31, 2024     55,492,000          
End of the period at Dec. 31, 2024 $ (41,684)   $ 56 $ 672,363   $ (6,420) $ (707,683)