CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY - USD ($) $ in Thousands | Total | Cumulative Effect, Period of Adoption, Adjustment | Common Stock (Class A and B) | Additional Paid-in-Capital | Additional Paid-in-Capital Cumulative Effect, Period of Adoption, Adjustment | Accumulated Other Comprehensive Loss | Accumulated Deficit | Accumulated Deficit Cumulative Effect, Period of Adoption, Adjustment |
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 | 15,309 | | | 15,309 | | | | |
Issuance of common stock upon exercise of stock options (in shares) | | | 62,000 | | | | | |
Issuance of common stock upon exercise of stock options | 825 | | $ 1 | 824 | | | | |
Issuance of common stock under employee stock purchase plan (in shares) | | | 53,000 | | | | | |
Issuance of common stock under employee stock purchase plan | 5,218 | | | 5,218 | | | | |
Issuance of restricted stock units (in shares) | | | 545,000 | | | | | |
Tax withholding related to net share settlements of stock-based compensation awards (in shares) | | | (73,000) | | | | | |
Tax withholding related to net share settlements of stock-based compensation awards | (8,570) | | | (8,570) | | | | |
Net loss | (18,493) | | | | | | (18,493) | |
Other comprehensive (loss) income | (1,776) | | | | | (1,776) | | |
End of period (in shares) at Mar. 31, 2022 | | | 52,031,000 | | | | | |
End of period at Mar. 31, 2022 | 25,193 | | $ 52 | 479,867 | | (2,064) | (452,662) | |
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] | | | | | | | | |
Net loss | (47,354) | | | | | | | |
Other comprehensive (loss) income | (8,502) | | | | | | | |
End of period (in shares) at Jun. 30, 2022 | | | 52,239,000 | | | | | |
End of period at Jun. 30, 2022 | 7,854 | | $ 52 | 498,115 | | (8,790) | (481,523) | |
Beginning of the period (in shares) at Mar. 31, 2022 | | | 52,031,000 | | | | | |
Beginning of the period at Mar. 31, 2022 | 25,193 | | $ 52 | 479,867 | | (2,064) | (452,662) | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Stock-based compensation expense | 18,447 | | | 18,447 | | | | |
Issuance of common stock upon exercise of stock options (in shares) | | | 76,000 | | | | | |
Issuance of common stock upon exercise of stock options | 1,145 | | | 1,145 | | | | |
Issuance of restricted stock units (in shares) | | | 144,000 | | | | | |
Tax withholding related to net share settlements of stock-based compensation awards (in shares) | | | (12,000) | | | | | |
Tax withholding related to net share settlements of stock-based compensation awards | (1,344) | | | (1,344) | | | | |
Net loss | (28,861) | | | | | | (28,861) | |
Other comprehensive (loss) income | (6,726) | | | | | (6,726) | | |
End of period (in shares) at Jun. 30, 2022 | | | 52,239,000 | | | | | |
End of period at Jun. 30, 2022 | 7,854 | | $ 52 | 498,115 | | (8,790) | (481,523) | |
Beginning of the period (in shares) at Dec. 31, 2022 | | | 52,652,000 | | | | | |
Beginning of the period at Dec. 31, 2022 | 5,983 | | $ 53 | 537,732 | | (6,686) | (525,116) | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Stock-based compensation expense | 38,042 | | | 38,042 | | | | |
Issuance of common stock upon exercise of stock options (in shares) | | | 102,000 | | | | | |
Issuance of common stock upon exercise of stock options | 1,457 | | | 1,457 | | | | |
Issuance of common stock under employee stock purchase plan (in shares) | | | 107,000 | | | | | |
Issuance of common stock under employee stock purchase plan | 5,546 | | | 5,546 | | | | |
Issuance of restricted stock units (in shares) | | | 449,000 | | | | | |
Tax withholding related to net share settlements of stock-based compensation awards (in shares) | | | (78,000) | | | | | |
Tax withholding related to net share settlements of stock-based compensation awards | (7,228) | | | (7,228) | | | | |
Net loss | (46,150) | | | | | | (46,150) | |
Other comprehensive (loss) income | 3,280 | | | | | 3,280 | | |
End of period (in shares) at Mar. 31, 2023 | | | 53,232,000 | | | | | |
End of period at Mar. 31, 2023 | 930 | | $ 53 | 575,549 | | (3,406) | (571,266) | |
Beginning of the period (in shares) at Dec. 31, 2022 | | | 52,652,000 | | | | | |
Beginning of the period at Dec. 31, 2022 | $ 5,983 | | $ 53 | 537,732 | | (6,686) | (525,116) | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Issuance of common stock upon exercise of stock options (in shares) | 150,046 | | | | | | | |
Net loss | $ (67,060) | | | | | | | |
Other comprehensive (loss) income | 3,272 | | | | | | | |
End of period (in shares) at Jun. 30, 2023 | | | 53,533,000 | | | | | |
End of period at Jun. 30, 2023 | 157 | | $ 54 | 595,693 | | (3,414) | (592,176) | |
Beginning of the period (in shares) at Mar. 31, 2023 | | | 53,232,000 | | | | | |
Beginning of the period at Mar. 31, 2023 | 930 | | $ 53 | 575,549 | | (3,406) | (571,266) | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Stock-based compensation expense | 20,610 | | | 20,610 | | | | |
Issuance of common stock upon exercise of stock options (in shares) | | | 47,000 | | | | | |
Issuance of common stock upon exercise of stock options | 747 | | $ 1 | 746 | | | | |
Issuance of restricted stock units (in shares) | | | 266,000 | | | | | |
Tax withholding related to net share settlements of stock-based compensation awards (in shares) | | | (12,000) | | | | | |
Tax withholding related to net share settlements of stock-based compensation awards | (1,212) | | | (1,212) | | | | |
Net loss | (20,910) | | | | | | (20,910) | |
Other comprehensive (loss) income | (8) | | | | | (8) | | |
End of period (in shares) at Jun. 30, 2023 | | | 53,533,000 | | | | | |
End of period at Jun. 30, 2023 | $ 157 | | $ 54 | $ 595,693 | | $ (3,414) | $ (592,176) | |