/* global React, Icon, Footer, SiteHeader */
// "Switch from Linnworks" page. Linnworks facts come from linnworks.com (features, pricing,
// onboarding) and public review sites, November 2026. Linnworks stopped publishing prices in 2024,
// so every cost figure is an estimate and is labelled as one.

const SW_SOLD = {
  core:  { label: "In the base plan", cls: "bg-stone-100 text-stone-700" },
  addon: { label: "Paid add-on",      cls: "bg-orange-100 text-orange-800" },
  third: { label: "Paid external tool", cls: "bg-amber-100 text-amber-800" },
  none:  { label: "Not offered",      cls: "bg-stone-200 text-stone-700" },
  fee:   { label: "One-off fee",      cls: "bg-orange-100 text-orange-800" },
};

const FEATURE_MAP = [
  { icon: "cart", area: "Multichannel order management", sold: "core",
    lw: "One dashboard for orders from 100+ channels, with order routing and workflows.",
    uo: "One de-duplicated queue across your channels, with holds, alerts, splits and merges, a full buyer history on every order, and cancel and change requests flagged before they ship." },
  { icon: "zap", area: "Rules and automation", sold: "core",
    lw: "An unlimited no-code Rules Engine, plus Spotlight AI, which suggests rules (about 52 hours a month saved, on Linnworks' own figures).",
    uo: "No-code automation across orders, inventory, messages, cases, shipments and schedules, with dry-run, backtests against your real history, conflict detection and an audit log. An AI agent works alongside it." },
  { icon: "tag", area: "Listings", sold: "addon",
    lw: "Creating a listing is slow work on dated tools, often hours per listing, and templates and bulk editing across 11 listing channels sit in a paid add-on.",
    uo: "A new listing in minutes, not hours: describe the product and AI fills the form, then publish to Amazon, eBay, Shopify and TikTok Shop with live category checks, templates and bulk publish. An AI fixer repairs Amazon rejections and asks you only what needs a human." },
  { icon: "boxes", area: "Inventory and stock sync", sold: "core",
    lw: "Real-time stock across channels and locations.",
    uo: "Multi-warehouse bins and shelves, allocation rules, stock takes, transfers, purchase orders, ghost SKUs for quantity packs, price lists and low-stock alerts." },
  { icon: "truck", area: "Shipping", sold: "core",
    lw: "50+ carrier integrations and shipping rules.",
    uo: "All the major carriers: Royal Mail, Evri, Whistl, Parcelhub, Scurri and Parcel2Go (which brokers DPD and more), plus Manual for any other courier. Rules and rate shopping, bulk labels that print as they're bought, split packages, relabelling and AI customs codes." },
  { icon: "warehouse", area: "Warehouse management", sold: "addon",
    lw: "No advanced warehouse app in the base product. Wave picking, scan verification and quality control come from a separately paid warehouse add-on.",
    uo: "Wave planner, an offline-first picker app, scan-to-pack, stock takes and a visual warehouse mapper with pathfinding and heatmaps. Included from the Growth plan." },
  { icon: "bar", area: "Forecasting", sold: "addon",
    lw: "Demand forecasting and replenishment, sold as a flat-fee add-on.",
    uo: "Basic forecasting on Growth and advanced on Scale, with reorder suggestions and low-stock alerts." },
  { icon: "refresh", area: "Returns", sold: "third",
    lw: "Handled by an external returns app such as Loop, which creates RMAs in Linnworks. A required paid external tool.",
    uo: "A built-in returns workbench with a hosted returns page, a policy engine, rate-shopped labels and hand-off codes. Marketplace returns land in the same queue." },
  { icon: "pound", area: "Accounting", sold: "third",
    lw: "Syncs sales, refunds and tax to Xero or QuickBooks Online through a connector app. A required paid external tool.",
    uo: "A built-in double-entry ledger: cost of goods, marketplace fees, VAT, invoices, credit notes and bank reconciliation, with real margin on every order." },
  { icon: "inbox", area: "Buyer messaging", sold: "third",
    lw: "Handled by third-party helpdesk and messaging tools. Required paid external tools.",
    uo: "One inbox for eBay, Amazon, Shopify, WhatsApp, email, SMS and live chat, with AI drafts in your voice, an undo window on every send, and Voice Pilot." },
  { icon: "message", area: "Storefront chat and team chat", sold: "none",
    lw: "Neither appeared in our July 2026 review of Linnworks' feature set.",
    uo: "A live-chat widget for your own site that feeds the same inbox, and Team Chat attached to the order or buyer." },
  { icon: "printer", area: "Label and document printing", sold: "core",
    lw: "Linnworks Virtual Printer, a Windows print agent.",
    uo: "A free cross-platform print agent for Windows, macOS and Linux, with raw ZPL and EPL for thermal printers." },
  { icon: "eye", area: "Analytics", sold: "core",
    lw: "Reporting and insights across orders and inventory.",
    uo: "Per-order margin, channel and SKU profitability, return and defect insights, eBay account health, and scheduled exports." },
  { icon: "workflow", area: "API and extensibility", sold: "core",
    lw: "An open API and an app marketplace.",
    uo: "An open API, custom apps with scoped tokens, signed webhooks, embedded screens inside the app, and an MCP endpoint for AI assistants." },
  { icon: "clock", area: "Getting started", sold: "fee",
    lw: "Dedicated onboarding with a one-off fee. Linnworks quotes about 60 days on average and 40 at best.",
    uo: "Up and running within a day in most cases, with your past orders and SKUs imported, and Linnworks kept in sync both ways while you move over." },
  { icon: "star", area: "Pricing", sold: "core",
    lw: "Priced on monthly order volume with overage. Listing, warehouse and forecasting are billed on top. Public prices were removed in 2024.",
    uo: "Four public tiers from £199 a month with every module included. The first 200 customers lock their price for three years." },
];

