"use client"; import { useState } from "react"; import type { CSSProperties } from "react"; import { tokens } from "@/components/trade-in/v2/tokens"; import TopNav from "@/components/trade-in/v2/TopNav"; import HeroBar from "@/components/trade-in/v2/HeroBar"; import ParamsPanel from "@/components/trade-in/v2/ParamsPanel"; import ResultPanel from "@/components/trade-in/v2/ResultPanel"; import { ObjectSummary } from "@/components/trade-in/v2/ObjectSummary"; import { Footer } from "@/components/trade-in/v2/Footer"; import SectionOverlay from "@/components/trade-in/v2/SectionOverlay"; import { LocationDrawer } from "@/components/trade-in/v2/LocationDrawer"; // OUTER HUD FRAME + 4 corner brackets (design lines 31-37). Decorative, // non-interactive overlay drawn over the artboard gradient. The frame has // chamfered octagonal corners (clip-path polygon) + 4px radius; the brackets // sit just outside it at the artboard corners. const FRAME_INSET = 14; const BRACKET_INSET = 6; const BRACKET_ARM = 22; const BRACKET_W = 1.5; const FRAME_CLIP = "polygon(18px 0,calc(100% - 18px) 0,100% 18px,100% calc(100% - 18px),calc(100% - 18px) 100%,18px 100%,0 calc(100% - 18px),0 18px)"; const brackets: { key: string; style: CSSProperties }[] = [ { key: "tl", style: { top: BRACKET_INSET, left: BRACKET_INSET, borderTop: `${BRACKET_W}px solid ${tokens.bracket2}`, borderLeft: `${BRACKET_W}px solid ${tokens.bracket2}`, }, }, { key: "tr", style: { top: BRACKET_INSET, right: BRACKET_INSET, borderTop: `${BRACKET_W}px solid ${tokens.bracket2}`, borderRight: `${BRACKET_W}px solid ${tokens.bracket2}`, }, }, { key: "bl", style: { bottom: BRACKET_INSET, left: BRACKET_INSET, borderBottom: `${BRACKET_W}px solid ${tokens.bracket2}`, borderLeft: `${BRACKET_W}px solid ${tokens.bracket2}`, }, }, { key: "br", style: { bottom: BRACKET_INSET, right: BRACKET_INSET, borderBottom: `${BRACKET_W}px solid ${tokens.bracket2}`, borderRight: `${BRACKET_W}px solid ${tokens.bracket2}`, }, }, ]; export default function TradeInV2Page() { const [nav, setNav] = useState(0); const [drawerOpen, setDrawerOpen] = useState(false); return (