Redeemable Convertible Preferred Stock and Stockholders' Equity - Narrative (Details) | | | | 3 Months Ended | 6 Months Ended | 38 Months Ended | | | | |
Apr. 25, 2024 shares | Apr. 22, 2024 USD ($) $ / shares shares | Feb. 09, 2021 USD ($) $ / shares shares | Jun. 30, 2024 USD ($) $ / shares shares | Mar. 31, 2024 USD ($) shares | Jun. 30, 2023 USD ($) shares | Jun. 30, 2024 USD ($) $ / shares shares | Jun. 30, 2023 USD ($) shares | Mar. 31, 2024 USD ($) shares | Dec. 31, 2023 USD ($) $ / shares shares | Mar. 31, 2023 shares | Dec. 31, 2022 shares | May 17, 2021 USD ($) $ / shares shares |
Class of Stock [Line Items] | | | | | | | | | | | | | |
Underwriting discounts and commissions | | $ 13,200,000 | | | | | | | | | | | |
Offering costs | | | | | | | $ 5,637,000 | $ 0 | | | | | |
Redeemable convertible preferred stock, shares authorized (in shares) | shares | | 17,245,954 | | 0 | | | 0 | | | 17,245,954 | | | |
Long-term debt, gross | | $ 75,100,000 | | $ 0 | | | $ 0 | | | $ 75,099,000 | | | |
Common stock, shares authorized (in shares) | shares | | | | 0 | | | 0 | | | 40,000,000 | | | |
Common stock, par value (in usd per share) | $ / shares | | | | $ 0.00001 | | | $ 0.00001 | | | $ 0.00001 | | | |
Preferred stock, shares authorized (in shares) | shares | | | | 100,000,000 | | | 100,000,000 | | | 0 | | | |
Redeemable convertible preferred stock, par value (in usd per share) | | | | $ 0.00001 | | | $ 0.00001 | | | $ 0.00001 | | | |
Redeemable convertible preferred stock, shares issued (in shares) | shares | | | | 0 | | | 0 | | | 17,245,954 | | | |
Redeemable convertible preferred stock, shares outstanding (in shares) | shares | | | | 0 | 17,245,954 | 17,245,954 | 0 | 17,245,954 | 17,245,954 | 17,245,954 | 17,245,954 | 17,245,954 | |
Preferred stock, shares issued (in shares) | shares | | | | 0 | | | 0 | | | 0 | | | |
Preferred stock, shares outstanding (in shares) | shares | | | | 0 | | | 0 | | | 0 | | | |
Additional paid in capital, restricted share purchase | | | | | | | | | $ 2,900,000 | | | | |
Other current liabilities | | | | $ 3,596,000 | | | $ 3,596,000 | | | $ 4,317,000 | | | |
Other long-term liabilities | | | | 6,182,000 | | | 6,182,000 | | | 3,864,000 | | | |
Warrants, exercise price (in dollars per share) | $ / shares | | | | | | | | | | | | | $ 70.12 |
Warrants, increase in number of shares exercisable, percent | | 12.40% | | | | | | | | | | | |
Warrants outstanding | | | | | | | | | | | | | $ 35,300,000 |
Stock-based compensation expense | | $ 14,000,000 | | 44,817,000 | | $ 1,755,000 | 49,662,000 | $ 3,584,000 | | | | | |
Stock-based compensation expense yet to be recognized | | | | 57,800,000 | | | 57,800,000 | | | | | | |
IPO | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | |
Shares issued in transaction (in shares) | shares | | 2,500,000 | | | | | | | | | | | |
Sale of stock, proceeds received, net | | $ 198,000,000 | | | | | | | | | | | |
Offering costs | | $ 8,800,000 | | | | | | | | | | | |
Common stock, par value (in usd per share) | $ / shares | | $ 0.00001 | | | | | | | | | | | |
Preferred stock, shares authorized (in shares) | shares | | 100,000,000 | | | | | | | | | | | |
Redeemable convertible preferred stock, par value (in usd per share) | | $ 0.00001 | | | | | | | | | | | |
Secondary Offering | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | |
Shares issued in transaction (in shares) | shares | | 4,060,700 | | | | | | | | | | | |
Sale of stock, proceeds received, net | | $ 0 | | | | | | | | | | | |
Over-Allotment Option | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | |
Shares issued in transaction (in shares) | shares | 984,105 | | | | | | | | | | | | |
Convertible notes | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | |
Long-term debt, gross | | | | 0 | | | 0 | | | 75,099,000 | | | |
Convertible notes | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | |
Long-term debt, gross | | $ 75,100,000 | | | | | | | | | | | |
Common stock warrant | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | |
Warrants (in shares) | shares | | 4,121,034 | | | | | | | | | | | 3,528,577 |
Antidilutive increase in warrants outstanding (in shares) | shares | | 592,457 | | | | | | | | | | | |
Warrants outstanding | | $ 37,200,000 | | | | | | | | | | | |
Warrants, Performance Conditions | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | |
Warrants (in shares) | shares | | | | | | | | | | | | | 1,648,413 |
Sales and marketing | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | |
Stock-based compensation expense | | | | 26,808,000 | | 558,000 | 30,430,000 | 1,122,000 | | | | | |
Restricted stock purchase | Officer | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | |
Granted (in shares) | shares | | | 408,824 | | | | | | | | | | |
Granted, weighted average grant date fair value, as of beginning of period (in usd per share) | $ / shares | | | $ 8.30 | | | | | | | | | | |
Restricted stock purchase, authorized amount | | | $ 3,400,000 | | | | | | | | | | |
Vesting period | | | 1 year | | | | | | | | | | |
Restricted Stock Purchase | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | |
Additional paid in capital, restricted share purchase | | | | | $ 2,400,000 | | | | | | | | |
Other current liabilities | | | | 500,000 | | | 500,000 | | | $ 800,000 | | | |
Other long-term liabilities | | | | 200,000 | | | 200,000 | | | | | | |
Warrants, Performance Conditions | Share-Based Payment Arrangement, Nonemployee | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | |
Stock-based compensation expense | | | | | | 0 | | | | | | | |
Stock-based compensation expense yet to be recognized | | | | $ 34,500,000 | | | 34,500,000 | | | | | | |
Stock-based compensation yet to be recognized, weighted average period | | | | 4 years 3 months | | | | | | | | | |
Warrants, Performance Conditions | Sales and marketing | Share-Based Payment Arrangement, Nonemployee | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | |
Stock-based compensation expense | | | | $ 21,900,000 | | | $ 24,900,000 | | | | | | |
Common stock warrant | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | |
Stock-based compensation expense | | $ 17,500,000 | | | | | | | | | | | |
Common stock warrant | Sales and marketing | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | |
Stock-based compensation expense | | | | | | $ 0 | | $ 0 | | | | | |
Restricted Stock Purchase, Tranche One | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | |
Restricted stock purchase, shares released | | | 25% | | | | | | | | | | |
Restricted Stock Purchase, Tranche Two | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | |
Restricted stock purchase, shares released | | | 2.08% | | | | | | | | | | |
Restricted Stock Purchase, Tranche Two | Restricted stock purchase | Officer | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | |
Vesting period | | | 36 months | | | | | | | | | | |
Common Class A | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | |
Common stock, shares authorized (in shares) | shares | | | | 3,000,000,000 | | | 3,000,000,000 | | | 0 | | | |
Common stock, par value (in usd per share) | $ / shares | | | | $ 0.00001 | | | $ 0.00001 | | | $ 0.00001 | | | |
Common Class A | IPO | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | |
Common stock, shares authorized (in shares) | shares | | 3,000,000,000 | | | | | | | | | | | |
Common Class A | Common Stock Converted to Class A Common Stock | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | |
Common stock reclassified (in shares) | shares | | 9,511,741 | | | | | | | | | | | |
Common Class A | Conversion of Class A Common Stock To Class B Common Stock | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | |
Common stock, shares exchanged (in shares) | shares | | (3,668,427) | | | | | | | | | | | |
Common Class A | Conversion of Convertible Debt | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | |
Common stock reclassified (in shares) | shares | | 1,177,087 | | | | | | | | | | | |
Common Class B | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | |
Common stock, shares authorized (in shares) | shares | | | | 350,000,000 | | | 350,000,000 | | | 0 | | | |
Common stock, par value (in usd per share) | $ / shares | | | | $ 0.00001 | | | $ 0.00001 | | | $ 0.00001 | | | |
Common stock, votes per share (votes) | | 20 | | | | | | | | | | | |
Common Class B | IPO | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | |
Common stock, shares authorized (in shares) | shares | | 350,000,000 | | | | | | | | | | | |
Common Class B | Conversion of Class A Common Stock To Class B Common Stock | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | |
Common stock, shares exchanged (in shares) | shares | | 3,668,427 | | | | | | | | | | | |