const RULE_MAP = [
  { from: "Choose the carrier or service", to: "Shipping rules", how: "Conditions on weight, size, destination, value, channel and SKU. Set the service, force an account, or rate-shop for the cheapest." },
  { from: "Assign a fulfilment centre", to: "Allocation rules", how: "Decide which warehouse supplies which order, with stock reserved and released automatically." },
  { from: "Choose a package format", to: "Package formats", how: "Pre-defined sizes picked by rule, with weight summed from your item weights." },
  { from: "Sort orders into folders", to: "Tags, holds, alerts and saved views", how: "Amber holds that clear themselves, red alerts a person acknowledges, and filters you can save." },
  { from: "Split an order", to: "Splits, merges and packages", how: "Split by warehouse or into parcels, with tracking carried across automatically." },
  { from: "Suggested automations (Spotlight)", to: "AI agent and rule templates", how: "Ask in plain English what's slowing the team down, and test any new rule against your own history first." },
];

const MOVES = [
  { icon: "link", title: "Your channels", body: "Reconnect each marketplace once with OAuth. We start pulling orders and live listings straight away." },
  { icon: "archive", title: "Your order history", body: "Connect your Linnworks account with its API credentials and the full order history comes across in the background, with line items. We've run it against histories of more than 700,000 orders." },
  { icon: "package", title: "Your products and SKUs", body: "Import your catalogue from a CSV with automatic column detection, then match listings to products by barcode or title." },
  { icon: "search", title: "Your customers", body: "Buyers and contacts are built from your order history, with lifetime spend and a full cross-channel record." },
  { icon: "workflow", title: "Your rules", body: "We go through your Rules Engine with you and rebuild each rule, then dry-run it against real orders before it goes live." },
  { icon: "boxes", title: "Your stock", body: "Stock levels come across with your products and stay in step while both systems run." },
];

