Summary of Significant Accounting Policies | Summary of Significant Accounting Policies Basis of Presentation The consolidated financial statements have been prepared in conformity with accounting principles generally accepted in the United States of America (“GAAP”), and include the accounts of the Company and its subsidiaries. All intercompany balances and transactions have been eliminated. Certain amounts in the consolidated financial statements of prior years have been reclassified to conform to the current year presentation. Fiscal Year The Company operates on a fiscal calendar year, and each interim quarter is comprised of one 5-week period and two 4-week periods, with each week ending on a Saturday. The Company’s fiscal year always begins on January 1 and ends on December 31. As a result, the Company’s first and fourth fiscal quarters may have more or fewer days included than a traditional 91-day fiscal quarter. Segment Information The Company has one operating segment and one reportable segment, as the Company’s chief operating decision maker, who is the Company’s Chief Executive Officer, reviews financial information on an aggregate basis for purposes of allocating resources and evaluating financial performance. Management’s Use of Estimates The preparation of financial statements in conformity with GAAP requires management to make estimates and assumptions that affect certain reported amounts of assets and liabilities and disclosure of contingent assets and liabilities at the date of the financial statements and the reported amounts of revenues and expenses during the reporting period. Significant accounting estimates made by the Company include trade promotion accruals; useful lives of property, plant and equipment; valuation of deferred tax assets; valuation of inventory; incremental borrowing rate used to determine operating lease right-of-use assets and operating lease liabilities; assessment of contract-based factors, asset-based factors, entity-based factors and market-based factors to determine the lease term impacting right-of-use assets and lease liabilities; the valuation of the fair value of stock options used to determine share-based compensation expense; the valuation of the fair value of common stock and preferred stock used in the remeasurement of warrants and liabilities; and loss contingency accruals in connection with claims, lawsuits and administrative proceedings. These estimates and assumptions are based on current facts, historical experience and various other factors believed to be reasonable under the circumstances, the results of which form the basis for making judgments about the carrying values of assets and liabilities and the recording of expenses that are not readily apparent from other sources. Actual results could differ from those estimates and such differences may be material to the financial statements. Comprehensive Loss Comprehensive loss includes unrealized gains (losses) on the Company’s foreign currency translation adjustments for the years ended December 31, 2022, 2021 and 2020. Income taxes on the unrealized losses are not material. Convertible Senior Notes On March 5, 2021, the Company issued $1.0 billion aggregate principal amount of its 0% Convertible Senior Notes due 2027 (the “Convertible Notes”) in a private placement to qualified institutional buyers pursuant to Rule 144A under the Securities Act. On March 12, 2021, the initial purchasers of the Convertible Notes exercised their option to purchase an additional $150.0 million aggregate principal amount of the Company’s 0% Convertible Senior Notes due 2027 (the “Additional Notes”, and together with the Convertible Notes, the “Notes”), and such Additional Notes were issued on March 16, 2021. See Note 7 . The Company accounts for the Notes under Accounting Standards Update (“ASU”) No. 2020-06, “Debt with Conversion and Other Options (Subtopic 470-20) and Derivatives and Hedging—Contracts in Entity’s Own Equity” (ASU 2020-06”), which the Company early adopted in the first quarter of 2021 concurrent with the issuance of the Notes. The Company records the Notes in “Long-term liabilities” at face value net of issuance costs. If any of the conditions to the convertibility of the Notes is satisfied, or the Notes become due within one year, then the Company may be required under applicable accounting standards to reclassify the liability carrying value of the Notes as a current, rather than a long-term, liability. Capped Call Transactions Capped call transactions cover the aggregate number of shares of the Company’s common stock that will initially underlie the Notes, and generally reduce potential dilution to the Company’s common stock upon any conversion of Notes and/or offset any cash payments the Company may make in excess of the principal amount of the converted Notes, as the case may be, with such reduction and/or offset subject to a cap, based on the cap price of the capped call transactions. The Company determined that the freestanding capped call option contracts qualify as equity under the accounting guidance on indexation and equity classification, and recognized the contract by recording an entry to “Additional paid-in capital” (“APIC”) in stockholders’ equity in its consolidated balance sheet. The Company also determined that the capped call option contracts meet the definition of a derivative under Accounting Standards Codification (“ASC”) Topic 815, “Derivatives and Hedging” (“ASC 815”), but are not required to be accounted for as a derivative as they meet the scope exception outlined in ASC 815. Instead the capped call options are recorded in APIC and not remeasured. Issuance Costs Issuance costs related to the Notes offering were capitalized and offset against proceeds from the Notes. Issuance costs consist of legal and other costs related to the issuance of the Notes and are amortized to interest expense over the term of the Notes. Total issuance costs capitalized in the year ended December 31, 2021 were approximately $23.6 million, of which none remained unpaid as of December 31, 2021. There were $16.4 million and $20.3 million in unamortized issuance costs related to the Notes as of December 31, 2022 and 2021, respectively. Foreign Currency The Company’s foreign entities use their local currency as the functional currency. For these entities, the Company translates net assets into U.S. dollars at period end exchange rates, while revenue and expense accounts are translated at average exchange rates prevailing during the periods being reported. Resulting currency translation adjustments are included in “Accumulated other comprehensive income” and foreign currency transaction gains and losses are included in “Other, net.” Transaction gains and losses on long-term intra-entity transactions are recorded as a component of “Other comprehensive loss.” Transactions denominated in a currency other than the reporting entity’s functional currency may give rise to transaction gains and losses that impact the Company’s results of operations. Foreign currency translation loss, net of tax, reported as cumulative translation adjustments through “Other comprehensive loss” was $4.2 million and $2.3 million, respectively, in the years ended December 31, 2022 and 2021. Realized and unrealized foreign currency transaction (losses) gains included in “Other, net” were $(4.9) million, $(0.2) million and $0.2 million, respectively, in the years ended December 31, 2022, 2021 and 2020. Fair Value of Financial Instruments The fair value measurement accounting guidance creates a fair value hierarchy to prioritize the inputs used to measure fair value into three categories. A financial instrument’s level within the fair value hierarchy is based on the lowest level of input significant to the fair value measurement, where Level 1 is the highest and Level 3 is the lowest. The three levels are defined as follows: • Level 1 —Unadjusted quoted prices in active markets accessible by the reporting entity for identical assets or liabilities. Active markets are those in which transactions for the asset or liability occur with sufficient frequency and volume to provide pricing information on an ongoing basis. • Level 2 —Quoted prices for similar instruments in active markets; quoted prices for identical or similar instruments in markets that are not active and model-derived valuations in which significant value drivers are observable. • Level 3 —Valuations derived from valuation techniques in which significant value drivers are unobservable. The Company’s financial instruments include cash equivalents, accounts receivable, accounts payable, and accrued expenses, for which the carrying amounts approximate fair value due to the short-term maturity of these financial instruments. The Company’s convertible notes are carried at face value less the unamortized debt issuance costs (see Note 7 ). The Company had no financial instruments measured at fair value on a recurring basis as of December 31, 2020, other than the liability classified share-settled obligation to one of the Company’s executive officers (see Note 9 ) which represented a Level 1 financial instrument. The executive officer separated from the Company effective August 27, 2021. As a result, the fourth quarterly tranche of the liability classified share-settled obligation was not earned and canceled. As of December 31, 2022 and 2021 no liability remained for this liability classified share-settled obligation. There were no transfers of financial assets or liabilities into or out of Level 1, Level 2 or Level 3 in the years ended December 31, 2022, 2021 or 2020. Cash and Cash Equivalents The Company maintains cash balances at three financial institutions in the United States. The cash balances may, at times, exceed federally insured limits. Accounts are guaranteed by the Federal Deposit Insurance Corporation or FDIC up to $250,000. The Company considers all highly liquid investments with original maturity dates of 90 days or less to be cash equivalents. Cash equivalents include approximately 86% in money market accounts with approximately 10% in demand deposits and 4% in restricted cash. Restricted Cash Restricted cash includes cash held as collateral for a stand-alone letter of credit agreement related to normal business transactions. This agreement requires the Company to maintain a specified amount of cash as collateral in a segregated account to support the letter of credit issued thereunder. Accounts Receivable The Company records accounts receivable at net realizable value. This value includes an appropriate allowance for estimated uncollectible accounts to reflect any anticipated losses on the accounts receivable balances and recorded in allowance for doubtful accounts. Allowance for doubtful accounts is calculated based on the Company’s history of write-offs, level of past due accounts, and relationships with and economic status of the Company’s distributors or customers. The Company had $1.4 million and $1.3 million allowance for doubtful accounts as of December 31, 2022 and 2021, respectively. Inventories and Cost of Goods Sold Inventories are recorded at lower of cost or net realizable value. The Company accounts for inventory using the weighted average cost method. In addition to product cost, inventory costs include expenditures such as direct labor and certain supply and overhead expenses including in-bound shipping and handling costs incurred in bringing the inventory to its existing condition and location. Inventories are comprised primarily of raw materials, direct labor and overhead costs. Weighted average cost method is used to absorb raw materials, direct labor, and overhead into inventory. The Company reviews inventory quantities on hand and records a provision for excess and obsolete inventory based primarily on historical and forecasted demand, estimated shelf life of various raw materials and packaging, work in process and finished goods inventory, as well as the age of the inventory, among other factors. Property, Plant and Equipment Property, plant and equipment are carried at cost less accumulated depreciation and are depreciated using the straight-line method over the following estimated useful lives: Land Not amortized Buildings 30 years Leasehold improvements Shorter of lease term or estimated useful life Furniture and fixtures 3 years Manufacturing equipment 5 to 10 years Research and development equipment 5 to 10 years Software and computer equipment 3 years Vehicles 5 years Leasehold improvements are depreciated on a straight-line basis over the lesser of the estimated useful life of the asset or the remaining lease term. When assets are sold or retired, the asset and related accumulated depreciation are removed from the respective account balances and any gain or loss on disposal is included in “Loss from operations.” Expenditures for repairs and maintenance are charged directly to expense when incurred. See Note 6 . Accounting for Acquisition The Company follows the guidance in ASC 805, “Business Combinations,” for determining whether an acquisition meets the definition of a business combination or asset acquisition. The acquired assets may include, but are not limited to land, building, building improvements, manufacturing equipment and assembled work force. For acquisitions that are accounted for as acquisitions of assets, the Company records the acquired tangible and intangible assets and assumed liabilities, if any, based on each asset’s and liability's relative fair value at the acquisition date to the total purchase price plus capitalized acquisition costs. The method for determining relative fair value varies depending on the type of asset. The Company has completed one acquisition to date. Impairment of Long-Lived Assets Long-lived assets, including property and equipment, are reviewed by management for impairment whenever events or changes in circumstances indicate that the carrying amount of the asset may not be fully recoverable. When events or circumstances indicate that impairment may be present, management evaluates the probability that future undiscounted net cash flows received will be less than the carrying amount of the asset. If projected future undiscounted cash flows are less than the carrying value of an asset, then such assets are written down to their fair values. The Company concluded that no long-lived assets were impaired during the fiscal years ended December 31, 2022, 2021 and 2020. Income Taxes The Company is subject to federal and state income taxes. The Company uses the asset and liability method of accounting for income taxes as set forth in the authoritative guidance for accounting for income taxes. Under this method, the Company recognizes deferred tax assets and liabilities for the expected future tax consequences of temporary differences between the respective carrying amounts and tax basis of assets and liabilities. A valuation allowance is established against the portion of deferred tax assets that the Company believes will not be realized on a more likely than not basis. With respect to uncertain tax positions, the Company recognizes in its financial statements those tax positions determined to be more likely than not of being sustained upon examination, based on the technical merits of the positions. The Company’s policy is to recognize, when applicable, interest and penalties on uncertain tax positions as part of income tax expense. See Note 11 . Leases The Company leases certain equipment used for research and development and operations under both finance and operating lease agreements. An asset and a corresponding liability for the finance lease obligations are established for the cost of a finance lease. Finance lease assets are included in “Property, plant and equipment, net” in the Company’s consolidated balance sheets. Operating leases include lease arrangements for the Company’s corporate offices, the new Campus Lease (see Note 4 ), the former Manhattan Beach Project Innovation Center, manufacturing facilities, warehouses, vehicles and, to a lesser extent, equipment. Operating leases with a term greater than one year are recorded on the consolidated balance sheets as operating lease right-of-use assets and operating lease liabilities at the commencement date. Operating lease assets represent the right to use an underlying asset for the lease term, and operating lease liabilities represent the obligation to make lease payments arising from the lease. The Company records these balances initially at the present value of future minimum lease payments calculated using the Company’s incremental borrowing rate and expected lease term. The Company estimates the incremental borrowing rate for each operating lease based on prevailing market rates for collateralized debt in a similar economic environment with similar payment terms and maturity dates commensurate with the terms of the lease. Certain adjustments to the operating lease right-of-use assets may be required for items such as initial direct costs paid or incentives received. Certain leases contain variable payments, which are expensed as incurred and not included in the Company’s operating lease right-of-use assets and operating lease liabilities. These amounts primarily include payments for maintenance, utilities, taxes and insurance on the Company’s corporate, research and development, and manufacturing facilities and warehouse leases and are excluded from the present value of the Company’s lease obligations. Some leases also include early termination options, which can be exercised under specific conditions. The Company includes options to extend the lease term if the options are reasonably certain of being exercised. The Company does not have residual value guarantees or material restrictive covenants associated with its leases. Upon adoption of ASU 2016-02, the Company elected to combine lease and non-lease components on all new or modified leases into a single lease component, for all classes of assets other than the co-manufacturing class of assets, which the Company recognizes over the expected term on a straight-line expense basis. The Company elected to separate the lease and non-lease components on all new or modified operating leases for the co-manufacturing class of assets for the purpose of recording operating lease right-of-use assets and operating lease liabilities. Prior to fiscal 2020, the Company accounted for leases under ASC 840 and did not record operating leases on its consolidated balance sheets. See Note 4 . When the Company purchases property that it was previously leasing under an operating lease, the Company de-recognizes the right-of-use asset and lease liability and recognizes the difference between the purchase price and the carrying amount of the lease liability immediately before the purchase as an adjustment to the carrying value of the asset. The Company allocates the purchase price to the assets acquired based upon their relative values. Contingencies The Company is subject to a range of claims, lawsuits, and administrative proceedings that arise in the ordinary course of business. The Company accrues a liability (which amount includes litigation costs expected to be incurred) and charges operations for such matters when it is probable that a liability has been incurred and the amount can be reasonably estimated, in accordance with the recognition criteria of the Financial Accounting Standards Board (“FASB”) ASC 450, Contingencies . Estimating liabilities and costs associated with these matters require significant judgment based upon the professional knowledge and experience of management and its legal counsel. See Note 10 . Revenue Recognition In May 2014, the FASB issued ASU No. 2014-09, “Revenue from Contracts with Customers” (“ASU 2014-09”), which, along with subsequent ASUs, amended the existing accounting standards for revenue recognition (“Topic 606”). This guidance is based on principles that govern the recognition of revenue at an amount an entity expects to be entitled to receive when products are transferred to customers. ASU 2014-09 was effective for the Company beginning January 1, 2019. The majority of the Company’s contracts with customers generally consist of a single performance obligation to transfer promised goods. Based on the Company’s evaluation and review of its contracts with customers, the timing and amount of revenue recognized based on ASU 2014-09 is consistent with the Company’s revenue recognition policy under previous guidance. The Company has therefore concluded that the adoption of ASU 2014-09 did not have a material impact on its financial position, results of operations, or cash flows. The Company’s revenues are generated through sales of its products to distributors or customers. Revenue is recognized at the point in which the performance obligation under the terms of a contract with the customer have been satisfied and control has transferred. The Company’s performance obligation is typically defined as the accepted purchase order or the contract with the customer which requires the Company to deliver the requested products at agreed upon prices at the time and location of the customer’s choice. The Company generally does not offer warranties or a right to return on the products it sells except in the instance of a product recall or other limited circumstances. Revenue is measured as the amount of consideration the Company expects to receive in exchange for fulfilling the performance obligation. Sales and other taxes the Company collects concurrent with the sale of products are excluded from revenue. The Company's normal payment terms vary by the type and location of its customers and the products offered. The time between invoicing and when payment is due is not significant. None of the Company's customer contracts as of December 31, 2022 contains a significant financing component. The Company routinely offers sales discounts and promotions through various programs to its customers and consumers. These programs include rebates, temporary on-shelf price reductions, off-invoice discounts, retailer advertisements, product coupons and other trade activities. Provision for discounts and incentives are recorded in the same period in which the related revenues are recognized. At the end of each accounting period, the Company recognizes a contra asset to accounts receivable for estimated sales discounts that have been incurred but not paid which totaled $4.6 million and $3.6 million as of December 31, 2022 and 2021, respectively. The offsetting charge is recorded as a reduction of revenues in the same period when the expense is incurred. The Company recognizes the incremental costs of obtaining contracts as an expense when incurred if the amortization period of the assets that the Company otherwise would have recognized is one year or less. The incremental cost to obtain contracts was not material. Presentation of Net Revenues by Channel The following table presents the Company’s net revenues by channel: Year Ended December 31, 2022 2021 2020 (in thousands) U.S.: Retail $ 234,744 $ 243,360 $ 264,111 Foodservice 69,289 76,475 60,763 U.S. net revenues 304,033 319,835 324,874 International: Retail 60,907 81,483 36,472 Foodservice 53,993 63,382 45,439 International net revenues 114,900 144,865 81,911 Net revenues $ 418,933 $ 464,700 $ 406,785 One distributor accounted for approximately 12% of the Company’s gross revenues in 2022; two distributors accounted for approximately 12% and 11% of the Company’s gross revenues in 2021; and one customer accounted for approximately 13% of the Company’s gross revenues in 2020. No other distributor or customer accounted for more than 10% of the Company’s gross revenues in 2022, 2021 or 2020. Earnings (Loss) Per Share Earnings (loss) per share (“EPS”) represents net income available to common stockholders divided by the weighted average number of common shares outstanding for the period. Diluted EPS represents net income available to common stockholders divided by the weighted-average number of common shares outstanding, inclusive of the dilutive impact of potential common shares outstanding during the period. Such potential common shares include options, unvested restricted stock, restricted stock units (“RSUs”), contracts classified as assets or liabilities that are required or assumed to be share-settled under the two-class method, warrants and convertible preferred stock. The Company calculates basic and diluted EPS available to common stockholders in conformity with the two-class method required for companies with participating securities. Pursuant to ASU 2020-06, the Company applies the more dilutive of the if-converted method and the two-class method to its Notes. The Company considers all series of convertible preferred stock issued and outstanding prior to the IPO to be participating securities. Under the two-class method, the net loss available to common stockholders was not allocated to the convertible preferred stock as the holders of convertible preferred stock issued and outstanding prior to the IPO did not have a contractual obligation to share in losses. Computation of EPS for the years ended December 31, 2021 and 2020 also excludes adjustments under the two-class method relating to a liability classified, share-settled obligation to an executive officer to deliver a variable number of shares based on a fixed monetary amount because the shares to be delivered are not participating securities as they do not have voting rights and are not entitled to participate in dividends until they are issued. Nonvested restricted stock awards (referred to as participating securities) are excluded from the dilutive impact of common equivalent shares outstanding in accordance with authoritative guidance under the two-class method. The nonvested restricted stockholders are entitled to participate in dividends declared on common stock as if the shares were fully vested and hence nonvested restricted stock shares are deemed to be participating securities. Under the two-class method, net income, but not net loss, available to nonvested restricted stockholders is excluded from net income available to common stockholders for purposes of calculating basic and diluted EPS. Net loss available to common stockholders is not allocated to unvested restricted stock as the holders of unvested restricted stock do not have a contractual obligation to share in losses. In periods when the Company records net loss, all potential common shares are excluded in the computation of EPS because their inclusion would be anti-dilutive. See Note 12 . Prepaid Expenses Prepaid expenses primarily include prepaid insurance and other prepaid vendor costs, which are expensed in the period to which they relate. Investment in Joint Venture The Company uses the equity method of accounting to record transactions associated with its joint venture when the Company shares in joint control of the investee. Investment in joint venture is not consolidated but is recorded in “Investment in unconsolidated joint venture” in the Company’s consolidated balance sheet. The Company recognizes its portion of the investee’s results in “Equity in losses of unconsolidated joint venture” in its consolidated statement of operations. Selling, General and Administrative (“SG&A”) Expenses SG&A expenses are primarily comprised of selling, marketing expenses and administrative expenses, including personnel and related expenses, share-based compensation, outbound shipping and handling costs, non-manufacturing lease expense, depreciation and amortization expense on non-manufacturing and non-research and development assets, consulting fees and other non-production operating expenses. Marketing and selling expenses include advertising costs, share-based compensation awards to brand ambassadors, costs associated with consumer promotions, product donations, product samples and sales aids incurred to acquire new customers, retain existing customers and build brand awareness. Administrative expenses include expenses related to management, accounting, legal, IT and other office functions. Advertising costs are expensed as incurred. Advertising costs in the years ended December 31, 2022, 2021 and 2020 were $20.6 million, $12.1 million and $0.3 million, respectively. Non-advertising related components of the Company’s total marketing expenditures primarily include costs associated with consumer promotions, product sampling and sales aids, which are also included in SG&A. Shipping and Handling Costs The Company does not bill its distributors or customers shipping and handling fees. The Company’s products are predominantly shipped to its distributors or customers as “FOB Destination,” with control of the products transferred to the customer at the destination. In-bound shipping and handling costs incurred in manufacturing a product are included in inventory and reflected in cost of goods sold when the sale of that product is recognized. Outbound shipping and handling costs are considered as fulfillment costs and are recorded in SG&A expenses. Outbound shipping and handling costs included in SG&A expenses in 2022, 2021 and 2020 were $17.6 million, $19.1 million and $11.9 million, respectively. Research and Development Expenses Research and development costs, which includes enhancements to existing products and new product development, are expensed in the period incurred. Research and development expenses primarily consist of personnel and related expenses for the Company’s research and development staff, including salaries, benefits, bonuses, share-based compensation, scale-up expenses and depreciation and amortization expense on research and development assets, and facility lease costs. Research and development expenses in the years ended December 31, 2022, 2021 and 2020, were $62.3 million, $66.9 million and $31.5 million, respectively. Share-Based Compensation The Company measures all share-based compensation cost at the grant date, based on the fair values of the awards that are ultimately expected to vest, and recognizes that cost as an expense in its consolidated statements of operations over the requisite service period. The Company estimates the fair value of option awards using the Black-Scholes option valuation model, which requires management to make certain assumptions for estimating the fair value of stock options at the date of grant including the fair value and projected volatility of the underlying common stock and the expected term of the award. The Black-Scholes option valuation model was developed for use in estimating the fair value of traded options that have no vesting restrictions and are fully transferable. Because the Company’s stock options have characteristics significantly different from those of traded options, and because changes in the subjective input assumptions can materially affect the fair value estimates, in management’s opinion, the existing models may not necessarily provide a reliable single measure of the fair value of the Company’s stock options. Although the fair value of stock options is determined using an option valuation model, that value may not be indicative of the fair value observed in a willing buyer/willing seller market transaction. In addition, the Company estimates the expected impact of forfeited awards and recognizes share-based compensation cost only for those awards ultimately expected to vest. If actual forfeiture rates differ materially from the Company’s estimates, share-based compensation expense could differ significantly from the amounts the Company has recorded in the current period. The Company periodically reviews actual forfeiture experience and will revise its estimates, as necessary. The Company will recognize as compensation cost the cumulative effect of the change in estimated forfeiture rates on current and prior periods in earnings of the period of revision. As a result, if the Company revises its assumptions and estimates, the Company’s share-based compensation expense could change materially in the future. See Note 9 . Employee Benefit Plan On January 1, 2017 the Company initiated a 401(k) retirement saving plan (“401-K Plan”) for the benefit of eligible employees. Under terms of this plan, eligible employees are able to make contributions of their wages on a tax-deferred basis. The Company has incurred $2.9 million, $1.5 million and $0.7 million in matching contribution to the 401-K Plan in 2022, 2021 and 2020, respectively. Restructuring Plan The Company accounts for exit or disposal activities in accordance with |