"""Quote-application wizard views. SOURCE NOTE. The public marketing capture could not enter the wizard, but a headed browser handoff on 2026-08-26 reached `ua.apps.insureon.com` and directly observed the step names, order, conditional workers' compensation step, and the opening Company Information controls. The remaining detailed field copy uses the local deterministic application model. Evidence-backed inputs include: * the business-class taxonomy and its ids (first-party endpoint, HTTP 200), * the product names, coverage descriptions and average premiums (captured `/small-business-insurance/*` and `/small-business-insurance/*/cost`), * the carrier names (captured home page), * the site chrome, typography and palette (captured stylesheet). Later step field sets and control shapes remain a bounded reconstruction; they do not claim a pixel-level visual contract. See `KNOWN_DIFFERENCES.md` and `scope/claims.jsonl`. """ from __future__ import annotations from typing import Any, Mapping, Sequence import render as R from content import professions as P STEPS: list[tuple[str, str]] = [ ("company", "Company Information"), ("protection", "Protection Options"), ("contact", "Contact Information"), ("business", "Business Details"), ("locations", "Locations"), ("sales", "Sales & Operations"), ("workers", "Workers’ Compensation"), ("practices", "Business Operations & Practices"), ] ENTITY_TYPES = [ ("sole-proprietorship", "Sole proprietorship"), ("llc", "LLC"), ("s-corporation", "S corporation"), ("c-corporation", "C corporation"), ("partnership", "Partnership"), ("nonprofit", "Nonprofit"), ] ENTITY_TYPE_LABELS = dict(ENTITY_TYPES) YEARS_OPTIONS = [ ("0", "Less than 1 year"), ("1", "1 year"), ("2", "2 years"), ("3", "3 years"), ("5", "5 years"), ("10", "10 or more years"), ] US_STATES = [ ("AL", "Alabama"), ("AK", "Alaska"), ("AZ", "Arizona"), ("AR", "Arkansas"), ("CA", "California"), ("CO", "Colorado"), ("CT", "Connecticut"), ("DE", "Delaware"), ("DC", "District of Columbia"), ("FL", "Florida"), ("GA", "Georgia"), ("HI", "Hawaii"), ("ID", "Idaho"), ("IL", "Illinois"), ("IN", "Indiana"), ("IA", "Iowa"), ("KS", "Kansas"), ("KY", "Kentucky"), ("LA", "Louisiana"), ("ME", "Maine"), ("MD", "Maryland"), ("MA", "Massachusetts"), ("MI", "Michigan"), ("MN", "Minnesota"), ("MS", "Mississippi"), ("MO", "Missouri"), ("MT", "Montana"), ("NE", "Nebraska"), ("NV", "Nevada"), ("NH", "New Hampshire"), ("NJ", "New Jersey"), ("NM", "New Mexico"), ("NY", "New York"), ("NC", "North Carolina"), ("ND", "North Dakota"), ("OH", "Ohio"), ("OK", "Oklahoma"), ("OR", "Oregon"), ("PA", "Pennsylvania"), ("RI", "Rhode Island"), ("SC", "South Carolina"), ("SD", "South Dakota"), ("TN", "Tennessee"), ("TX", "Texas"), ("UT", "Utah"), ("VT", "Vermont"), ("VA", "Virginia"), ("WA", "Washington"), ("WV", "West Virginia"), ("WI", "Wisconsin"), ("WY", "Wyoming"), ] def _shell(inner: str, *, step: str, title: str, app: Mapping[str, Any] | None = None, logged_in: bool = False, description: str = "", steps: Sequence[tuple[str, str]] | None = None) -> str: ref = "" if app and app.get("reference"): ref = (f'

' f'Application {R.esc(app["reference"])}

') visible_steps = list(steps or STEPS) body = f"""
{R.stepper(visible_steps, step)}{ref}
{inner}
""" return R.page(body, title=title, description=description, logged_in=logged_in) # --------------------------------------------------------------------------- # # step 1: business class # --------------------------------------------------------------------------- # def start_quote(query: str = "", product: str = "", error: str = "", logged_in: bool = False) -> str: """T03 entry: the business-class picker that the source renders as a modal.""" from content import site as S # The source filters the class list as the user types. Offline we render the # whole captured taxonomy and filter it client-side, so typing behaves the # same way with no request; `query` additionally narrows it server-side so # the step still works without JavaScript and stays deep-linkable. rows = P.search(query, limit=len(P.all_services())) options = "".join( f'
  • ' f'
  • ' for r in rows ) empty = "" if rows else ( '

    No business type matches ' f'“{R.esc(query)}”. Try a broader keyword.

    ') inner = f"""

    {R.esc(S.QUOTE_MODAL["heading"])}

    {R.esc(S.QUOTE_MODAL["subheading"])}

    {R.error_summary({"class": error} if error else {})}
    {empty}

    {R.esc(S.QUOTE_MODAL["call_prompt"])}

    """ return _shell(inner, step="class", title="Small Business Insurance Quotes | Insureon", description="Get the right coverage from top insurance companies.", logged_in=logged_in) def source_steps(app: Mapping[str, Any]) -> list[tuple[str, str]]: products = list(app.get("requested_products") or []) return [row for row in STEPS if row[0] != "workers" or "workers-compensation" in products] def company_information(app: Mapping[str, Any], errors: Mapping[str, str] | None = None, logged_in: bool = False) -> str: errors = errors or {} inner = f"""

    Your Company Information

    Tell us about the company you want to insure.

    {R.error_summary(errors)}
    {R.field("business_name", "What's the name of your business?", value=app.get("business_name") or "", error=errors.get("business_name", ""), required=True, attrs='autocomplete="organization"')} {R.field("zip_code", "What is the zip code of your primary business location?", value=app.get("zip_code") or "", error=errors.get("zip_code", ""), required=True, attrs='inputmode="numeric" maxlength="5" autocomplete="postal-code"')}
    When did you start your business?
    {R.field("start_month", "Month", kind="select", value="", error=errors.get("start_month", ""), required=True, options=[("", "Select month")] + [(str(i), str(i)) for i in range(1, 13)])} {R.field("start_year", "Year", kind="number", value="", error=errors.get("start_year", ""), required=True, attrs='min="1900" max="2026" inputmode="numeric"')}
    """ return _shell(inner, step="company", title="Company Information | Insureon", app=app, logged_in=logged_in, steps=source_steps(app)) def protection_options(app: Mapping[str, Any], catalog: Mapping[str, Mapping[str, Any]], selected: Sequence[str], limits: Mapping[str, Any], errors: Mapping[str, str] | None = None, logged_in: bool = False) -> str: errors = errors or {} boxes = [] for slug, prod in catalog.items(): boxes.append(f'') inner = f"""

    Protection Options

    Choose the policies and limits you want Insureon to compare.

    {R.error_summary(errors)}
    {''.join(boxes)}
    {R.field("limit", "Liability limits", kind="select", value=str(limits.get("limit") or ""), options=limits.get("limit_options") or [])} {R.field("deductible", "Deductible", kind="select", value=str(limits.get("deductible") or ""), options=limits.get("deductible_options") or [])}
    Back
    """ return _shell(inner, step="protection", title="Protection Options | Insureon", app=app, logged_in=logged_in, steps=source_steps(dict(app, requested_products=list(selected)))) def contact_information(app: Mapping[str, Any], errors: Mapping[str, str] | None = None, logged_in: bool = False) -> str: errors = errors or {} inner = f"""

    Contact Information

    Where should we attach this local quote application?

    {R.error_summary(errors)}
    {R.field("contact_first", "First name", value=app.get("contact_first") or "", error=errors.get("contact_first", ""), required=True, attrs='autocomplete="given-name"')} {R.field("contact_last", "Last name", value=app.get("contact_last") or "", error=errors.get("contact_last", ""), required=True, attrs='autocomplete="family-name"')}
    {R.field("email", "Email", kind="email", value=app.get("email") or "", error=errors.get("email", ""), required=True, attrs='autocomplete="email"')} {R.field("phone", "Phone", kind="tel", value=app.get("phone") or "", error=errors.get("phone", ""), required=True, attrs='autocomplete="tel"')}
    Back
    """ return _shell(inner, step="contact", title="Contact Information | Insureon", app=app, logged_in=logged_in, steps=source_steps(app)) def source_business_details(app: Mapping[str, Any], errors: Mapping[str, str] | None = None, logged_in: bool = False) -> str: errors = errors or {} inner = f"""

    Business Details

    {R.esc(app.get('profession_name', ''))} · {R.esc(app.get('industry_name', ''))}

    {R.error_summary(errors)}
    {R.field("entity_type", "Business structure", kind="select", value=app.get("entity_type") or "llc", error=errors.get("entity_type", ""), required=True, options=ENTITY_TYPES)}
    Back
    """ return _shell(inner, step="business", title="Business Details | Insureon", app=app, logged_in=logged_in, steps=source_steps(app)) def locations(app: Mapping[str, Any], errors: Mapping[str, str] | None = None, logged_in: bool = False) -> str: errors = errors or {} inner = f"""

    Locations

    Confirm the primary location for this company.

    {R.error_summary(errors)}
    {R.field("zip_code", "ZIP code", value=app.get("zip_code") or "", error=errors.get("zip_code", ""), required=True, attrs='inputmode="numeric" maxlength="5"')}
    {R.field("state", "State", kind="select", value=app.get("state") or "", error=errors.get("state", ""), required=True, options=[("", "Select a state")] + list(US_STATES))}{R.field("city", "City", value=app.get("city") or "", error=errors.get("city", ""), required=True)}
    Back
    """ return _shell(inner, step="locations", title="Locations | Insureon", app=app, logged_in=logged_in, steps=source_steps(app)) def sales_operations(app: Mapping[str, Any], errors: Mapping[str, str] | None = None, logged_in: bool = False) -> str: errors = errors or {} revenue = app.get("annual_revenue") or "" inner = f"""

    Sales & Operations

    Annual sales help carriers estimate the scale of your operations.

    {R.error_summary(errors)}
    {R.field("annual_revenue", "Estimated annual sales (USD)", kind="number", value=str(revenue), error=errors.get("annual_revenue", ""), required=True, attrs='min="0" step="1000" inputmode="numeric"')}
    Back
    """ return _shell(inner, step="sales", title="Sales & Operations | Insureon", app=app, logged_in=logged_in, steps=source_steps(app)) def workers_compensation(app: Mapping[str, Any], errors: Mapping[str, str] | None = None, logged_in: bool = False) -> str: errors = errors or {} inner = f"""

    Workers’ Compensation

    This step appears because workers’ compensation was selected.

    {R.error_summary(errors)}
    {R.field("employees", "How many employees do you have?", kind="number", value=str(app.get("employees") or ""), error=errors.get("employees", ""), required=True, attrs='min="0" max="500" inputmode="numeric"')}
    Back
    """ return _shell(inner, step="workers", title="Workers’ Compensation | Insureon", app=app, logged_in=logged_in, steps=source_steps(app)) def business_practices(app: Mapping[str, Any], logged_in: bool = False) -> str: claims = bool(app.get("has_prior_claims")); cert = bool(app.get("needs_certificate")) back = "workers-compensation" if "workers-compensation" in list(app.get("requested_products") or []) else "sales-operations" inner = f"""

    Business Operations & Practices

    A final set of questions helps match your company with eligible carriers.

    Back
    """ return _shell(inner, step="practices", title="Business Operations & Practices | Insureon", app=app, logged_in=logged_in, steps=source_steps(app)) # --------------------------------------------------------------------------- # # step 2: location # --------------------------------------------------------------------------- # def location(app: Mapping[str, Any], errors: Mapping[str, str] | None = None, logged_in: bool = False) -> str: errors = errors or {} inner = f"""

    Where is your business located?

    Insurance requirements and rates vary by state, so we start with your business address.

    {R.esc(app.get("profession_name", ""))} — {R.esc(app.get("industry_name", ""))} Change

    {R.error_summary(errors)}
    {R.field("zip_code", "ZIP code", value=app.get("zip_code") or "", error=errors.get("zip_code", ""), required=True, placeholder="60601", hint="5-digit US ZIP code", attrs='inputmode="numeric" maxlength="10" autocomplete="postal-code"')} {R.field("state", "State", kind="select", value=app.get("state") or "", error=errors.get("state", ""), required=True, options=[("", "Select a state")] + list(US_STATES))} {R.field("city", "City", value=app.get("city") or "", error=errors.get("city", ""), placeholder="Chicago")}
    Back
    """ return _shell(inner, step="location", title="Business location | Insureon", app=app, logged_in=logged_in) # --------------------------------------------------------------------------- # # step 3: business details # --------------------------------------------------------------------------- # def business(app: Mapping[str, Any], errors: Mapping[str, str] | None = None, logged_in: bool = False) -> str: errors = errors or {} revenue = app.get("annual_revenue") employees = app.get("employees") inner = f"""

    Tell us about your business

    Carriers price your policy from these details.

    {R.error_summary(errors)}
    {R.field("business_name", "Business name", value=app.get("business_name") or "", error=errors.get("business_name", ""), required=True, placeholder="Northside Consulting LLC", attrs='autocomplete="organization"')}
    {R.field("employees", "Number of employees", value="" if employees is None else str(employees), error=errors.get("employees", ""), required=True, kind="number", placeholder="5", hint="Include owners and part-time staff", attrs='min="0" max="500" inputmode="numeric"')} {R.field("annual_revenue", "Annual revenue (USD)", value="" if revenue is None else str(revenue), error=errors.get("annual_revenue", ""), required=True, kind="number", placeholder="200000", hint="Gross revenue for the last 12 months", attrs='min="0" step="1000" inputmode="numeric"')}
    {R.field("years_in_business", "Years in business", kind="select", value=str(app.get("years_in_business") or ""), error=errors.get("years_in_business", ""), options=[("", "Select")] + list(YEARS_OPTIONS))} {R.field("entity_type", "Business structure", kind="select", value=app.get("entity_type") or "", error=errors.get("entity_type", ""), options=[("", "Select")] + list(ENTITY_TYPES))}
    Back
    """ return _shell(inner, step="business", title="Business details | Insureon", app=app, logged_in=logged_in) # --------------------------------------------------------------------------- # # step 4: risk profile # --------------------------------------------------------------------------- # def risk(app: Mapping[str, Any], errors: Mapping[str, str] | None = None, logged_in: bool = False) -> str: errors = errors or {} claims = bool(app.get("has_prior_claims")) cert = bool(app.get("needs_certificate")) inner = f"""

    A few risk questions

    These answers affect which carriers can quote your business and what they charge.

    {R.error_summary(errors)}

    {R.field("operations", "Briefly describe what your business does", kind="textarea", value=app.get("operations") or "", error=errors.get("operations", ""), placeholder="Management consulting for small manufacturers", hint="Optional. Helps carriers classify your operations.")}
    Back
    """ return _shell(inner, step="risk", title="Risk profile | Insureon", app=app, logged_in=logged_in) # --------------------------------------------------------------------------- # # step 5: coverage # --------------------------------------------------------------------------- # def coverage(app: Mapping[str, Any], catalog: Mapping[str, Mapping[str, Any]], selected: Sequence[str], limits: Mapping[str, Any], errors: Mapping[str, str] | None = None, logged_in: bool = False) -> str: errors = errors or {} boxes = [] for slug, prod in catalog.items(): checked = " checked" if slug in selected else "" boxes.append(f"""""") limit_opts = limits.get("limit_options") or [] ded_opts = limits.get("deductible_options") or [] inner = f"""

    Choose your coverage

    Select the policies you want quoted, then set your limits and deductible.

    {R.error_summary(errors)}
    {''.join(boxes)}
    {R.field("limit", "Liability limits", kind="select", value=str(limits.get("limit") or ""), error=errors.get("limit", ""), options=limit_opts)} {R.field("deductible", "Deductible", kind="select", value=str(limits.get("deductible") or ""), error=errors.get("deductible", ""), options=ded_opts)}
    Back
    """ return _shell(inner, step="coverage", title="Choose your coverage | Insureon", app=app, logged_in=logged_in) # --------------------------------------------------------------------------- # # step 6: compare quotes # --------------------------------------------------------------------------- # def _quote_card(app_id: str, q: Mapping[str, Any], chosen: bool) -> str: badge = ('RECOMMENDED' if q.get("recommended") else "") return f"""
    {badge}
    {R.esc(q["carrier_name"])}
    {R.esc(q["product_name"])} · AM Best {R.esc(q.get("rating", ""))}
    {R.money(q["per_occurrence_limit_cents"])} per occurrence / {R.money(q["aggregate_limit_cents"])} aggregate · {R.money(q["deductible_cents"])} deductible
    {R.money(q["monthly_premium_cents"])} per month · {R.money(q["annual_premium_cents"])} annually
    View details
    """ def quotes(app: Mapping[str, Any], options: Sequence[Mapping[str, Any]], selected_ids: Sequence[str], notice: str = "", logged_in: bool = False) -> str: if not options: listing = ('
    No quotes have been generated for this ' 'application yet. Choose your coverage to continue.
    ') else: listing = ('
    ' + "".join(_quote_card(app["id"], q, q["id"] in selected_ids) for q in options) + "
    ") save = "" if not logged_in: save = ('

    ' 'Create an account to save these quotes and come ' 'back to them later.

    ') else: save = f"""
    """ inner = f"""

    Compare your quotes

    {R.esc(app.get("business_name") or "Your business")} · {R.esc(app.get("profession_name", ""))} · {R.esc(app.get("city") or "")} {R.esc(app.get("state") or "")} {R.esc(app.get("zip_code") or "")}

    {R.notice(notice)} {listing}
    {save}
    Edit coverage Continue to review
    """ return _shell(inner, step="quotes", title="Compare quotes | Insureon", app=app, logged_in=logged_in) def quote_detail(app: Mapping[str, Any], q: Mapping[str, Any], product: Mapping[str, Any] | None, chosen: bool, logged_in: bool = False) -> str: """T08: plan detail with limits, benefits, exclusions and policy terms.""" def _bullets(entries: Any) -> str: rows = [] for e in entries or []: if isinstance(e, Mapping): t, b = e.get("title", ""), e.get("body", "") else: t, b = str(e), "" rows.append(f"
  • {R.esc(t)}" + (f"
    {R.esc(b)}" if b else "") + "
  • ") return "".join(rows) covers = _bullets((product or {}).get("covers")) excl = _bullets((product or {}).get("not_covered")) inner = f"""← Back to all quotes

    {R.esc(q["carrier_name"])} — {R.esc(q["product_name"])}

    Carrier{R.esc(q["carrier_name"])}
    AM Best rating{R.esc(q.get("rating", ""))}
    Policy{R.esc(q["product_name"])}
    Per occurrence limit{R.money(q["per_occurrence_limit_cents"])}
    Aggregate limit{R.money(q["aggregate_limit_cents"])}
    Deductible{R.money(q["deductible_cents"])}
    Monthly premium{R.money(q["monthly_premium_cents"])}
    Annual premium{R.money(q["annual_premium_cents"])}
    {f"

    What this policy covers

    " if covers else ""} {f"

    What this policy does not cover

    " if excl else ""}

    Policy terms

    """ return _shell(inner, step="quotes", title=f"{q['carrier_name']} {q['product_name']} quote | Insureon", app=app, logged_in=logged_in) # --------------------------------------------------------------------------- # # step 7: review (T02 / T23 acceptance surface) # --------------------------------------------------------------------------- # def review(app: Mapping[str, Any], selected: Sequence[Mapping[str, Any]], totals: Mapping[str, int], errors: Mapping[str, str] | None = None, logged_in: bool = False) -> str: errors = errors or {} if not selected: inner = f"""

    Review your application

    You have not selected a quote yet. Compare your quotes and select at least one policy to continue.
    """ return _shell(inner, step="review", title="Review your application | Insureon", app=app, logged_in=logged_in) rows = "".join( f'{R.esc(q["product_name"])} — {R.esc(q["carrier_name"])}' f'{R.money(q["annual_premium_cents"])} / year' f'' f'{R.money(q["monthly_premium_cents"])} per month · ' f'{R.money(q["per_occurrence_limit_cents"])} per occurrence / ' f'{R.money(q["aggregate_limit_cents"])} aggregate · ' f'{R.money(q["deductible_cents"])} deductible' for q in selected ) revenue = app.get("annual_revenue") revenue_txt = f"${int(revenue):,}" if revenue not in (None, "") else "—" inner = f"""

    Review your application

    Check that everything below is correct before you continue to enrollment.

    {R.error_summary(errors)}

    Your business

    Business name{R.esc(app.get("business_name") or "—")}
    Business type{R.esc(app.get("profession_name") or "—")}
    Industry{R.esc(app.get("industry_name") or "—")}
    Number of employees{R.esc(app.get("employees"))}
    Annual revenue{revenue_txt}
    Years in business{R.esc(app.get("years_in_business") or "—")}
    Business structure{R.esc(ENTITY_TYPE_LABELS.get(app.get("entity_type") or "", app.get("entity_type") or "—"))}
    Location{R.esc(app.get("city") or "")} {R.esc(app.get("state") or "")} {R.esc(app.get("zip_code") or "")}
    Prior claims{"Yes" if app.get("has_prior_claims") else "No"}

    Edit business details

    Your selected coverage

    {rows}
    Total annual premium {R.money(totals["annual_cents"])}
    Total monthly premium {R.money(totals["monthly_cents"])}

    Change selected quotes

    Back Continue to enrollment
    """ return _shell(inner, step="review", title="Review your application | Insureon", app=app, logged_in=logged_in) # --------------------------------------------------------------------------- # # enrollment / payment / confirmation # --------------------------------------------------------------------------- # def enroll(app: Mapping[str, Any], totals: Mapping[str, int], errors: Mapping[str, str] | None = None, logged_in: bool = False) -> str: errors = errors or {} inner = f"""

    Enrollment details

    We use these details to issue your policy documents and certificate of insurance.

    {R.error_summary(errors)}
    {R.field("contact_first", "First name", value=app.get("contact_first") or "", error=errors.get("contact_first", ""), required=True, attrs='autocomplete="given-name"')} {R.field("contact_last", "Last name", value=app.get("contact_last") or "", error=errors.get("contact_last", ""), required=True, attrs='autocomplete="family-name"')}
    {R.field("email", "Email address", kind="email", value=app.get("email") or "", error=errors.get("email", ""), required=True, placeholder="owner@example.com", attrs='autocomplete="email"')} {R.field("phone", "Phone number", kind="tel", value=app.get("phone") or "", error=errors.get("phone", ""), required=True, placeholder="(312) 555-0142", attrs='autocomplete="tel"')} {R.field("effective_date", "Requested coverage start date", kind="date", value=app.get("effective_date") or "", error=errors.get("effective_date", ""), required=True)}
    Total annual premium {R.money(totals["annual_cents"])}
    Back
    """ return _shell(inner, step="review", title="Enrollment | Insureon", app=app, logged_in=logged_in) def payment(app: Mapping[str, Any], totals: Mapping[str, int], errors: Mapping[str, str] | None = None, effective_date: str = "", logged_in: bool = False) -> str: errors = errors or {} inner = f"""

    Payment

    {R.notice("Offline demonstration site. This is a local sandbox payment step: " "no card is charged, no payment processor is contacted, and no card " "number is stored. Enter any placeholder values.")} {R.error_summary(errors)}
    {R.field("billing_name", "Name on account", value="", error=errors.get("billing_name", ""), required=True, placeholder="Business owner name")} {R.field("method_label", "Payment method", kind="select", value="card-sandbox", error=errors.get("method_label", ""), options=[("card-sandbox", "Sandbox card"), ("ach-sandbox", "Sandbox bank transfer")])} {R.field("billing_zip", "Billing ZIP code", value=app.get("zip_code") or "", error=errors.get("billing_zip", ""), required=True, attrs='inputmode="numeric" maxlength="10"')}
    Total annual premium{R.money(totals["annual_cents"])}
    Due today{R.money(totals["annual_cents"])}
    Back
    """ return _shell(inner, step="review", title="Payment | Insureon", app=app, logged_in=logged_in) def confirmation(app: Mapping[str, Any], policies: Sequence[Mapping[str, Any]], totals: Mapping[str, int], documents: Sequence[Mapping[str, Any]], logged_in: bool = False) -> str: rows = "".join( f'{R.esc(p["product_name"])} — {R.esc(p["carrier_name"])}' f'Policy {R.esc(p["number"])}Effective {R.esc(p["effective_date"])} ' f'to {R.esc(p["expiration_date"])} · {R.money(p["annual_premium_cents"])} / year' f"" for p in policies ) docs = "".join( f'
  • {R.esc(d["title"])}
  • ' for d in documents ) revenue = app.get("annual_revenue") revenue_txt = f"${int(revenue):,}" if revenue not in (None, "") else "—" inner = f"""

    You're covered.

    Application {R.esc(app.get("reference", ""))} is complete. A confirmation was recorded for {R.esc(app.get("email") or "your account")}.

    Your business

    Business name{R.esc(app.get("business_name") or "—")}
    Business type{R.esc(app.get("profession_name") or "—")}
    Number of employees{R.esc(app.get("employees"))}
    Annual revenue{revenue_txt}

    Your policies

    {rows}
    Total annual premium {R.money(totals["annual_cents"])}
    {f'

    Your documents

    ' if docs else ''}
    Manage my policies View documents
    """ return _shell(inner, step="review", title="Purchase confirmed | Insureon", app=app, logged_in=logged_in)