const STEPS = [
  { title: "Add Linnworks as a channel", body: "Enter your Linnworks API credentials, just like connecting any other marketplace. That is the whole setup on the Linnworks side." },
  { title: "Past orders, SKUs and customers come across", body: "We import your order history, products and customers in the background, newest first, so you can start working straight away. Most sellers are up and running within a day." },
  { title: "The two systems stay in sync", body: "New orders appear in Unified Orders, and dispatch status, tracking and updates flow both ways. Dispatch or print a label on either side and the other updates. You never get a double order and you never lose one." },
  { title: "Use both for as long as you want", body: "There is nothing to cancel on day one. Run both while your team gets comfortable. Because everything is quicker in Unified Orders, most people stop opening Linnworks within days." },
  { title: "Switch Linnworks off when you're ready", body: "Cancel your Linnworks plan whenever it suits you, straight away or at the end of your term. We're with you through the whole switch, so you're never left on your own." },
];


const FAQ = [
  { q: "How long does it take to switch?", a: "Most sellers are up and running within a day, with past orders and SKUs imported. We add Linnworks as a channel and keep both systems in sync, so there's no hard cut-over and nothing to rush." },
  { q: "What happens to my order history?", a: "Connect your Linnworks account with its API credentials and we pull your full order history in the background. We've run this against histories of more than 700,000 orders. A CSV history import is available too." },
  { q: "Can I run both systems at once?", a: "Yes, that's how we suggest starting. The two stay in sync both ways, so you never get a double order and never lose one. Most people stop opening Linnworks within days, but there's no deadline." },
  { q: "Which channels and carriers carry over?", a: "Amazon, eBay, Shopify, Etsy, TikTok Shop, WooCommerce, BigCommerce, Magento and WhatsApp connect directly. For shipping, all the major carriers are covered: Royal Mail, Evri, Whistl, Parcelhub, Scurri and Parcel2Go (which brokers DPD and more), with Manual for any other courier. If you sell or ship somewhere unusual, tell us." },
  { q: "What about my Linnworks rules?", a: "We go through them with you and rebuild them as shipping, allocation and automation rules. Every rule can be dry-run and backtested against your own orders before it goes live." },
  { q: "I use Xero or QuickBooks with Linnworks. What now?", a: "Start with real margins per order and the built-in ledger, then move month-end into it when you're ready. Your accountant gets VAT by code and a CSV for any date range." },
  { q: "My Linnworks contract hasn't ended. What do I do?", a: "Check your renewal date and notice period in your agreement, then start a free trial now and run both systems side by side. Because they stay in sync, you can work in Unified Orders from day one and let Linnworks run out its term." },
  { q: "What does it cost?", a: "Four public plans from £199 a month, with every module included and no per-channel fees. See the pricing page for the full list." },
];

function SwChip({ children }) {
  return <span className="text-[13px] font-medium px-3 py-1.5 rounded-full bg-white border border-stone-300 text-stone-800">{children}</span>;
}

function SwHero() {
  return (
    <section className="pt-16 lg:pt-20 pb-14">
      <div className="max-w-7xl mx-auto px-6 grid lg:grid-cols-12 gap-10 items-center">
        <div className="lg:col-span-7">
          <span className="text-[11px] uppercase tracking-[0.18em] font-semibold text-orange-700">Switching from Linnworks</span>
          <h1 className="font-bold tracking-tight text-stone-900 mt-3" style={{ fontSize: "clamp(36px, 5.2vw, 66px)", lineHeight: 1.03, letterSpacing: "-0.03em" }}>
            Leave Linnworks.<br />Keep your history.<br />Lose the add-ons.
          </h1>
          <p className="text-[18px] text-stone-700 leading-relaxed mt-5 max-w-2xl">
            Tired of the price rises, the support queue and the add-on bill? Unified Orders is the ecommerce operating system: everything Linnworks does, plus the modules you currently buy from other vendors, in one platform at one price you can see. Your channels, products, customers and full order history come with you.
          </p>
          <div className="flex flex-wrap gap-3 mt-8">
            <a href="contact.html" className="inline-flex items-center gap-1.5 text-sm font-semibold px-5 py-3 rounded-lg bg-stone-900 text-white hover:bg-stone-800 transition-colors">Book a migration call <Icon name="arrow" size={14} /></a>
            <a href="#map" className="inline-flex items-center text-sm font-semibold px-5 py-3 rounded-lg border border-stone-300 text-stone-800 hover:bg-stone-100 transition-colors">See the feature-by-feature map</a>
          </div>
          <div className="flex flex-wrap gap-2 mt-7">
            <SwChip>Up and running in a day</SwChip><SwChip>Full order history imported</SwChip><SwChip>Every module included</SwChip><SwChip>From £199 / month</SwChip>
          </div>
        </div>
        <div className="lg:col-span-5">
          <div className="rounded-2xl border border-stone-200 bg-white shadow-sm overflow-hidden">
            <div className="grid grid-cols-2 text-center">
              <div className="p-6 border-r border-stone-200 bg-stone-50">
                <div className="text-xs uppercase tracking-wider text-stone-500 font-semibold">Linnworks onboarding</div>
                <div className="text-4xl font-bold text-stone-400 mt-2">~60 days</div>
                <div className="text-xs text-stone-500 mt-1">average, by their own figure</div>
              </div>
              <div className="p-6 bg-orange-50">
                <div className="text-xs uppercase tracking-wider text-orange-700 font-semibold">Unified Orders</div>
                <div className="text-4xl font-bold text-stone-900 mt-2">~1 day</div>
                <div className="text-xs text-stone-600 mt-1">in most cases, with history imported</div>
              </div>
            </div>
            <ul className="divide-y divide-stone-100">
              {["Linnworks kept in sync both ways while you move", "Order history imported through the Linnworks API", "Your rules rebuilt and backtested", "Price locked for 3 years for the first 200 customers"].map((t) => (
                <li key={t} className="flex items-center gap-2.5 px-5 py-3 text-[14px] text-stone-800"><Icon name="check" size={14} className="text-orange-500 flex-none" />{t}</li>
              ))}
            </ul>
          </div>
        </div>
      </div>
    </section>
  );
}

const PAINS = [
  { pain: "Another price increase, and nothing new to show for it.", fix: "Public prices on four tiers. The first 200 customers lock theirs for three years." },
  { pain: "A support ticket that's been open for days.", fix: "You talk to the people who built it. Every plan gets a real reply, usually the same day." },
  { pain: "You asked what it costs and got a sales call.", fix: "Every price is on the pricing page. No quote, no call needed." },
  { pain: "Every new need turns into another add-on.", fix: "Listings, warehouse, returns, accounting and messaging are all included." },
];

function SwPain() {
  return (
    <section className="py-16 lg:py-20 bg-orange-50/60 border-y border-orange-100">
      <div className="max-w-6xl mx-auto px-6">
        <span className="text-[11px] uppercase tracking-[0.18em] font-semibold text-orange-700">Sound familiar?</span>
        <h2 className="font-bold text-stone-900 tracking-tight mt-2" style={{ fontSize: "clamp(28px, 3.6vw, 46px)", lineHeight: 1.08, letterSpacing: "-0.025em" }}>
          You're not imagining it.
        </h2>
        <p className="text-[17px] text-stone-700 leading-relaxed mt-3 max-w-3xl">
          Support response times and price increases are the two complaints that come up most in public reviews of Linnworks. If you've felt either, here is what changes.
        </p>
        <div className="grid sm:grid-cols-2 gap-4 mt-10">
          {PAINS.map((p) => (
            <div key={p.pain} className="rounded-2xl border border-stone-200 bg-white overflow-hidden">
              <div className="px-6 pt-5 pb-4">
                <div className="text-[11px] uppercase tracking-wider font-semibold text-stone-500">With Linnworks</div>
                <p className="text-[17px] font-semibold text-stone-900 leading-snug mt-1.5">{p.pain}</p>
              </div>
              <div className="px-6 py-4 bg-orange-100/60 border-t border-orange-100">
                <div className="text-[11px] uppercase tracking-wider font-semibold text-orange-700">With Unified Orders</div>
                <p className="text-[15px] text-stone-800 leading-relaxed mt-1.5">{p.fix}</p>
              </div>
            </div>
          ))}
        </div>
        <div className="mt-8 rounded-2xl bg-stone-900 text-white p-6 sm:p-7 flex flex-col md:flex-row md:items-center md:justify-between gap-5">
          <div>
            <div className="text-orange-400 text-xs font-semibold uppercase tracking-wider">Don't take our word for it</div>
            <p className="text-stone-200 text-[15px] leading-relaxed mt-1.5 max-w-2xl">
              Read what Linnworks customers say on the public review sites: Trustpilot (4.0 from 632 reviews), G2 (4.3 from 101) and Capterra (4.1 from 47). Then open a ticket with us and see how long we take.
            </p>
          </div>
          <div className="flex flex-wrap gap-2 flex-none">
            <a href="https://uk.trustpilot.com/review/linnworks.com" className="text-sm font-semibold px-4 py-2.5 rounded-lg bg-white text-stone-900 hover:bg-stone-100 transition-colors">Trustpilot</a>
            <a href="https://www.g2.com/products/skuvault/reviews" className="text-sm font-semibold px-4 py-2.5 rounded-lg bg-white text-stone-900 hover:bg-stone-100 transition-colors">G2</a>
            <a href="https://www.capterra.com/p/116088/Linnworks/reviews/" className="text-sm font-semibold px-4 py-2.5 rounded-lg bg-white text-stone-900 hover:bg-stone-100 transition-colors">Capterra</a>
          </div>
        </div>
        <p className="text-[12px] text-stone-500 mt-3">Ratings as listed on each site, November 2026. They change, so check the links.</p>
      </div>
    </section>
  );
}

function SwHowSold() {
  const cards = [
    { icon: "bar", title: "A base plan priced on orders", body: "Linnworks plans are tiered on monthly order volume, with overage when you exceed it. Public prices were removed in 2024, so you need a sales call to see a number." },
    { icon: "layers", title: "Modules billed on top", body: "Listings, warehouse management and forecasting are separate monthly charges. Third-party estimates put a full stack at $500 to $2,000+ a month above the base price." },
    { icon: "link", title: "Everything else is another app", body: "Returns, accounting sync, helpdesk and messaging come from other vendors. Each one is a required paid external tool, with its own bill and its own login." },
  ];
  return (
    <section className="py-16 lg:py-20 bg-stone-100/60 border-y border-stone-200">
      <div className="max-w-6xl mx-auto px-6">
        <span className="text-[11px] uppercase tracking-[0.18em] font-semibold text-orange-700">How Linnworks is put together</span>
        <h2 className="font-bold text-stone-900 tracking-tight mt-2" style={{ fontSize: "clamp(26px, 3.2vw, 40px)", letterSpacing: "-0.02em" }}>A base product, then add-ons, then other people's apps.</h2>
        <div className="grid md:grid-cols-3 gap-5 mt-10">
          {cards.map((c) => (
            <div key={c.title} className="rounded-2xl border border-stone-200 bg-white p-6">
              <div className="w-10 h-10 rounded-lg bg-stone-100 text-stone-700 flex items-center justify-center"><Icon name={c.icon} size={18} /></div>
              <h3 className="font-semibold text-stone-900 mt-4">{c.title}</h3>
              <p className="text-[14.5px] text-stone-700 leading-relaxed mt-1.5">{c.body}</p>
            </div>
          ))}
        </div>
        <div className="rounded-2xl bg-stone-900 text-white p-6 sm:p-8 mt-5 grid md:grid-cols-12 gap-6 items-center">
          <div className="md:col-span-7">
            <div className="text-orange-400 text-xs font-semibold uppercase tracking-wider">Unified Orders</div>
            <h3 className="text-xl sm:text-2xl font-bold tracking-tight mt-1">It's one platform, so it's one price.</h3>
            <p className="text-stone-300 text-[15px] leading-relaxed mt-2">Orders, listings, warehouse, shipping, returns, messaging, accounting, phone and social run on one core. Four public tiers from £199 a month, every module included, and no percentage of your sales.</p>
          </div>
          <div className="md:col-span-5 text-[13px] text-stone-300 space-y-2">
            <div className="flex justify-between border-b border-stone-700 pb-2"><span>3,000 orders a month, Linnworks stack*</span><span className="font-mono text-stone-100">~£20,376 / yr</span></div>
            <div className="flex justify-between border-b border-stone-700 pb-2"><span>3,000 orders a month, Unified Orders</span><span className="font-mono text-orange-300">£5,268 / yr</span></div>
            <div className="flex justify-between border-b border-stone-700 pb-2"><span>30,000 orders a month, Linnworks stack*</span><span className="font-mono text-stone-100">~£44,724 / yr</span></div>
            <div className="flex justify-between"><span>30,000 orders a month, Unified Orders</span><span className="font-mono text-orange-300">£11,508 / yr</span></div>
          </div>
        </div>
        <p className="text-[12px] text-stone-500 mt-3 max-w-3xl">*Estimates from our <a href="pricing.html" className="underline">pricing comparison</a>: Linnworks base plan plus the add-ons and third-party tools a full stack needs, such as listings, warehouse, helpdesk and accounting sync. Linnworks does not publish prices, so these come from public estimates and will vary with your quote.</p>
      </div>
    </section>
  );
}

function SwMap() {
  return (
    <section className="py-16 lg:py-20" id="map">
      <div className="max-w-6xl mx-auto px-6">
        <span className="text-[11px] uppercase tracking-[0.18em] font-semibold text-orange-700">Feature by feature</span>
        <h2 className="font-bold text-stone-900 tracking-tight mt-2" style={{ fontSize: "clamp(26px, 3.2vw, 40px)", letterSpacing: "-0.02em" }}>What Linnworks does, and where it lives in Unified Orders.</h2>
        <p className="text-[17px] text-stone-700 leading-relaxed mt-3 max-w-3xl">Everything you use in Linnworks has a home here. The badge shows how Linnworks sells each one.</p>
        <div className="mt-10 space-y-3">
          {FEATURE_MAP.map((r) => {
            const s = SW_SOLD[r.sold];
            return (
              <div key={r.area} className="rounded-2xl border border-stone-200 bg-white overflow-hidden">
                <div className="flex items-center justify-between gap-3 px-5 py-3 border-b border-stone-100 bg-stone-50">
                  <div className="flex items-center gap-2.5 font-semibold text-stone-900"><Icon name={r.icon} size={16} className="text-orange-600" />{r.area}</div>
                  <span className={"text-[11px] font-semibold px-2 py-0.5 rounded-full whitespace-nowrap " + s.cls}>{s.label}</span>
                </div>
                <div className="grid md:grid-cols-2">
                  <div className="p-5 md:border-r border-stone-100">
                    <div className="text-[11px] uppercase tracking-wider font-semibold text-stone-500 mb-1.5">In Linnworks</div>
                    <p className="text-[14.5px] text-stone-700 leading-relaxed">{r.lw}</p>
                  </div>
                  <div className="p-5 bg-orange-50/40">
                    <div className="text-[11px] uppercase tracking-wider font-semibold text-orange-700 mb-1.5">In Unified Orders</div>
                    <p className="text-[14.5px] text-stone-800 leading-relaxed">{r.uo}</p>
                  </div>
                </div>
              </div>
            );
          })}
        </div>
      </div>
    </section>
  );
}

function SwRules() {
  return (
    <section className="py-16 bg-stone-100/60 border-y border-stone-200">
      <div className="max-w-6xl mx-auto px-6">
        <span className="text-[11px] uppercase tracking-[0.18em] font-semibold text-orange-700">Your rules come too</span>
        <h2 className="font-bold text-stone-900 tracking-tight mt-2" style={{ fontSize: "clamp(26px, 3.2vw, 40px)", letterSpacing: "-0.02em" }}>Your Linnworks rules, translated.</h2>
        <p className="text-[17px] text-stone-700 leading-relaxed mt-3 max-w-3xl">The things your Rules Engine does today map straight across. We rebuild them with you, then test each one against your real orders before it goes live.</p>
        <div className="mt-8 rounded-2xl border border-stone-200 bg-white divide-y divide-stone-100">
          {RULE_MAP.map((r) => (
            <div key={r.from} className="grid md:grid-cols-12 gap-3 md:gap-6 px-5 py-4 items-start">
              <div className="md:col-span-3 text-[14px] text-stone-600">{r.from}</div>
              <div className="md:col-span-3 font-semibold text-stone-900 flex items-center gap-2"><Icon name="arrow" size={14} className="text-orange-500 flex-none" />{r.to}</div>
              <div className="md:col-span-6 text-[14px] text-stone-700 leading-relaxed">{r.how}</div>
            </div>
          ))}
        </div>
      </div>
    </section>
  );
}

function SwMoves() {
  return (
    <section className="py-16 lg:py-20">
      <div className="max-w-6xl mx-auto px-6">
        <span className="text-[11px] uppercase tracking-[0.18em] font-semibold text-orange-700">What comes with you</span>
        <h2 className="font-bold text-stone-900 tracking-tight mt-2" style={{ fontSize: "clamp(26px, 3.2vw, 40px)", letterSpacing: "-0.02em" }}>You bring your business, not just your logins.</h2>
        <div className="grid sm:grid-cols-2 lg:grid-cols-3 gap-5 mt-10">
          {MOVES.map((m) => (
            <div key={m.title} className="rounded-2xl border border-stone-200 bg-white p-6">
              <div className="w-10 h-10 rounded-lg bg-orange-50 text-orange-600 ring-1 ring-orange-100 flex items-center justify-center"><Icon name={m.icon} size={18} /></div>
              <h3 className="font-semibold text-stone-900 mt-4">{m.title}</h3>
              <p className="text-[14.5px] text-stone-700 leading-relaxed mt-1.5">{m.body}</p>
            </div>
          ))}
        </div>
      </div>
    </section>
  );
}

function SwProcess() {
  return (
    <section className="py-16 lg:py-20 bg-stone-900 text-white" id="process">
      <div className="max-w-5xl mx-auto px-6">
        <span className="text-[11px] uppercase tracking-[0.18em] font-semibold text-orange-400">How switching works</span>
        <h2 className="font-bold tracking-tight mt-2" style={{ fontSize: "clamp(28px, 3.6vw, 46px)", lineHeight: 1.08, letterSpacing: "-0.025em" }}>Switch in a day. Keep Linnworks running as long as you like.</h2>
        <p className="text-stone-300 text-[17px] leading-relaxed mt-4 max-w-3xl">
          We add Linnworks to Unified Orders as a channel and keep the two in sync, so there is no hard cut-over and nothing to rush. Use both while you move over, and shut Linnworks down whenever you're ready.
        </p>
        <div className="flex flex-wrap gap-2 mt-6">
          {["No double orders", "No lost orders", "Syncs both ways"].map((t) => (
            <span key={t} className="text-[13px] font-semibold px-3 py-1.5 rounded-full bg-orange-500/15 text-orange-200 border border-orange-400/30">{t}</span>
          ))}
        </div>
        <div className="mt-10 divide-y divide-stone-800">
          {STEPS.map((s, i) => (
            <div key={s.title} className="grid md:grid-cols-12 gap-3 md:gap-8 py-6">
              <div className="md:col-span-1"><div className="w-9 h-9 rounded-full bg-orange-500 text-white font-bold flex items-center justify-center text-sm">{i + 1}</div></div>
              <div className="md:col-span-11">
                <div className="font-semibold text-lg">{s.title}</div>
                <p className="text-stone-300 text-[15px] leading-relaxed mt-1.5 max-w-2xl">{s.body}</p>
              </div>
            </div>
          ))}
        </div>
      </div>
    </section>
  );
}

function SwFaq() {
  return (
    <section className="py-16 lg:py-20">
      <div className="max-w-3xl mx-auto px-6">
        <h2 className="font-bold text-stone-900 tracking-tight" style={{ fontSize: "clamp(26px, 3.2vw, 38px)", letterSpacing: "-0.02em" }}>Questions from Linnworks customers</h2>
        <div className="mt-8 divide-y divide-stone-200 border-y border-stone-200">
          {FAQ.map((f) => (
            <details key={f.q} className="group py-5">
              <summary className="flex items-center justify-between gap-4 cursor-pointer list-none font-semibold text-stone-900">
                {f.q}<Icon name="plus" size={16} className="flex-none text-stone-500 group-open:rotate-45 transition-transform" />
              </summary>
              <p className="text-[15px] text-stone-700 leading-relaxed mt-3">{f.a}</p>
            </details>
          ))}
        </div>
      </div>
    </section>
  );
}

function SwCta() {
  return (
    <section className="py-16">
      <div className="max-w-4xl mx-auto px-6 text-center">
        <h2 className="font-bold text-stone-900 tracking-tight" style={{ fontSize: "clamp(28px, 3.6vw, 44px)", letterSpacing: "-0.025em" }}>Done waiting on support and bracing for the next invoice?</h2>
        <p className="text-stone-700 text-[17px] mt-3">Call us on <a href="tel:+441254948887" className="font-semibold underline">+44 1254 948887</a>, or just start a trial and add Linnworks as a channel. Most sellers are working in Unified Orders the same day, with Linnworks still running alongside until they choose to switch it off.</p>
        <div className="flex flex-wrap justify-center gap-3 mt-7">
          <a href="contact.html" className="inline-flex items-center gap-1.5 text-sm font-semibold px-5 py-3 rounded-lg bg-stone-900 text-white hover:bg-stone-800 transition-colors">Book a migration call <Icon name="arrow" size={14} /></a>
          <a href="pricing.html" className="inline-flex items-center text-sm font-semibold px-5 py-3 rounded-lg border border-stone-300 text-stone-800 hover:bg-stone-100 transition-colors">See pricing</a>
          <a href="migration.html" className="inline-flex items-center text-sm font-semibold px-5 py-3 rounded-lg border border-stone-300 text-stone-800 hover:bg-stone-100 transition-colors">How migration works</a>
        </div>
        <p className="text-[12px] text-stone-500 mt-8 max-w-2xl mx-auto leading-relaxed">
          Linnworks details are from <a className="underline" href="https://www.linnworks.com/features/ai-automation/">linnworks.com features</a>, <a className="underline" href="https://www.linnworks.com/features/multichannel-listings/">listings</a>, <a className="underline" href="https://www.linnworks.com/features/warehouse-management/">warehouse</a>, <a className="underline" href="https://www.linnworks.com/onboarding-services/">onboarding</a> and <a className="underline" href="https://www.linnworks.com/pricing/">pricing</a> pages and public review sites, November 2026. Linnworks is a trademark of its owner and is not affiliated with Unified Orders.
        </p>
      </div>
    </section>
  );
}

function SwitchLinnworksPage() {
  return (
    <>
      <SiteHeader active="migration" cta={{ label: "Book a migration call", href: "contact.html" }}
        breadcrumb={[{ label: "Migration", href: "migration.html" }, { label: "Switch from Linnworks" }]} />
      <main>
        <SwHero />
        <SwPain />
        <SwHowSold />
        <SwMap />
        <SwRules />
        <SwMoves />
        <SwProcess />
        <SwFaq />
        <SwCta />
      </main>
      <Footer />
    </>
  );
}

window.SwitchLinnworksPage = SwitchLinnworksPage;
