// TapScan Experience page (experience.html): the customer-facing side of TapScan. "Customer" is the umbrella
// word for everyone who scans; "shopper" (in store) and "consumer" (at home) are used only in the product packaging section.
//
// Explains why customer engagement matters, the touchpoints a TapScan code can go on (packaging, displays,
// signage, print, outdoor, broadcast, online ads, events), and what TapScan can adapt by language, geolocation, retail
// location, date and time and more. One section is specifically about QR codes on product packaging, which are scanned
// by shoppers in store and by consumers at home. Ends with a short Dynamic Product Information / GS1 section that
// links to the GS1 Sunrise 2027 guide (the shared footer carries the page's closing call to action). Colours are the brand gold/orange family; blue is kept for the
// Accountability side of TapScan.
//
// Facts come from copy already on the site (homepage Experience and DPI sections, the case studies). EXPERIENCE_UPDATED
// is shown on the page and read by tools/seo.js for the Article dates; EXPERIENCE_FAQ is rendered at the bottom and
// tools/seo.js turns the same array into FAQPage markup, so the markup always matches what visitors can read.
// Answer blocks: { p: "paragraph" }, { ul: [ "item" | ["Bold label", "text"] ] } or { link: ["Label", "page path"] }.

const EXPERIENCE_UPDATED = "November 16, 2026";

const EXPERIENCE_FAQ = [
  {
    q: "What is TapScan Experience?",
    a: [
      { p: "TapScan Experience is a customer engagement solution that turns QR codes and NFC tags into dynamic, measurable digital experiences. A code on your product packaging, merchandise displays, in-store signage, posters and print, billboards, TV and streaming, online and social ads, or event materials connects to digital content that you control and can update at any time." },
      { p: "When a customer scans or taps, TapScan delivers the experience that fits the moment, adapting by language, geolocation, retailer, product, and date and time. Every interaction is recorded, so brands can measure engagement, learn what works and keep improving their content and campaigns without reprinting anything." },
    ],
  },
  {
    q: "Where can TapScan QR codes and NFC tags be used?",
    a: [
      { p: "TapScan QR codes and NFC tags can go on almost any printed or physical surface, and on screens too. Anywhere a static message should become a live, measurable digital experience is a good fit:" },
      { ul: [
        ["Product packaging,", "to reach shoppers in store and consumers at home with product information, offers and support."],
        ["Merchandise displays and in-store signage,", "to guide shoppers at the shelf with retailer-specific content."],
        ["Posters, print and direct mail,", "to make newspapers, magazines and other printed media trackable."],
        ["Billboards and other out-of-home placements,", "to turn passers-by into measurable visits with location-aware content."],
        ["TV, streaming and online and social ads,", "to connect every screen to a measurable next step."],
        ["Events and trade shows,", "to capture sign-ups and leads on the spot."],
        ["Any other printed or physical surface.", ""],
      ] },
      { p: "Whatever the surface, TapScan connects the code to a dynamic experience that you can update at any time and measure by touchpoint." },
    ],
  },
  {
    q: "What is a dynamic QR code, and how is it different from a static one?",
    a: [
      { p: "A static QR code has its destination permanently built into the printed pattern, so changing the destination means printing a new code. A dynamic QR code, like a TapScan code, points to a managed link instead, so you can change where it leads, or what it shows, at any time without reprinting." },
      { p: "With TapScan, a dynamic QR code can also deliver different content depending on who scans it, such as their language, location, retailer or the time of day, and every scan is recorded for measurement. The same approach works with NFC tags, which customers activate with a simple tap." },
    ],
  },
  {
    q: "Can a QR code on product packaging serve both shoppers and consumers?",
    a: [
      { p: "Yes. A QR code on product packaging is scanned at two different moments: by shoppers in store at the purchase decision point, and by consumers at home at the point of use. With TapScan, the same code can open different content depending on the context of the scan, so you print one QR code and the experience behind it adapts." },
      { p: "A shopper at the shelf can see product comparisons, benefits, specifications, certification details and offers that help them decide. A consumer at home can see usage guidance, tutorials, care or storage information, recycling guidance and reorder options. Both interactions are recorded, so brands learn from product engagement before and after purchase." },
    ],
  },
  {
    q: "What can TapScan change based on who scans?",
    a: [
      { p: "TapScan delivers personalized, context-aware content from a single QR code or NFC tag. It can adapt the experience by:" },
      { ul: [
        ["Language,", "so each person sees content in their preferred language automatically."],
        ["Geolocation,", "so each country, region or market gets the right information and offers."],
        ["Retail location,", "so content can be specific to a retailer, a banner or even a store, including a direct path to that retailer’s product page."],
        ["Date and time,", "so content can change by day, time of day, season, launch or limited-time campaign window."],
        ["Product,", "so each product shows its own information, down to the batch when product data is connected."],
        ["Campaign and touchpoint,", "so a scan from a pack, a shelf display, signage or an event booth can each be handled differently."],
        ["And more,", "such as audience, user need or stage in the customer journey."],
      ] },
    ],
  },
  {
    q: "Do people need to download an app?",
    a: [
      { p: "No. Customers scan a TapScan QR code with their phone’s built-in camera, or tap an NFC tag with an NFC-enabled phone, and the experience opens straight in their mobile web browser. There is nothing to download or install, which keeps the path from scan to content as short as possible." },
    ],
  },
  {
    q: "Can I update the content after it is printed?",
    a: [
      { p: "Yes. A TapScan code is a dynamic QR code: it points to TapScan rather than to a fixed web page, so you can change the content or its destination at any time without reprinting packaging, displays, signage or other materials." },
      { p: "That means one printed code can support a new seasonal campaign, a limited-time offer, a new language or market, a retailer-specific promotion, updated product information or a recall notice. You edit the experience once, and every code already in market reflects the change." },
    ],
  },
  {
    q: "How do I measure engagement and know what is working?",
    a: [
      { p: "TapScan records every scan and tap, so you can measure customer engagement by product, location, language, campaign, touchpoint, time and channel. You can compare how packaging, displays, signage, print, outdoor, TV and online ads perform against each other, instead of guessing which touchpoints matter." },
      { p: "Those engagement and location signals show which touchpoints are driving results across stores, regions and audiences. Brands use them to improve content, refine campaigns and make the next experience stronger than the last." },
    ],
  },
  {
    q: "Does TapScan work with GS1 Digital Link and GS1 Sunrise 2027?",
    a: [
      { p: "Yes. TapScan creates branded QR codes using GS1 Digital Link, so the same code on a product can work at the retail checkout and open dynamic customer experiences. This is part of TapScan’s Dynamic Product Information (DPI), which connects a product’s identity to the experiences behind it." },
      { p: "GS1 Sunrise 2027 is a global retail industry initiative for checkout systems to scan 2D barcodes alongside traditional 1D barcodes. Our guide explains what it means for brands, how GS1-enabled 2D barcodes work and how to prepare your packaging." },
      { link: ["Read the GS1 Sunrise 2027 guide", "gs1-sunrise-2027.html"] },
    ],
  },
];

function exRenderBlocks(blocks) {
  return blocks.map((b, i) => b.ul ? (
    <ul key={i}>
      {b.ul.map((li, j) => (
        <li key={j}>{Array.isArray(li) ? <React.Fragment><strong>{li[0]}</strong>{" "}{li[1]}</React.Fragment> : li}</li>
      ))}
    </ul>
  ) : b.link ? (
    <p key={i}><a href={b.link[1]}>{b.link[0]}</a></p>
  ) : <p key={i}>{b.p}</p>);
}

// One collapsible question. The answer height is measured so it expands fully, and the answer stays in the page HTML
// while collapsed (data-prerender-keep keeps it in the saved crawler copy), so search engines and AI crawlers can read it.
function ExFaqItem({ q, a, i, isOpen, onToggle }) {
  const bodyRef = React.useRef(null);
  const [maxH, setMaxH] = React.useState(0);
  React.useEffect(() => {
    const el = bodyRef.current;
    if (!el) return;
    const measure = () => setMaxH(el.scrollHeight);
    measure();
    window.addEventListener("resize", measure);
    let ro;
    if ("ResizeObserver" in window) { ro = new ResizeObserver(measure); ro.observe(el); }
    return () => { window.removeEventListener("resize", measure); if (ro) ro.disconnect(); };
  }, [isOpen]);
  const handleClick = (e) => {
    if (e.target.closest && e.target.closest("a")) return;
    const sel = window.getSelection ? String(window.getSelection()) : "";
    if (sel.length > 0 && e.target.closest && e.target.closest(".ts-ex-acc-a")) return;
    onToggle();
  };
  return (
    <div className={"ts-ex-acc-item" + (isOpen ? " is-open" : "")} onClick={handleClick}>
      <h3 className="ts-ex-acc-h">
        <button type="button" className="ts-ex-acc-q" id={"ex-faq-q-" + i} aria-expanded={isOpen} aria-controls={"ex-faq-a-" + i}>
          <span className="ts-ex-acc-q-text">{q}</span>
          <span className="ts-ex-acc-icon" aria-hidden="true">+</span>
        </button>
      </h3>
      <div id={"ex-faq-a-" + i} role="region" aria-labelledby={"ex-faq-q-" + i} aria-hidden={!isOpen} data-prerender-keep className="ts-ex-acc-a" style={{
        maxHeight: isOpen ? maxH : 0, visibility: isOpen ? "visible" : "hidden",
        transition: "max-height 360ms cubic-bezier(0.2,0.8,0.2,1), visibility 0s linear " + (isOpen ? "0s" : "360ms"),
      }}>
        <div ref={bodyRef} className="ts-ex-acc-a-in">{exRenderBlocks(a)}</div>
      </div>
    </div>
  );
}

// Simple outline icons (24 x 24, drawn with the current text colour).
const EX_ICONS = {
  store: <React.Fragment><path d="M6 8h12l-1 12H7L6 8z" /><path d="M9 8a3 3 0 0 1 6 0" /></React.Fragment>,
  home: <path d="M4 11l8-7 8 7v9a1 1 0 0 1-1 1h-4v-6H9v6H5a1 1 0 0 1-1-1v-9z" />,
  phone: <React.Fragment><rect x="7" y="2.5" width="10" height="19" rx="2.2" /><line x1="11" y1="18.5" x2="13" y2="18.5" /></React.Fragment>,
  zap: <path d="M13 2.5L4.5 14H11l-1 7.5L19.5 10H13l0-7.5z" />,
  chart: <React.Fragment><line x1="5" y1="20" x2="5" y2="13" /><line x1="12" y1="20" x2="12" y2="5" /><line x1="19" y1="20" x2="19" y2="10" /></React.Fragment>,
  refresh: <React.Fragment><path d="M20 11a8 8 0 0 0-14-4.5L4 9" /><polyline points="4 4 4 9 9 9" /><path d="M4 13a8 8 0 0 0 14 4.5L20 15" /><polyline points="20 20 20 15 15 15" /></React.Fragment>,
  globe: <React.Fragment><circle cx="12" cy="12" r="9" /><path d="M3 12h18" /><path d="M12 3c3 3.4 3 14.6 0 18" /><path d="M12 3c-3 3.4-3 14.6 0 18" /></React.Fragment>,
  pin: <React.Fragment><path d="M12 21s-7-6.1-7-11a7 7 0 0 1 14 0c0 4.9-7 11-7 11z" /><circle cx="12" cy="10" r="2.5" /></React.Fragment>,
  shop: <React.Fragment><path d="M4 9l1.6-5h12.8L20 9" /><path d="M4 9v11h16V9" /><path d="M4 9a2.7 2.7 0 0 0 5.3 0 2.7 2.7 0 0 0 5.4 0A2.7 2.7 0 0 0 20 9" /><path d="M9.5 20v-5.5h5V20" /></React.Fragment>,
  clock: <React.Fragment><circle cx="12" cy="12" r="9" /><polyline points="12 7 12 12 15.5 14" /></React.Fragment>,
  tag: <React.Fragment><path d="M3.5 12.5V4.5h8l9 9-8 8-9-9z" /><circle cx="8" cy="9" r="1.3" /></React.Fragment>,
  layers: <React.Fragment><path d="M12 3.5l8.5 4.5L12 12.5 3.5 8 12 3.5z" /><path d="M3.5 12.5L12 17l8.5-4.5" /><path d="M3.5 16.5L12 21l8.5-4.5" /></React.Fragment>,
  spark: <path d="M12 3l1.9 5.4L19.5 10l-5.6 1.7L12 17.5l-1.9-5.8L4.5 10l5.6-1.6L12 3z" />,
  qr: <React.Fragment><rect x="3.5" y="3.5" width="7" height="7" rx="1" /><rect x="13.5" y="3.5" width="7" height="7" rx="1" /><rect x="3.5" y="13.5" width="7" height="7" rx="1" /><path d="M14 14h2.5v2.5H14z M18 14h2.5 M14 18h2.5 M18 18v2.5 M20.5 17v0" /></React.Fragment>,
  nfc: <React.Fragment><path d="M8 8.5a5.5 5.5 0 0 1 0 7" /><path d="M11.5 6a9.5 9.5 0 0 1 0 12" /><path d="M15 3.5a13.5 13.5 0 0 1 0 17" /></React.Fragment>,
  package: <React.Fragment><path d="M3.5 7.5L12 3l8.5 4.5v9L12 21l-8.5-4.5v-9z" /><path d="M3.5 7.5L12 12l8.5-4.5" /><line x1="12" y1="12" x2="12" y2="21" /></React.Fragment>,
  shelf: <React.Fragment><line x1="3" y1="20.5" x2="21" y2="20.5" /><rect x="5" y="10" width="5" height="10.5" rx="0.8" /><rect x="14" y="5" width="5" height="15.5" rx="0.8" /></React.Fragment>,
  sign: <React.Fragment><line x1="12" y1="3" x2="12" y2="21" /><rect x="5" y="5" width="14" height="8" rx="1.5" /><line x1="8" y1="21" x2="16" y2="21" /></React.Fragment>,
  print: <React.Fragment><rect x="5.5" y="3" width="13" height="18" rx="1.5" /><line x1="9" y1="8" x2="15" y2="8" /><line x1="9" y1="12" x2="15" y2="12" /><line x1="9" y1="16" x2="12.5" y2="16" /></React.Fragment>,
  billboard: <React.Fragment><rect x="3" y="4" width="18" height="10" rx="1.5" /><line x1="8" y1="14" x2="8" y2="20.5" /><line x1="16" y1="14" x2="16" y2="20.5" /><line x1="6.5" y1="20.5" x2="17.5" y2="20.5" /></React.Fragment>,
  tv: <React.Fragment><rect x="3" y="5" width="18" height="12" rx="2" /><line x1="8" y1="21" x2="16" y2="21" /><line x1="12" y1="17" x2="12" y2="21" /></React.Fragment>,
  ads: <React.Fragment><rect x="3" y="4" width="18" height="16" rx="2" /><line x1="3" y1="9" x2="21" y2="9" /><circle cx="6.5" cy="6.5" r="0.6" /><rect x="7" y="12" width="10" height="5" rx="1" /></React.Fragment>,
  users: <React.Fragment><circle cx="9" cy="8" r="3" /><path d="M3 20c0-3.3 2.7-6 6-6s6 2.7 6 6" /><circle cx="17" cy="9" r="2.5" /><path d="M16.2 14.1c2.8.2 4.8 2.5 4.8 5.9" /></React.Fragment>,
  tools: <path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z" />,
  pause: <React.Fragment><line x1="9" y1="5" x2="9" y2="19" /><line x1="15" y1="5" x2="15" y2="19" /></React.Fragment>,
  play: <polygon points="7 4 20 12 7 20 7 4" />,
  arrowL: <React.Fragment><line x1="21" y1="12" x2="4" y2="12" /><polyline points="10 6 4 12 10 18" /></React.Fragment>,
  arrowR: <React.Fragment><line x1="3" y1="12" x2="20" y2="12" /><polyline points="14 6 20 12 14 18" /></React.Fragment>,
};
function ExIcon({ name, size = 26, stroke = 2 }) {
  return <svg width={size} height={size} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={stroke} strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">{EX_ICONS[name]}</svg>;
}

const EX_BENEFITS = [
  { icon: "phone", title: "Reach customers in the moment", text: "When a product, display or ad catches someone’s eye, a single scan lets them act on that interest right away, instead of leaving it to memory." },
  { icon: "layers", title: "Say more than print allows", text: "A pack, poster or sign has little room to tell your story. A code opens as much detail as you need, from comparisons and specifications to instructions and offers." },
  { icon: "refresh", title: "Always up to date", text: "Update your message whenever you need to, with no reprinting, so customers always see your latest and most relevant information." },
  { icon: "chart", title: "Insight you can act on", text: "Every scan shows which touchpoints, products, places, languages and moments earn attention, so you can sharpen your content and campaigns." },
];

// What the code does on each kind of touchpoint. Wording follows the touchpoint list already on the homepage.
const EX_TOUCHPOINTS = [
  { icon: "package", title: "Product packaging", text: "Turn every pack into a direct line to the people who buy and use it, with product traceability, certifications, tutorials, reorder options and content specific to each product." },
  { icon: "shelf", title: "Merchandise displays", text: "Turn static promotions into live destinations where shoppers can discover offers, explore content and sign up for loyalty programs." },
  { icon: "sign", title: "In-store signage", text: "Give aisle and category signs the power to show retailer-specific content, adapting to language, time of day or location, all without a reprint." },
  { icon: "print", title: "Posters and print", text: "Make posters, newspapers, magazines and direct mail trackable, with clear visibility into performance and attribution." },
  { icon: "billboard", title: "Billboards and outdoor", text: "Turn high-traffic placements into measurable entry points, with location-aware content and reporting for every placement." },
  { icon: "tv", title: "TV and streaming", text: "A code on a commercial or companion screen turns a broadcast moment into a measurable interaction, tracked by time, daypart and region." },
  { icon: "ads", title: "Online and social ads", text: "Connect your campaign assets to digital and social channels and measure engagement across one connected customer journey." },
  { icon: "users", title: "Events and trade shows", text: "Capture sign-ups and leads on the spot, with booth and event materials that lead to a branded experience." },
];

const EX_CAPS = [
  { icon: "globe", title: "Language", text: "Show each person your content in their preferred language, automatically, from a single code.", eg: "A phone set to French opens the French page." },
  { icon: "pin", title: "Geolocation", text: "Tailor the experience by country, region or market, so every audience gets the right information and offers.", eg: "A scan in Toronto and a scan in Chicago open different pages." },
  { icon: "shop", title: "Retail location", text: "Deliver content built for a specific retailer, banner or branch, including a direct path to that retailer’s product page.", eg: "Shoppers at Retailer A see that retailer’s offer." },
  { icon: "clock", title: "Date and time", text: "Change your content by date, day or time of day for seasonal campaigns, launches, limited-time offers and event windows.", eg: "A holiday weekend scan shows the holiday offer." },
  { icon: "tag", title: "Product", text: "Give every product its own story. With the right product data connected, content can be specific down to the batch.", eg: "Each product opens its own dedicated page." },
  { icon: "layers", title: "Campaign and touchpoint", text: "See whether a scan came from the pack, a shelf display, signage or an event booth, and respond to each in the way that suits it best.", eg: "A booth scan collects sign-ups, while a pack scan shows product details." },
];

const EX_SCENARIOS = [
  { icon: "billboard", who: "A passer-by in Montréal", where: "Scans a billboard, phone set to French", what: "A French-language landing page with an offer for their area." },
  { icon: "tv", who: "A viewer at 8 pm", where: "Scans a code on a TV commercial", what: "The page prepared for that broadcast window, switched on and off automatically by date and time." },
  { icon: "shop", who: "A shopper at Retailer B", where: "Scans a display in the aisle", what: "That retailer’s offer and a direct link to its product page." },
  { icon: "users", who: "A visitor at an event", where: "Scans the booth poster", what: "A quick sign-up and giveaway entry, with the lead captured for follow-up." },
];

// Example dashboards shown in section 05, one per touchpoint. Every number is invented for illustration (same approach
// as the example dashboards on the case study pages) and must never be presented as real client data. Within each
// dashboard the numbers are kept consistent: each chart adds up to that dashboard's total engagements, and the insights
// are worked out from the chart values. Keep the figures looking like real counts (no tidy round numbers).
const EX_DASHBOARDS = [
  {
    id: "packaging", icon: "package", tab: "Product packaging",
    desc: "QR codes and NFC tags on product packaging, scanned in store and at home.",
    kpis: [
      { to: 9847, suf: "", dec: 0, l: "Total engagements" },
      { to: 2.3, suf: " min", dec: 1, l: "Average session length" },
      { to: 5, suf: "", dec: 0, l: "Languages served" },
      { to: 46, suf: "%", dec: 0, l: "Scanned at home, after purchase" },
    ],
    charts: [
      { kind: "line", title: "Engagements Per Week.", data: [
        { label: "W1", value: 912 }, { label: "W2", value: 1057 }, { label: "W3", value: 1148 }, { label: "W4", value: 1232 },
        { label: "W5", value: 1290 }, { label: "W6", value: 1341 }, { label: "W7", value: 1379 }, { label: "W8", value: 1488 },
      ] },
      { kind: "donut", title: "Engagements by Product.", data: [
        { label: "Product #1", value: 3562 }, { label: "Product #2", value: 2891 },
        { label: "Product #3", value: 2023 }, { label: "Product #4", value: 1371 },
      ] },
      { kind: "hbar", title: "Engagements by Language.", data: [
        { label: "English", value: 6398 }, { label: "Spanish", value: 1521 }, { label: "French", value: 1217 },
        { label: "Mandarin", value: 472 }, { label: "Portuguese", value: 239 },
      ] },
      { kind: "vbar", title: "Engagements by Retailer and at Home.", data: [
        { label: "Retailer A", value: 2013 }, { label: "Retailer B", value: 1558 }, { label: "Retailer C", value: 1046 },
        { label: "Retailer D", value: 664 }, { label: "At home", value: 4566 },
      ] },
    ],
    insights: [
      "Product #1 and Product #2 drew about two-thirds of all scans.",
      "About 46% of scans happened at home, after purchase, so the pack keeps working long after the sale.",
      "Weekly engagement grew every week of the period, from 912 scans in week 1 to 1,488 in week 8.",
    ],
  },
  {
    id: "displays", icon: "shelf", tab: "Merchandise displays",
    desc: "QR codes on in-store merchandise displays, scanned by shoppers in the aisle.",
    kpis: [
      { to: 6382, suf: "", dec: 0, l: "Total engagements" },
      { to: 1.9, suf: " min", dec: 1, l: "Average session length" },
      { to: 4, suf: "", dec: 0, l: "Retailers reporting" },
      { to: 34, suf: "%", dec: 0, l: "Went on to the retailer’s page" },
    ],
    charts: [
      { kind: "line", title: "Engagements Per Week.", data: [
        { label: "W1", value: 641 }, { label: "W2", value: 702 }, { label: "W3", value: 758 }, { label: "W4", value: 801 },
        { label: "W5", value: 836 }, { label: "W6", value: 862 }, { label: "W7", value: 884 }, { label: "W8", value: 898 },
      ] },
      { kind: "donut", title: "Engagements by Display Type.", data: [
        { label: "Floor displays", value: 2347 }, { label: "Endcap displays", value: 1994 },
        { label: "Counter displays", value: 1263 }, { label: "Shelf units", value: 778 },
      ] },
      { kind: "hbar", title: "Engagements by Retailer.", data: [
        { label: "Retailer A", value: 2218 }, { label: "Retailer B", value: 1762 },
        { label: "Retailer C", value: 1316 }, { label: "Retailer D", value: 1086 },
      ] },
      { kind: "vbar", title: "Engagements by Time of Day.", data: [
        { label: "Morning", value: 961 }, { label: "Midday", value: 1804 },
        { label: "Afternoon", value: 2097 }, { label: "Evening", value: 1520 },
      ] },
    ],
    insights: [
      "Endcap and floor displays drove about two-thirds of all scans.",
      "Afternoon was the busiest time of day, with about a third of scans.",
      "Retailer A led with about 35% of engagement, followed by Retailer B at about 28%.",
    ],
  },
  {
    id: "billboards", icon: "billboard", tab: "Billboards",
    desc: "QR codes on billboards and other out-of-home placements.",
    kpis: [
      { to: 4719, suf: "", dec: 0, l: "Total engagements" },
      { to: 1.6, suf: " min", dec: 1, l: "Average session length" },
      { to: 5, suf: "", dec: 0, l: "Cities reached" },
      { to: 37, suf: "%", dec: 0, l: "Scanned in the evening" },
    ],
    charts: [
      { kind: "line", title: "Engagements Per Week.", data: [
        { label: "W1", value: 412 }, { label: "W2", value: 483 }, { label: "W3", value: 536 }, { label: "W4", value: 579 },
        { label: "W5", value: 612 }, { label: "W6", value: 641 }, { label: "W7", value: 703 }, { label: "W8", value: 753 },
      ] },
      { kind: "donut", title: "Engagements by Placement.", data: [
        { label: "Highway", value: 1813 }, { label: "Downtown", value: 1487 },
        { label: "Transit shelters", value: 861 }, { label: "Airport", value: 558 },
      ] },
      { kind: "hbar", title: "Engagements by City.", data: [
        { label: "Toronto", value: 1426 }, { label: "Montréal", value: 1093 }, { label: "Vancouver", value: 871 },
        { label: "Calgary", value: 719 }, { label: "Ottawa", value: 610 },
      ] },
      { kind: "vbar", title: "Engagements by Time of Day.", data: [
        { label: "Morning", value: 1297 }, { label: "Midday", value: 742 },
        { label: "Evening", value: 1736 }, { label: "Night", value: 944 },
      ] },
    ],
    insights: [
      "Highway and downtown placements drove about 70% of all scans.",
      "Toronto and Montréal together produced more than half of the engagement.",
      "Evening was the peak, with about 37% of scans, followed by the morning commute at about 27%.",
    ],
  },
  {
    id: "tv", icon: "tv", tab: "TV commercials",
    desc: "QR codes on TV commercials, scanned during and after the broadcast.",
    kpis: [
      { to: 7263, suf: "", dec: 0, l: "Total engagements" },
      { to: 9, suf: " pm", dec: 0, l: "Peak hour of engagement" },
      { to: 5, suf: "", dec: 0, l: "Regions reached" },
      { to: 1.8, suf: " min", dec: 1, l: "Average session length" },
    ],
    charts: [
      { kind: "line", title: "Engagements by Hour of Broadcast.", data: [
        { label: "6 pm", value: 582 }, { label: "7 pm", value: 1074 }, { label: "8 pm", value: 1893 },
        { label: "9 pm", value: 2138 }, { label: "10 pm", value: 1019 }, { label: "11 pm", value: 557 },
      ] },
      { kind: "donut", title: "Engagements by Commercial.", data: [
        { label: "30-second spot", value: 3147 }, { label: "15-second spot A", value: 2486 }, { label: "15-second spot B", value: 1630 },
      ] },
      { kind: "hbar", title: "Engagements by Region.", data: [
        { label: "Ontario", value: 2284 }, { label: "Quebec", value: 1861 }, { label: "British Columbia", value: 1392 },
        { label: "Alberta", value: 1043 }, { label: "Atlantic", value: 683 },
      ] },
      { kind: "vbar", title: "Engagements by Day of Week.", data: [
        { label: "Mon", value: 817 }, { label: "Tue", value: 871 }, { label: "Wed", value: 926 }, { label: "Thu", value: 1042 },
        { label: "Fri", value: 1214 }, { label: "Sat", value: 1458 }, { label: "Sun", value: 935 },
      ] },
    ],
    insights: [
      "Engagement peaked at 9 pm. The 8 pm and 9 pm hours together produced about 56% of all scans.",
      "The 30-second commercial drove about 43% of engagement.",
      "Saturday was the strongest day, with about 20% of the week’s scans.",
    ],
  },
];


const EX_STEPS = [
  { n: "01", title: "Engage", text: "A customer scans the QR code or taps the NFC tag on any touchpoint and lands on content suited to the moment." },
  { n: "02", title: "Evaluate", text: "Every interaction feeds real-time engagement and location data back to you, so you can see what is working." },
  { n: "03", title: "Evolve", text: "Use those signals to refine your content and make every next campaign sharper than the last, with no reprinting." },
];

// Button tracking. Every button and link on this page records an outbound hit against the visit's campaign hit
// (components/campaign-hit.js), labelled "TapScan Experience: <where on the page>: <what was clicked>". The label is
// what a dashboard chart matches on, so keep the wording stable. A visit with no campaign hit yet queues it.
function exTrack(label) {
  try { if (window.tsRecordOutboundHit) window.tsRecordOutboundHit("TapScan Experience: " + label); } catch (err) {}
}

// "On this page" navigator in the hero. Labels follow each section's eyebrow, in page order.
const EX_TOC = [
  ["touchpoints", "How it works"],
  ["why", "Why it matters"],
  ["capabilities", "Capabilities"],
  ["packaging", "On product packaging"],
  ["results", "Example dashboard"],
  ["how-it-works", "The process"],
  ["dpi-gs1", "Dynamic Product Information"],
  ["faq", "FAQ"],
];

// Eased scroll to a page position (used by the "On this page" links). Longer trips take a little longer but never
// more than about a second. Any scroll input from the visitor cancels it. With reduced motion it jumps straight there.
let exScrollRaf = 0;
function exSmoothScrollTo(top) {
  if (exScrollRaf) cancelAnimationFrame(exScrollRaf);
  const from = window.pageYOffset, dist = top - from;
  const reduce = window.matchMedia && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
  if (reduce || Math.abs(dist) < 2) { window.scrollTo(0, top); return; }
  const duration = Math.min(1000, Math.max(500, 350 + Math.abs(dist) * 0.18));
  const t0 = performance.now();
  const events = ["wheel", "touchstart", "keydown", "mousedown"];
  const cleanup = () => events.forEach((ev) => window.removeEventListener(ev, stop));
  const stop = () => { if (exScrollRaf) cancelAnimationFrame(exScrollRaf); exScrollRaf = 0; cleanup(); };
  events.forEach((ev) => window.addEventListener(ev, stop, { passive: true }));
  const tick = (now) => {
    const p = Math.min(1, (now - t0) / duration);
    const eased = p < 0.5 ? 4 * p * p * p : 1 - Math.pow(-2 * p + 2, 3) / 2; // easeInOutCubic
    window.scrollTo(0, from + dist * eased);
    if (p < 1) exScrollRaf = requestAnimationFrame(tick); else { exScrollRaf = 0; cleanup(); }
  };
  exScrollRaf = requestAnimationFrame(tick);
}

// Counts up from 0 to `to` the first time it scrolls into view (same easing and speed as the 79% on the GS1 guide). The
// final figure is laid out invisibly underneath so the layout never shifts while counting. With reduced motion (or no
// IntersectionObserver) it just shows the final figure. The animated copy is aria-hidden; the real figure is also in the
// page as visually hidden text, so screen readers and crawlers read the final number, never a half-counted one.
const exFmt = (v, dec) => (dec ? v.toFixed(dec) : Math.round(v).toLocaleString("en-US"));
function ExCountUp({ to, pre = "", suf = "", dec = 0, duration = 1600 }) {
  const ref = React.useRef(null);
  const [val, setVal] = React.useState(0);
  React.useEffect(() => {
    const el = ref.current;
    if (!el) return;
    const reduce = window.matchMedia && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
    if (reduce || !("IntersectionObserver" in window)) { setVal(to); return; }
    const k = Math.pow(10, dec);
    let raf = 0, started = false;
    const run = () => {
      const t0 = performance.now();
      const tick = (now) => {
        const p = Math.min(1, (now - t0) / duration);
        setVal(Math.round(to * k * (1 - Math.pow(1 - p, 3))) / k);
        if (p < 1) raf = requestAnimationFrame(tick);
      };
      raf = requestAnimationFrame(tick);
    };
    const io = new IntersectionObserver((entries) => {
      if (!started && entries.some((e) => e.isIntersecting)) { started = true; io.disconnect(); run(); }
    }, { threshold: 0.6 });
    io.observe(el);
    return () => { io.disconnect(); if (raf) cancelAnimationFrame(raf); };
  }, [to, dec, duration]);
  return (
    <span ref={ref} className="ts-ex-count" aria-hidden="true">
      <span style={{ visibility: "hidden" }}>{pre}{exFmt(to, dec)}{suf}</span>
      <span style={{ position: "absolute", left: 0, top: 0 }}>{pre}{exFmt(val, dec)}{suf}</span>
    </span>
  );
}

// Example dashboard with one tab per touchpoint. All four panels stay in the page (the inactive ones are hidden), so
// search engines and AI crawlers can read them; the charts are the same interactive ones used on the case study pages.
function ExDashTabs() {
  const [active, setActive] = React.useState(0);
  const tabRefs = React.useRef([]);
  // Phones: the charts scale down with the card, so give them a shorter card (no big gaps above and below).
  const [compact, setCompact] = React.useState(false);
  React.useEffect(() => {
    if (!window.matchMedia) return;
    const mq = window.matchMedia("(max-width: 900px)");
    const on = () => setCompact(mq.matches);
    on();
    if (mq.addEventListener) mq.addEventListener("change", on); else mq.addListener(on);
    return () => { if (mq.removeEventListener) mq.removeEventListener("change", on); else mq.removeListener(on); };
  }, []);
  const pick = (i, focus) => {
    setActive(i);
    exTrack("Example dashboard: " + EX_DASHBOARDS[i].tab);
    if (focus && tabRefs.current[i]) tabRefs.current[i].focus();
  };
  const onKey = (e, i) => {
    const n = EX_DASHBOARDS.length;
    let next = -1;
    if (e.key === "ArrowRight" || e.key === "ArrowDown") next = (i + 1) % n;
    else if (e.key === "ArrowLeft" || e.key === "ArrowUp") next = (i - 1 + n) % n;
    else if (e.key === "Home") next = 0;
    else if (e.key === "End") next = n - 1;
    if (next >= 0) { e.preventDefault(); pick(next, true); }
  };
  return (
    <div className="ts-ex-dash">
      <p className="ts-ex-dash-label ts-ex-dash-choose">Choose a dashboard</p>
      <div className="ts-ex-dtabs" role="tablist" aria-label="Example dashboards by touchpoint">
        {EX_DASHBOARDS.map((d, i) => (
          <button key={d.id} type="button" role="tab" id={"ex-dtab-" + i} aria-controls={"ex-dpanel-" + i} aria-selected={i === active} tabIndex={i === active ? 0 : -1}
            className={"ts-ex-dtab" + (i === active ? " is-on" : "")} ref={(el) => { tabRefs.current[i] = el; }}
            onClick={() => pick(i, false)} onKeyDown={(e) => onKey(e, i)}>
            <ExIcon name={d.icon} size={20} stroke={2} /><span>{d.tab}</span>
          </button>
        ))}
      </div>
      <p className="ts-ex-dash-note">The visualized data shown here is for illustrative purposes only and does not reflect actual client performance metrics or proprietary information.</p>
      <hr className="ts-ex-dtabs-rule" />
      {EX_DASHBOARDS.map((d, i) => (
        <div key={d.id} role="tabpanel" id={"ex-dpanel-" + i} aria-labelledby={"ex-dtab-" + i} hidden={i !== active} className="ts-ex-dpanel">
          <p className="ts-ex-dash-label">Headline metrics</p>
          <div className="ts-ex-kpis">
            {d.kpis.map((k) => (
              <div className="ts-ex-kpi" key={k.l}>
                <div className="ts-ex-kpi-v"><span className="ts-ex-sr">{k.to.toLocaleString("en-US", { minimumFractionDigits: k.dec })}{k.suf}</span><ExCountUp to={k.to} suf={k.suf} dec={k.dec} /></div>
                <div className="ts-ex-kpi-l">{k.l}</div>
              </div>
            ))}
          </div>
          <p className="ts-ex-dash-label">Performance breakdown</p>
          <div className="ts-ex-charts">
            {window.TSChartCard && window.TSChart ? d.charts.map((c) => (
              <window.TSChartCard key={c.title} title={c.title} height={compact ? 205 : 320}>
                <window.TSChart kind={c.kind} type="experience" data={c.data} />
              </window.TSChartCard>
            )) : null}
          </div>
          <p className="ts-ex-dash-label">Report insights (example)</p>
          <div className="ts-ex-insights">
            <ul>
              {d.insights.map((line, n) => (
                <li key={n}><span className="ts-ex-insight-n">{n + 1}</span><span>{line}</span></li>
              ))}
            </ul>
          </div>
        </div>
      ))}
    </div>
  );
}

function ExHeading({ id, eyebrow, children, center, noDot }) {
  const isQuestion = noDot || (typeof children === "string" && /\?$/.test(children));
  return (
    <React.Fragment>
      {eyebrow ? <p className={"ts-ex-eyebrow" + (center ? " is-center" : "")}>{eyebrow}</p> : null}
      <h2 id={id} className={"ts-ex-h2" + (center ? " is-center" : "")}>{children}{isQuestion ? null : <span style={{ color: "#FFB855" }}>.</span>}</h2>
    </React.Fragment>
  );
}

// A row of cards that shows three at a time (two on tablets, one on phones) and slides one card per step. It is a plain
// scrollable row with scroll snapping, so every card stays in the page HTML for search engines and AI crawlers, swiping
// works on touch screens, and the arrow buttons, dots and left/right keys just move the scroll position.
function ExCarousel({ items, label, autoplay = true }) {
  const trackRef = React.useRef(null);
  const [pos, setPos] = React.useState({ index: 0, last: 0 });
  const stepOf = (el) => {
    const cards = el.children;
    return cards.length > 1 ? cards[1].offsetLeft - cards[0].offsetLeft : (cards[0] ? cards[0].offsetWidth : 1);
  };
  const measure = React.useCallback(() => {
    const el = trackRef.current;
    if (!el) return;
    const step = stepOf(el) || 1;
    const maxLeft = Math.max(0, el.scrollWidth - el.clientWidth);
    const last = Math.max(0, Math.round(maxLeft / step));
    const index = Math.min(last, Math.max(0, Math.round(el.scrollLeft / step)));
    setPos((p) => (p.index === index && p.last === last ? p : { index, last }));
  }, []);
  React.useEffect(() => {
    const el = trackRef.current;
    if (!el) return;
    let raf = 0;
    const onScroll = () => { if (raf) cancelAnimationFrame(raf); raf = requestAnimationFrame(measure); };
    measure();
    el.addEventListener("scroll", onScroll, { passive: true });
    window.addEventListener("resize", measure);
    return () => { el.removeEventListener("scroll", onScroll); window.removeEventListener("resize", measure); if (raf) cancelAnimationFrame(raf); };
  }, [measure]);
  const goTo = (i) => {
    const el = trackRef.current;
    if (!el) return;
    const reduce = window.matchMedia && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
    el.scrollTo({ left: Math.max(0, i) * stepOf(el), behavior: reduce ? "auto" : "smooth" });
  };
  // The arrows never stop: Next on the last card goes back to the first, and Previous on the first goes to the last.
  const wrapIndex = (dir) => (dir > 0 ? (pos.index >= pos.last ? 0 : pos.index + 1) : (pos.index <= 0 ? pos.last : pos.index - 1));
  const move = (dir, how) => { exTrack(label + ": " + how); goTo(wrapIndex(dir)); };

  // Automatic sliding: one card every few seconds, looping back to the start after the last one. It stops while the
  // visitor hovers, uses the keyboard, touches or scrolls the row (and for a few seconds afterwards), while the row is
  // off screen or the tab is hidden. It never starts for people who prefer reduced motion.
  const reducedMotion = typeof window !== "undefined" && window.matchMedia && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
  const playing = autoplay && !reducedMotion;
  const rootRef = React.useRef(null);
  const posRef = React.useRef(pos);
  const goRef = React.useRef(goTo);
  const hold = React.useRef({ hover: false, focus: false, visible: true, until: 0 });
  posRef.current = pos;
  goRef.current = goTo;
  React.useEffect(() => {
    const root = rootRef.current;
    if (!root || !("IntersectionObserver" in window)) return;
    const io = new IntersectionObserver((entries) => { hold.current.visible = entries.some((e) => e.isIntersecting); }, { threshold: 0.35 });
    io.observe(root);
    return () => io.disconnect();
  }, []);
  React.useEffect(() => {
    if (!playing) return;
    const id = setInterval(() => {
      const h = hold.current;
      if (h.hover || h.focus || !h.visible || document.hidden || Date.now() < h.until) return;
      const p = posRef.current;
      goRef.current(p.index >= p.last ? 0 : p.index + 1);
    }, 5500);
    return () => clearInterval(id);
  }, [playing]);
  const touched = () => { hold.current.until = Date.now() + 9000; };

  const onKey = (e) => {
    touched();
    if (e.key === "ArrowRight") { e.preventDefault(); goTo(wrapIndex(1)); }
    else if (e.key === "ArrowLeft") { e.preventDefault(); goTo(wrapIndex(-1)); }
  };
  return (
    <div className="ts-ex-car" role="region" aria-roledescription="carousel" aria-label={label} ref={rootRef}
      onMouseEnter={() => { hold.current.hover = true; }} onMouseLeave={() => { hold.current.hover = false; }}
      onPointerDown={touched} onTouchStart={touched} onWheel={touched}
      onFocus={(e) => { let kb = true; try { kb = e.target.matches(":focus-visible"); } catch (err) {} hold.current.focus = kb; }}
      onBlur={() => { hold.current.focus = false; }}>
      <div className="ts-ex-car-track" ref={trackRef} tabIndex={0} onKeyDown={onKey} aria-live={playing ? "off" : "polite"} aria-label={label + " (use the left and right arrow keys to move)"}>
        {items.map((t) => (
          <div className={"ts-ex-card ts-ex-tp" + (t.eg ? " ts-ex-capcard" : "")} key={t.title}>
            {t.eg ? <div className="ts-ex-big"><ExIcon name={t.icon} size={34} /></div> : <div className="ts-ex-icon"><ExIcon name={t.icon} /></div>}
            <h3>{t.title}</h3>
            <p>{t.text}</p>
            {t.eg ? <div className="ts-ex-eg2"><b>For example</b>{t.eg}</div> : null}
          </div>
        ))}
      </div>
      <div className="ts-ex-car-ctrl">
        <button type="button" className="ts-ex-car-btn" aria-label="Previous" onClick={() => move(-1, "Previous")}><ExIcon name="arrowL" size={20} stroke={2.6} /></button>
        <div className="ts-ex-car-dots">
          {Array.from({ length: pos.last + 1 }).map((_, i) => (
            <button type="button" key={i} className={"ts-ex-car-dot" + (i === pos.index ? " is-on" : "")} aria-label={"Show card " + (i + 1)} aria-current={i === pos.index ? "true" : undefined} onClick={() => goTo(i)} />
          ))}
        </div>
        <button type="button" className="ts-ex-car-btn" aria-label="Next" onClick={() => move(1, "Next")}><ExIcon name="arrowR" size={20} stroke={2.6} /></button>
      </div>
    </div>
  );
}

// "What TapScan can adapt": a list of options on the left and the chosen one explained on the right. All the panels stay
// in the page HTML (only the chosen one is shown), so the text is still there for search engines and AI crawlers.
function ExCapExplorer({ items }) {
  const query = "(max-width: 720px)";
  const [phone, setPhone] = React.useState(() => typeof window !== "undefined" && !!window.matchMedia && window.matchMedia(query).matches);
  React.useEffect(() => {
    if (!window.matchMedia) return;
    const mq = window.matchMedia(query);
    const on = () => setPhone(mq.matches);
    on();
    if (mq.addEventListener) mq.addEventListener("change", on); else mq.addListener(on);
    return () => { if (mq.removeEventListener) mq.removeEventListener("change", on); else mq.removeListener(on); };
  }, []);
  return phone ? <ExCarousel items={items} label="Capabilities" autoplay={false} /> : <ExCapTabs items={items} />;
}

function ExCapTabs({ items }) {
  const [active, setActive] = React.useState(0);
  const tabsRef = React.useRef([]);
  const choose = (i, focus) => {
    if (i !== active) exTrack("Capabilities: " + items[i].title);
    setActive(i);
    if (focus && tabsRef.current[i]) tabsRef.current[i].focus();
  };
  const onKey = (e) => {
    const n = items.length;
    if (e.key === "ArrowDown" || e.key === "ArrowRight") { e.preventDefault(); choose((active + 1) % n, true); }
    else if (e.key === "ArrowUp" || e.key === "ArrowLeft") { e.preventDefault(); choose((active + n - 1) % n, true); }
    else if (e.key === "Home") { e.preventDefault(); choose(0, true); }
    else if (e.key === "End") { e.preventDefault(); choose(n - 1, true); }
  };
  return (
    <div className="ts-ex-explorer">
      <div className="ts-ex-tablist" role="tablist" aria-label="What TapScan can adapt" aria-orientation="vertical" onKeyDown={onKey}>
        {items.map((c, i) => (
          <button type="button" key={c.title} role="tab" id={"ex-tab-" + i} aria-selected={i === active} aria-controls={"ex-panel-" + i}
            tabIndex={i === active ? 0 : -1} ref={(el) => { tabsRef.current[i] = el; }}
            className={"ts-ex-tab" + (i === active ? " is-on" : "")} onClick={() => choose(i, false)}>
            <span className="ts-ex-icon"><ExIcon name={c.icon} size={22} /></span>
            <span>{c.title}</span>
          </button>
        ))}
      </div>
      <div className="ts-ex-panels">
        {items.map((c, i) => (
          <div key={c.title} role="tabpanel" id={"ex-panel-" + i} aria-labelledby={"ex-tab-" + i} className={"ts-ex-tabpanel" + (i === active ? " is-on" : "")}>
            <div className="ts-ex-big"><ExIcon name={c.icon} size={40} /></div>
            <h3>{c.title}</h3>
            <p className="ts-ex-lead2">{c.text}</p>
            <div className="ts-ex-eg2"><b>For example</b>{c.eg}</div>
          </div>
        ))}
      </div>
    </div>
  );
}

const EX_CAL = <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.4" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><rect x="3" y="4.5" width="18" height="16" rx="2" /><line x1="3" y1="9.5" x2="21" y2="9.5" /><line x1="8" y1="2.5" x2="8" y2="6.5" /><line x1="16" y1="2.5" x2="16" y2="6.5" /></svg>;
const EX_ARROW = <span className="ts-cta-arrow" aria-hidden="true" style={{ display: "inline-flex" }}><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.6" strokeLinecap="round" strokeLinejoin="round"><line x1="4" y1="12" x2="20" y2="12" /><polyline points="14 6 20 12 14 18" /></svg></span>;

function ExperiencePage() {
  const [openFaq, setOpenFaq] = React.useState(-1);
  const onDemo = () => window.open("https://calendly.com/katie-aotc/20min", "_blank", "noopener");
  const onLogin = () => window.open("https://tapscan-platform.vercel.app/", "_blank", "noopener");
  const onContact = () => { window.location.href = "contact.html"; };
  const onLegal = (label) => {
    const slug = { "Privacy": "privacy", "Terms & Conditions": "terms", "Acceptable Use": "acceptable-use" }[label];
    window.location.href = "legal/" + slug + ".html";
  };

  // Header and footer (shared components): one listener records any button or link clicked in them, labelled by its own
  // text. It listens in the capture phase so the hit is sent before a click that leaves the page does its work.
  React.useEffect(() => {
    const onClick = (e) => {
      const el = e.target && e.target.closest ? e.target.closest("a, button") : null;
      if (!el) return;
      const zone = el.closest(".ts-nav") ? "Header" : el.closest("footer") ? "Footer" : null;
      if (!zone) return;
      const text = (el.textContent || "").replace(/\s+/g, " ").trim() || el.getAttribute("aria-label") || "Logo";
      exTrack(zone + ": " + text);
    };
    document.addEventListener("click", onClick, true);
    return () => document.removeEventListener("click", onClick, true);
  }, []);

  // "On this page" links: glide to the section (heading just below the fixed nav) instead of jumping.
  const goToSection = (e, id) => {
    const el = document.getElementById(id);
    if (!el) return;
    e.preventDefault();
    const nav = document.querySelector(".ts-nav");
    const navH = nav ? nav.getBoundingClientRect().height : 72;
    const anchor = el.querySelector(".ts-ex-wrap") || el;
    exSmoothScrollTo(Math.max(0, Math.round(anchor.getBoundingClientRect().top + window.pageYOffset - navH - 28)));
    try { history.replaceState(null, "", "#" + id); } catch (err) {}
  };

  // Scroll reveal. Each element below gets data-rv="0" (hidden) and flips to "1" the first time it scrolls into view,
  // which plays the rise-and-fade in the CSS. Items in a group (cards, steps, rows, questions) are staggered. Skipped
  // for reduced motion or if IntersectionObserver is missing, so content is never left hidden.
  React.useLayoutEffect(() => {
    const root = document.querySelector(".ts-ex");
    const reduce = window.matchMedia && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
    if (!root || reduce || !("IntersectionObserver" in window)) return;
    const els = Array.from(root.querySelectorAll([
      ".ts-ex-hero .ts-ex-hero-logo", ".ts-ex-hero .ts-ex-h1", ".ts-ex-hero .ts-ex-sub", ".ts-ex-hero .ts-ex-actions",
      "main .ts-ex-wrap > .ts-ex-eyebrow", "main .ts-ex-wrap > .ts-ex-h2", "main .ts-ex-dpi-title > .ts-ex-eyebrow", "main .ts-ex-dpi-title > .ts-ex-h2", "main .ts-ex-wrap > p", "main .ts-ex-wrap > .ts-ex-actions",
      "main .ts-ex-wrap > .ts-ex-car", "main .ts-ex-rows > *", "main .ts-ex-moments > *", "main .ts-ex-wrap > .ts-ex-explorer", "main .ts-ex-scenarios > *",
      "main .ts-ex-steps > *", "main .ts-ex-acc > .ts-ex-acc-item", "main .ts-ex-wrap > .ts-ex-gs1", "main .ts-ex-wrap > .ts-ex-notebox", "main .ts-ex-wrap > .ts-ex-dash",
    ].join(",")));
    const groupSel = ".ts-ex-rows > *, .ts-ex-moments > *, .ts-ex-scenarios > *, .ts-ex-steps > *, .ts-ex-acc-item";
    const counts = new Map();
    els.forEach((el) => {
      let d = 0;
      if (el.matches(".ts-ex-hero *")) {
        d = el.matches(".ts-ex-hero-logo") ? 0 : el.matches(".ts-ex-h1") ? 90 : el.matches(".ts-ex-sub") ? 180 : 270;
      } else if (el.matches(groupSel)) {
        const n = counts.get(el.parentElement) || 0;
        counts.set(el.parentElement, n + 1);
        d = Math.min(n, 6) * 100;
      } else if (el.matches(".ts-ex-h2")) d = 70;
      else if (el.matches("p") && el.previousElementSibling && el.previousElementSibling.matches(".ts-ex-h2")) d = 140;
      el.style.setProperty("--rv-d", d + "ms");
      el.setAttribute("data-rv", "0");
    });
    const io = new IntersectionObserver((entries) => {
      entries.forEach((e) => { if (e.isIntersecting) { e.target.setAttribute("data-rv", "1"); io.unobserve(e.target); } });
    }, { threshold: 0.12, rootMargin: "0px 0px -6% 0px" });
    els.forEach((el) => io.observe(el));
    return () => io.disconnect();
  }, []);

  return (
    <div className="ts-ex" style={{ fontFamily: "Montserrat", background: "#fff", color: "#212331" }}>
      <style>{`
        .ts-ex { overflow-x: hidden; overflow-x: clip; }
        .ts-ex a { color: #B4540A; }
        .ts-ex a:hover { color: #8A3F00; }
        .ts-ex-hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; text-align: center; padding: 236px 24px 140px; background: linear-gradient(180deg, #D45F0A 0%, #E5740F 48%, #F29A2C 100%); }
        .ts-ex-hero::before, .ts-ex-hero::after { content: ""; position: absolute; inset: -20%; z-index: 0; pointer-events: none; }
        .ts-ex-hero::before { background: radial-gradient(closest-side at 28% 32%, rgba(255,236,196,0.32) 0%, rgba(255,236,196,0) 60%), radial-gradient(closest-side at 72% 82%, rgba(255,200,110,0.40) 0%, rgba(255,200,110,0) 65%); background-size: 140% 140%, 140% 140%; background-repeat: no-repeat; animation: tsExDriftA 28s ease-in-out infinite alternate; }
        .ts-ex-hero::after { background: radial-gradient(closest-side at 80% 25%, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 65%), radial-gradient(closest-side at 20% 78%, rgba(190,70,0,0.28) 0%, rgba(190,70,0,0) 65%); background-size: 160% 160%, 160% 160%; background-repeat: no-repeat; animation: tsExDriftB 36s ease-in-out infinite alternate; mix-blend-mode: soft-light; }
        .ts-ex-hero > * { position: relative; z-index: 1; }
        @keyframes tsExDriftA { 0% { background-position: 0% 0%, 100% 100%; } 50% { background-position: 40% 20%, 60% 80%; } 100% { background-position: 100% 100%, 0% 0%; } }
        @keyframes tsExDriftB { 0% { background-position: 100% 0%, 0% 100%; } 50% { background-position: 60% 40%, 40% 60%; } 100% { background-position: 0% 100%, 100% 0%; } }
        @media (prefers-reduced-motion: reduce) { .ts-ex-hero::before, .ts-ex-hero::after { animation: none; } }
        .ts-ex-hero-main { display: flex; align-items: center; gap: 56px; max-width: 1160px; margin: 0 auto; text-align: left; }
        .ts-ex-hero-logo { flex: 0 0 340px; }
        .ts-ex-hero-logo img { display: block; width: 100%; height: auto; }
        .ts-ex-hero-vr { align-self: stretch; width: 1.5px; flex: none; background: rgba(255,255,255,0.42); }
        .ts-ex-hero-copy { flex: 1 1 0; min-width: 0; }
        .ts-ex-h1 { font-weight: 900; line-height: 1.12; margin: 0; letter-spacing: -0.02em; color: #fff; font-size: clamp(28px, 3.1vw, 40px); text-wrap: balance; text-shadow: 3px 3px 4px rgba(0,0,0,0.25), -3px -3px 4px rgba(0,0,0,0.25); }
        .ts-ex-sub { font-weight: 500; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6; margin: 20px 0 0; max-width: 620px; text-wrap: pretty; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
        .ts-ex-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; justify-content: center; }
        .ts-ex-actions.is-left { justify-content: flex-start; }
        .ts-ex-hero .ts-ex-actions { margin-top: 30px; }
        .ts-ex-subhero { background: #FFF6EA; border-bottom: 1px solid #F6E3C4; padding: 26px 24px; }
        .ts-ex-subhero-in { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; gap: 32px; }
        .ts-ex-toc-head { flex: none; }
        .ts-ex-toc-title { margin: 0; font-weight: 800; font-size: 17px; line-height: 1.3; color: #212331; }
        .ts-ex-toc-hint { display: block; margin-top: 3px; font-weight: 500; font-size: 12.5px; line-height: 1.3; color: #7A6F60; }
        .ts-ex-subhero ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
        .ts-ex-subhero a { display: inline-block; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid #F0DDBF; font-weight: 600; font-size: 13.5px; line-height: 1.2; text-decoration: none; color: #7F3F00; transition: background 160ms, border-color 160ms, color 160ms, transform 160ms; }
        .ts-ex-subhero a:hover { background: #FFB855; border-color: #E99623; color: #212331; text-decoration: none; transform: translateY(-2px); }
        .ts-ex-subhero a:focus-visible { outline: 3px solid #212331; outline-offset: 3px; }

        .ts-ex .ts-ex-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 15px 28px; font-family: Montserrat, sans-serif; font-weight: 700; font-size: 15px; line-height: 1.3; border-radius: 10px; cursor: pointer; text-decoration: none !important; }
        .ts-ex .ts-ex-btn:hover, .ts-ex .ts-ex-btn:focus { text-decoration: none !important; }
        .ts-ex .ts-ex-btn svg, .ts-ex .ts-ex-btn .ts-cta-arrow { flex: none; }
        .ts-ex .ts-ex-btn span:not(.ts-cta-arrow) { text-wrap: balance; }
        .ts-ex .ts-ex-btn:focus-visible { outline: 3px solid #212331; outline-offset: 3px; }
        .ts-ex .ts-ex-btn.ts-cta-btn-primary { background: #FFB855; color: #1C2250; border: 2px solid #FFB855; box-shadow: 0 6px 18px rgba(0,0,0,0.18); }
        .ts-ex .ts-ex-btn.ts-cta-btn-primary:hover { background: #E99623 !important; border-color: #E99623 !important; color: #1C2250 !important; box-shadow: 0 18px 38px rgba(233,150,35,0.38); }
        .ts-ex .ts-ex-btn.ts-cta-btn-secondary { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.85); }
        .ts-ex .ts-ex-btn.ts-cta-btn-secondary:hover { background: rgba(255,255,255,0.18) !important; border-color: #fff !important; color: #fff !important; box-shadow: 0 18px 38px rgba(0,0,0,0.25); }
        .ts-ex .ts-ex-btn.is-light { background: #fff; color: #212331; border: 2px solid #fff; box-shadow: 0 6px 18px rgba(0,0,0,0.18); }
        .ts-ex .ts-ex-btn.is-light:hover { background: #FFE9C2 !important; border-color: #FFE9C2 !important; color: #212331 !important; box-shadow: 0 18px 38px rgba(0,0,0,0.25); }
        .ts-ex .ts-ex-btn.is-outline { background: transparent; color: #7F3F00; border: 2px solid #E99623; box-shadow: none; }
        .ts-ex .ts-ex-btn.is-outline:hover { background: #FFE9C2 !important; border-color: #E99623 !important; color: #7F3F00 !important; box-shadow: 0 14px 30px rgba(233,150,35,0.22); }
        .ts-ex .ts-ex-btn.is-dark { background: #212331; color: #fff; border: 2px solid #212331; box-shadow: 0 6px 18px rgba(0,0,0,0.18); }
        .ts-ex .ts-ex-btn.is-dark:hover { background: #3A3D52 !important; border-color: #3A3D52 !important; color: #fff !important; box-shadow: 0 18px 38px rgba(0,0,0,0.28); }

        .ts-ex-wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
        .ts-ex-sec { padding: 96px 0; background: #fff; }
        .ts-ex-sec.is-tint { background: #FFF6EA; }
        .ts-ex-sec + .ts-ex-sec { border-top: 1px solid #F6E3C4; }
        .ts-ex section#faq.ts-ex-sec { padding-left: 0 !important; padding-right: 0 !important; }
        .ts-ex-eyebrow { display: inline-block; margin: 0 0 20px !important; font-weight: 700 !important; font-size: 13.5px !important; line-height: 1 !important; letter-spacing: 0.01em; color: #9A4B00; background: #FFE9C2; border: 1px solid #FFD58A; border-radius: 999px; padding: 8px 16px; }
        .ts-ex-sec.is-tint .ts-ex-eyebrow { background: #fff; border-color: #FFD58A; }
        .ts-ex-eyebrow.is-center { display: block; width: fit-content; margin-left: auto !important; margin-right: auto !important; }
        .ts-ex-h2 { position: relative; font-weight: 900; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 28px; padding-bottom: 22px; color: #212331; }
        .ts-ex-h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #FFB855, #E99623); }
        .ts-ex-h2.is-center { text-align: center; }
        .ts-ex-h2.is-center::after { left: 50%; transform: translateX(-50%); }
        .ts-ex-wrap > p { margin: 0 0 18px; font-weight: 500; font-size: 17px; line-height: 1.75; color: #212331; }
        .ts-ex-wrap > h2 + p { font-size: 19px; font-weight: 600; line-height: 1.7; max-width: 820px; }
        .ts-ex-wrap > h2.is-center + p { margin-left: auto; margin-right: auto; text-align: center; }

        .ts-ex-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: #FFE9C2; color: #9A4B00; border: 1px solid #FFD58A; flex: none; }

        .ts-ex-card { background: #fff; border: 1px solid #F0DDBF; border-top: 4px solid #FFB855; border-radius: 16px; padding: 28px 24px 30px; box-shadow: 0 6px 20px rgba(138,75,0,0.06); }
        .ts-ex-sec.is-tint .ts-ex-card { border-color: #F6E3C4; border-top-color: #FFB855; }
        .ts-ex-card .ts-ex-icon { margin-bottom: 20px; }
        .ts-ex-card h3 { margin: 0 0 10px; font-weight: 800; font-size: 18px; line-height: 1.3; color: #212331; }
        .ts-ex-card p { margin: 0; font-weight: 500; font-size: 15.5px; line-height: 1.65; color: #3A3C4A; }

        .ts-ex-moments { display: grid; grid-template-columns: 1fr 236px 1fr; gap: 0; align-items: stretch; margin-top: 48px; }
        .ts-ex-moment { background: #fff; border: 1px solid #F0DDBF; border-radius: 20px; padding: 34px 32px 36px; box-shadow: 0 8px 26px rgba(138,75,0,0.08); }
        .ts-ex-moment.is-store { border-top: 5px solid #FFB855; }
        .ts-ex-moment.is-home { border-top: 5px solid #E99623; }
        .ts-ex-moment-tag { display: inline-block; margin: 0 0 18px; font-weight: 700; font-size: 13px; line-height: 1; padding: 7px 14px; border-radius: 999px; background: #FFE9C2; color: #9A4B00; border: 1px solid #FFD58A; }
        .ts-ex-moment.is-home .ts-ex-moment-tag { background: #FFD9A8; border-color: #F5BE72; }
        .ts-ex-moment-head { display: flex; align-items: center; gap: 16px; margin: 0 0 8px; }
        @media (min-width: 901px) { .ts-ex-h3-l { display: block; } }
        .ts-ex-moment h3 { margin: 0; font-weight: 900; font-size: 26px; line-height: 1.15; letter-spacing: -0.01em; color: #212331; }
        .ts-ex-moment-rule { border: 0; border-top: 1.5px solid #F0DDBF; margin: 20px 0 18px; }
        .ts-ex-moment .ts-ex-lead { margin: 0 0 20px; font-weight: 600; font-size: 17px; line-height: 1.5; color: #7F3F00; }
        .ts-ex ul.ts-ex-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
        .ts-ex ul.ts-ex-list li { position: relative; padding-left: 24px; font-weight: 500; font-size: 16px; line-height: 1.65; color: #212331; }
        .ts-ex ul.ts-ex-list li::before { content: ""; position: absolute; left: 3px; top: 10px; width: 8px; height: 8px; border-radius: 999px; background: #FFB855; }
        .ts-ex-moment.is-home ul.ts-ex-list li::before { background: #E99623; }
        .ts-ex-hub { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 18px; padding: 0 27px; text-align: center; }
        .ts-ex-hub-row { display: flex; align-items: center; gap: 6px; color: #E99623; }
        .ts-ex-hub-pill { width: 84px; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 9px; border-radius: 999px; color: #212331; background: linear-gradient(160deg, #FFD08A 0%, #FFB855 55%, #E99623 100%); box-shadow: 0 12px 30px rgba(233,150,35,0.38); flex: none; }
        .ts-ex-hub-or { display: flex; align-items: center; gap: 5px; width: 100%; font-weight: 800; font-size: 11px; letter-spacing: 0.02em; line-height: 1; color: #5A2D00; }
        .ts-ex-hub-or::before, .ts-ex-hub-or::after { content: ""; flex: 1; height: 1px; background: rgba(90,45,0,0.35); }
        .ts-ex-hub-label { margin: 0; font-weight: 800; font-size: 14px; line-height: 1.3; color: #7F3F00; }
        .ts-ex-hub-label small { display: block; margin-top: 3px; font-weight: 600; font-size: 12.5px; color: #9A4B00; }
        .ts-ex-wrap > p.ts-ex-note { margin: 48px auto 0; max-width: 780px; text-align: center; font-weight: 500; font-size: 16px; line-height: 1.7; color: #3A3C4A; }
        .ts-ex-wrap > p.ts-ex-note + p.ts-ex-note { margin-top: 14px; }
        .ts-ex-rule { border: 0; border-top: 1.5px solid #EBCFA0; margin: 56px 0 44px; }
        .ts-ex-notebox { display: flex; align-items: center; gap: 32px; padding: 30px 36px; border-radius: 18px; background: #FFE9C2; border: 1px solid #FFD58A; }
        .ts-ex-notebox-ico { flex: none; display: grid; place-items: center; color: #1C2250; }
        .ts-ex-notebox-ico svg { display: block; }
        .ts-ex-notebox-vr { align-self: stretch; width: 1.5px; flex: none; background: rgba(154,75,0,0.28); }
        .ts-ex-notebox-text { flex: 1 1 0; min-width: 0; }
        .ts-ex-notebox-text p { margin: 0; font-weight: 500; font-size: 16.5px; line-height: 1.7; color: #2E2A24; }
        .ts-ex-notebox-text p + p { margin-top: 12px; }

        .ts-ex-car { margin-top: 36px; }
        .ts-ex-car-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 6px 4px 30px; margin: 0 -4px; }
        .ts-ex-car-track::-webkit-scrollbar { display: none; }
        .ts-ex-car-track:focus-visible { outline: 3px solid #212331; outline-offset: -3px; border-radius: 16px; }
        .ts-ex-car-track > .ts-ex-card { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; }
        .ts-ex-tp { padding: 26px 24px 28px; }
        .ts-ex-tp h3 { font-size: 18px; }
        .ts-ex-tp p { font-size: 15.5px; }
        .ts-ex-car-ctrl { display: flex; align-items: center; justify-content: center; gap: 16px; }
        .ts-ex-car-btn { flex: none; }
        @media (max-width: 380px) { .ts-ex-car-ctrl { gap: 8px; } .ts-ex-car-dot { width: 20px; } }
        .ts-ex-car-btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; padding: 0; background: #fff; color: #7F3F00; border: 2px solid #E99623; cursor: pointer; transition: background 180ms ease, color 180ms ease, transform 180ms ease, opacity 180ms ease; }
        .ts-ex-car-btn:hover:not(:disabled) { background: #FFB855; color: #212331; transform: scale(1.06); }
        .ts-ex-car-btn:focus-visible { outline: 3px solid #212331; outline-offset: 3px; }
        .ts-ex-car-btn:disabled { opacity: 0.35; cursor: default; }
        .ts-ex .ts-ex-car .ts-ex-car-track > .ts-ex-card:nth-child(even) { background: #FFF6EA; border-color: #F6E3C4; border-top-color: #FFB855; }
        .ts-ex .ts-ex-car .ts-ex-car-track > .ts-ex-card:nth-child(even) .ts-ex-icon { background: #fff; border-color: #F6E3C4; }
        .ts-ex-car-dots { display: flex; align-items: center; gap: 2px; }
        .ts-ex-car-dot { position: relative; width: 24px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
        .ts-ex-car-dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-radius: 999px; background: #F2CF98; transform: translate(-50%, -50%); transition: width 220ms cubic-bezier(0.2,0.8,0.2,1), background 220ms ease; }
        .ts-ex-car-dot.is-on::after { width: 24px; background: #E99623; }
        .ts-ex-car-dot:focus-visible { outline: 3px solid #212331; outline-offset: -2px; border-radius: 8px; }
        .ts-ex-more { margin-top: 40px; display: flex; align-items: center; gap: 18px; padding: 22px 26px; border-radius: 16px; background: linear-gradient(120deg, #FFE9C2 0%, #FFF6EA 100%); border: 1px solid #FFD58A; }
        .ts-ex-more p { margin: 0 !important; font-weight: 600 !important; font-size: 16px !important; line-height: 1.6 !important; color: #3A3C4A; }
        .ts-ex-more strong { color: #212331; }

        .ts-ex-explorer + .ts-ex-more { margin-top: 88px; }
        .ts-ex-sub-h { margin: 64px 0 8px; padding-top: 64px; border-top: 1px solid #F0DDBF; font-weight: 800; font-size: 22px; line-height: 1.25; color: #212331; text-align: center; }
        .ts-ex-wrap > p.ts-ex-sub-p { margin: 0 auto 30px; max-width: 640px; text-align: center; font-weight: 500; font-size: 15.5px; line-height: 1.6; color: #5F5A52; }

        .ts-ex-count { position: relative; display: inline-block; font-variant-numeric: tabular-nums; }
        .ts-ex-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
        .ts-ex-proof-cta { margin-top: 40px; }
        .ts-ex-dash { margin-top: 36px; padding: 40px; border-radius: 22px; background: #FFF6EA; border: 1px solid #F6E3C4; color: #1C2250; }
        .ts-ex-dash .ts-ex-dash-note { margin: 0 0 22px; max-width: 760px; font-style: italic; font-weight: 500; font-size: 13px; line-height: 1.55; color: rgba(28,34,80,0.62); }
        .ts-ex-dash .ts-ex-dash-label { margin: 0 0 12px; font-weight: 700; font-size: 14px; line-height: 1.4; color: rgba(28,34,80,0.7); }
        .ts-ex-dtabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
        .ts-ex-dtabs-rule { border: 0; border-top: 1.5px solid #EBCFA0; margin: 0 0 26px; }
        .ts-ex-dtab { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 999px; border: 1px solid #F0DDBF; background: #fff; color: #7F3F00; font-family: inherit; font-weight: 700; font-size: 14px; line-height: 1.2; cursor: pointer; transition: background 160ms, border-color 160ms, box-shadow 160ms; }
        @media (hover: hover) { .ts-ex-dtab:hover { border-color: #E8B972; } }
        .ts-ex-dtab:focus-visible { outline: 3px solid #212331; outline-offset: 2px; }
        .ts-ex-dtab.is-on { background: #FFB855; border-color: #E99623; color: #212331; box-shadow: 0 6px 16px rgba(233,150,35,0.28); }
        .ts-ex-dtab svg { flex: none; }
        .ts-ex-dpanel[hidden] { display: none; }
        .ts-ex-dpanel { animation: tsExFade 300ms ease; }
        .ts-ex-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px; }
        .ts-ex-kpi { background: #fff; border-radius: 12px; padding: 20px; }
        .ts-ex-kpi-v { font-weight: 900; font-size: 32px; line-height: 1.05; letter-spacing: -0.01em; color: #1C2250; }
        .ts-ex-kpi-l { margin-top: 6px; font-weight: 600; font-size: 12px; color: #7A7D8F; }
        .ts-ex-charts > div > div[style*="overflow"] { overflow: visible !important; }
        .ts-ex-charts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 28px; }
        .ts-ex-insights { background: rgba(138,75,0,0.05); border: 1px solid rgba(138,75,0,0.14); border-radius: 12px; padding: 22px 26px; }
        .ts-ex-insights ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
        .ts-ex-insights li { display: flex; align-items: flex-start; gap: 14px; font-weight: 500; font-size: 14px; line-height: 1.55; color: #1C2250; }
        .ts-ex-insights li::before { display: none; }
        .ts-ex-insight-n { flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 999px; display: grid; place-items: center; background: #FFB855; color: #1C2250; font-weight: 900; font-size: 12px; }


        .ts-ex-gs1 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; align-items: stretch; margin-top: 8px; padding: 40px 40px 42px; border-radius: 22px; background: #FFF6EA; border: 1px solid #F6E3C4; border-left: 6px solid #FFB855; box-shadow: 0 10px 30px rgba(138,75,0,0.08); }
        .ts-ex-gs1 p { margin: 0 0 16px; font-weight: 500; font-size: 16.5px; line-height: 1.75; color: #212331; }
        .ts-ex-gs1 > div:first-child { align-self: center; padding-right: 40px; }
        @keyframes tsExDpiLift { 0%, 32%, 100% { transform: none; filter: none; } 10%, 22% { transform: translateY(-3px) scale(1.04); filter: drop-shadow(0 6px 10px rgba(233,150,35,0.35)); } }
        @keyframes tsExDpiShine { 0% { transform: translateX(-120%); } 24%, 100% { transform: translateX(120%); } }
        @keyframes tsExDpiArrow { 0%, 34%, 100% { transform: none; } 12%, 24% { transform: translateX(5px); } }
        .ts-ex-dpi-head { display: flex; align-items: center; gap: 40px; margin-bottom: 36px; }
        .ts-ex-dpi-title { flex: 1 1 0; min-width: 0; }
        .ts-ex-dpi-title .ts-ex-h2 { margin-bottom: 0; }
        .ts-ex-dpi-vr { align-self: stretch; width: 1.5px; flex: none; background: #F3D9AE; }
        .ts-ex-dpi-art { display: flex; align-items: center; gap: 18px; flex: none; padding: 0 12px; }
        .ts-ex-dpi-circle { position: relative; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; flex: none; animation: tsExDpiLift 5s ease-in-out var(--d, 0s) infinite backwards; }
        .ts-ex-dpi-circle img { display: block; width: 100%; height: 100%; }
        .ts-ex-dpi-circle::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,0.9) 50%, transparent 65%); transform: translateX(-120%); animation: tsExDpiShine 5s ease-in-out var(--d, 0s) infinite backwards; }
        .ts-ex-dpi-arrow { display: block; width: 22px; height: 22px; flex: none; animation: tsExDpiArrow 5s ease-in-out var(--d, 0s) infinite backwards; }
        .ts-ex-dpi-tipwrap { position: relative; flex: none; cursor: default; border-radius: 50%; outline: none; }
        .ts-ex-dpi-tipwrap:focus-visible { outline: 3px solid #212331; outline-offset: 4px; }
        .ts-ex-dpi-tip { position: absolute; bottom: calc(100% + 14px); left: 50%; transform: translate(-50%, 6px); opacity: 0; pointer-events: none; z-index: 20; display: flex; flex-direction: column; align-items: center; gap: 3px; background: #212331; color: #fff; padding: 11px 16px; border-radius: 10px; white-space: nowrap; text-align: center; box-shadow: 0 10px 28px rgba(33,35,49,0.3); transition: opacity 180ms ease, transform 180ms cubic-bezier(0.2,0.8,0.2,1); }
        .ts-ex-dpi-tip::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -7px; border: 7px solid transparent; border-top-color: #212331; }
        .ts-ex-dpi-tip strong { font-size: 13px; font-weight: 800; line-height: 1.3; }
        .ts-ex-dpi-tip span { font-size: 12px; font-weight: 500; line-height: 1.3; color: rgba(255,255,255,0.78); }
        .ts-ex-dpi-tipwrap:hover .ts-ex-dpi-tip, .ts-ex-dpi-tipwrap:focus-visible .ts-ex-dpi-tip { opacity: 1; transform: translate(-50%, 0); }
        .ts-ex-dpi-tipwrap:last-child .ts-ex-dpi-tip { left: auto; right: 0; transform: translate(0, 6px); }
        .ts-ex-dpi-tipwrap:last-child .ts-ex-dpi-tip::after { left: auto; right: 34px; margin-left: 0; }
        .ts-ex-dpi-tipwrap:last-child:hover .ts-ex-dpi-tip, .ts-ex-dpi-tipwrap:last-child:focus-visible .ts-ex-dpi-tip { transform: none; }
        @media (prefers-reduced-motion: reduce) { .ts-ex-dpi-circle, .ts-ex-dpi-circle::after, .ts-ex-dpi-arrow { animation: none !important; } }
        .ts-ex-gs1 .ts-ex-actions { margin-top: 24px; }
        .ts-ex-chips { display: flex; flex-direction: column; gap: 14px; padding-left: 40px; border-left: 1px solid #EBCFA0; }
        .ts-ex-chip { flex: 1; display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 16px; background: #fff; border: 1px solid #F6E3C4; box-shadow: 0 4px 14px rgba(138,75,0,0.05); color: #212331; }
        .ts-ex-chip strong { display: block; margin-bottom: 5px; font-weight: 800; font-size: 16.5px; line-height: 1.3; color: #212331; }
        .ts-ex-chip small { display: block; font-weight: 500; font-size: 14px; line-height: 1.55; color: #4A463F; }
        @media (min-width: 1000px) { .ts-ex-h2-l { display: block; } }

        .ts-ex-acc { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
        .ts-ex-acc-item { background: #fff; border: 1.465px solid #F0DDBF; border-radius: 11.723px; padding: 18px 22px; cursor: pointer; transition: background 180ms cubic-bezier(0.2,0.8,0.2,1), border-color 180ms, box-shadow 180ms; }
        .ts-ex-acc-item.is-open { border-color: #F0C98A; box-shadow: 0 6px 18px rgba(233,150,35,0.16); }
        .ts-ex-acc-h { margin: 0; font: inherit; }
        .ts-ex-acc-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: #212331; text-align: left; cursor: pointer; border-radius: 6px; }
        .ts-ex-acc-q:focus-visible { outline: 3px solid #212331; outline-offset: 6px; }
        .ts-ex-acc-q-text { font-weight: 700; font-size: 17px; line-height: 1.4; color: #212331; }
        .ts-ex-acc-icon { width: 28px; height: 28px; border-radius: 999px; flex-shrink: 0; display: grid; place-items: center; font-weight: 900; font-size: 16px; line-height: 1; background: #FFB855; color: #212331; transition: transform 180ms cubic-bezier(0.2,0.8,0.2,1), background 180ms, color 180ms; }
        .ts-ex-acc-a { overflow: hidden; }
        .ts-ex-acc-a-in { padding-top: 6px; }
        .ts-ex-acc-a-in p { margin: 14px 0 0; font-weight: 500; font-size: 15.5px; line-height: 1.7; color: #212331; }
        .ts-ex-acc-a-in ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
        .ts-ex-acc-a-in li { position: relative; padding-left: 22px; font-weight: 500; font-size: 15.5px; line-height: 1.65; }
        .ts-ex-acc-a-in li::before { content: ""; position: absolute; left: 3px; top: 10px; width: 7px; height: 7px; border-radius: 999px; background: #FFB855; }
        .ts-ex-acc-item.is-open .ts-ex-acc-icon { background: #212331; color: #fff; transform: rotate(45deg); }
        @media (hover: hover) {
          .ts-ex-acc-item:hover { border-color: #E8B972; }
          .ts-ex-acc-item.is-open:hover { border-color: #F0C98A; }
        }
        @media (prefers-reduced-motion: reduce) { .ts-ex-acc-item, .ts-ex-acc-icon, .ts-ex-acc-a { transition: none !important; } }

        .ts-ex-rows { display: flex; flex-direction: column; gap: 28px; margin-top: 40px; }
        .ts-ex-row { display: grid; grid-template-columns: 54px minmax(190px, 270px) 1fr; column-gap: 26px; align-items: center; background: #fff; border: 1px solid #F0DDBF; border-left: 5px solid #FFB855; border-radius: 14px; padding: 22px 28px; box-shadow: 0 6px 20px rgba(138,75,0,0.06); transition: transform 250ms cubic-bezier(0.2,0.8,0.2,1), box-shadow 250ms ease; }
        .ts-ex-row:nth-child(even) { border-left-color: #E99623; }
        @media (hover: hover) { .ts-ex-row:hover { transform: translateX(4px); box-shadow: 0 10px 26px rgba(138,75,0,0.12); } }
        .ts-ex-row h3 { margin: 0; font-weight: 800; font-size: 19px; line-height: 1.3; color: #212331; }
        .ts-ex-row p { margin: 0; font-weight: 500; font-size: 16px; line-height: 1.65; color: #3A3C4A; }

        .ts-ex-explorer { display: grid; grid-template-columns: 340px 1fr; gap: 28px; margin-top: 40px; align-items: stretch; }
        .ts-ex-tablist { display: flex; flex-direction: column; gap: 10px; }
        .ts-ex-tab { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 12px 16px; border: 1.5px solid #F0DDBF; border-radius: 14px; background: #fff; font-family: Montserrat, sans-serif; font-weight: 700; font-size: 16px; line-height: 1.3; color: #212331; cursor: pointer; transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
        .ts-ex-tab .ts-ex-icon { width: 42px; height: 42px; border-radius: 12px; }
        @media (hover: hover) { .ts-ex-tab:hover { border-color: #E8B972; } }
        .ts-ex-tab:focus-visible { outline: 3px solid #212331; outline-offset: 2px; }
        .ts-ex-tab.is-on { background: #FFE9C2; border-color: #E99623; box-shadow: 0 8px 20px rgba(233,150,35,0.2); }
        .ts-ex-tab.is-on .ts-ex-icon { background: #FFB855; color: #212331; border-color: #E99623; }
        .ts-ex-panels { display: flex; }
        .ts-ex-tabpanel { display: none; flex: 1; flex-direction: column; justify-content: flex-start; background: linear-gradient(135deg, #FFF6EA 0%, #FFE9C2 100%); border: 1px solid #F6E3C4; border-radius: 20px; padding: 44px; }
        .ts-ex-tabpanel.is-on { display: flex; animation: tsExFade 380ms ease; }
        .ts-ex-big { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 26px; color: #212331; background: linear-gradient(145deg, #FFD08A 0%, #FFB855 60%, #E99623 100%); box-shadow: 0 10px 24px rgba(233,150,35,0.35); }
        .ts-ex-capcard { display: flex; flex-direction: column; }
        .ts-ex-capcard .ts-ex-big { width: 64px; height: 64px; margin-bottom: 18px; flex: none; }
        .ts-ex-capcard h3 { margin: 0 0 10px; font-size: 22px; }
        .ts-ex-capcard p { flex: 0 0 auto; margin: 0 0 22px; font-size: 16px; line-height: 1.65; }
        .ts-ex-capcard .ts-ex-eg2 { margin-top: auto; max-width: none; background: #FFF3E0; }
        .ts-ex .ts-ex-car .ts-ex-car-track > .ts-ex-capcard:nth-child(even) .ts-ex-eg2 { background: #fff; }
        .ts-ex-tabpanel h3 { margin: 0 0 14px; font-weight: 900; font-size: 34px; line-height: 1.15; letter-spacing: -0.01em; color: #212331; }
        .ts-ex-tabpanel p.ts-ex-lead2 { margin: 0; max-width: 620px; margin-bottom: 32px; font-weight: 500; font-size: 20px; line-height: 1.7; color: #3A3C4A; }
        .ts-ex-eg2 { margin-top: auto; max-width: 620px; padding: 18px 22px; background: #fff; border-radius: 12px; border-left: 5px solid #E99623; font-weight: 600; font-size: 18px; line-height: 1.55; color: #212331; }
        .ts-ex-eg2 b { display: block; margin-bottom: 4px; font-weight: 800; font-size: 14px; color: #9A4B00; }
        @keyframes tsExFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
        @media (prefers-reduced-motion: reduce) { .ts-ex-dpanel { animation: none; } .ts-ex-steps::after { animation: none; background: none; } .ts-ex-step::after { animation: none !important; background: none !important; } .ts-ex-tabpanel.is-on { animation: none; } .ts-ex-row, .ts-ex-tab { transition: none; } }

        .ts-ex-scenarios { display: flex; flex-direction: column; border: 1px solid #F0DDBF; border-radius: 16px; overflow: hidden; background: #fff; }
        .ts-ex-scn { display: grid; grid-template-columns: minmax(0, 360px) 46px minmax(0, 1fr); column-gap: 40px; align-items: center; padding: 34px 32px; background: #fff; border-top: 1px solid #F6E3C4; }
        .ts-ex-scn:first-child { border-top: 0; }
        .ts-ex-scn:nth-child(odd) { background: #FFFBF4; }
        .ts-ex-scn-who { display: flex; align-items: center; gap: 18px; }
        .ts-ex-scn-ico { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #FFE9C2; color: #9A4B00; }
        .ts-ex-scn:nth-child(1) .ts-ex-scn-ico { background: #FFF1D9; }
        .ts-ex-scn:nth-child(2) .ts-ex-scn-ico { background: #FFE4B5; }
        .ts-ex-scn:nth-child(3) .ts-ex-scn-ico { background: #FFD58A; }
        .ts-ex-scn:nth-child(4) .ts-ex-scn-ico { background: #FFC260; }
        .ts-ex-scn .ts-ex-who { margin: 0; font-weight: 800; font-size: 17px; line-height: 1.3; color: #212331; }
        .ts-ex-scn .ts-ex-where { margin: 4px 0 0; font-weight: 600; font-size: 14px; line-height: 1.4; color: #9A4B00; }
        .ts-ex-scn .ts-ex-arrow { display: grid; place-items: center; justify-self: center; color: #E99623; }
        .ts-ex-scn .ts-ex-what { margin: 0; font-weight: 500; font-size: 16px; line-height: 1.6; color: #212331; }


        .ts-ex-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 52px; position: relative; }
        .ts-ex-steps::before, .ts-ex-steps::after { content: ""; position: absolute; top: 30px; left: calc(100% / 6); right: calc(100% / 6); height: 4px; border-radius: 4px; }
        .ts-ex-steps::before { background: linear-gradient(90deg, #FFB855, #E99623); }
        .ts-ex-steps::after { background: linear-gradient(90deg, rgba(201,90,0,0) 0%, rgba(201,90,0,0.95) 50%, rgba(201,90,0,0) 100%); filter: drop-shadow(0 0 6px rgba(233,150,35,0.9)); background-size: 24% 100%; background-repeat: no-repeat; background-position: -30% 0; animation: tsExBurst 5s ease-in-out infinite; }
        @keyframes tsExBurst { 0% { background-position: -30% 0; } 30%, 100% { background-position: 130% 0; } }
        @keyframes tsExBurstSeg1 { 0% { background-position: 0 -45%; } 15%, 100% { background-position: 0 145%; } }
        @keyframes tsExBurstSeg2 { 0%, 15% { background-position: 0 -45%; } 30%, 100% { background-position: 0 145%; } }
        @keyframes tsExBurstV { 0% { background-position: 0 -30%; } 30%, 100% { background-position: 0 130%; } }
        .ts-ex-step { position: relative; text-align: center; padding: 0 8px; }
        .ts-ex-step .ts-ex-n { position: relative; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 26px; font-weight: 900; font-size: 22px; color: #212331; background: linear-gradient(145deg, #FFD08A, #FFB855); box-shadow: 0 0 0 7px #FFF6EA, 0 8px 18px rgba(233,150,35,0.3); }
        .ts-ex-step h3 { margin: 0 0 10px; font-weight: 900; font-size: 22px; color: #212331; }
        .ts-ex-step p { margin: 0 auto; max-width: 320px; font-weight: 500; font-size: 15.5px; line-height: 1.65; color: #3A3C4A; }

        [data-rv="0"] { opacity: 0; }
        [data-rv="1"] { animation: tsExRise 800ms cubic-bezier(0.2, 0.8, 0.2, 1) backwards; animation-delay: var(--rv-d, 0ms); }
        .ts-ex-h2[data-rv="0"]::after { width: 0; }
        .ts-ex-h2[data-rv="1"]::after { animation: tsExBar 900ms cubic-bezier(0.2, 0.8, 0.2, 1) backwards; animation-delay: calc(var(--rv-d, 0ms) + 280ms); }
        @keyframes tsExRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
        @keyframes tsExBar { from { width: 0; } to { width: 56px; } }
        @media print { [data-rv] { opacity: 1 !important; animation: none !important; } }

        @media (max-width: 1000px) {
          .ts-ex-car-track > .ts-ex-card { flex-basis: calc((100% - 20px) / 2); }
        }
        @media (max-width: 900px) {
          .ts-ex-moments { grid-template-columns: 1fr; gap: 0; }
          .ts-ex-wrap > h2 + p { font-size: 18px; line-height: 1.65; }
          .ts-ex-h1 { font-size: clamp(30px, 4.6vw, 38px); }
          .ts-ex-sub { font-size: 17px; }
          .ts-ex-hero-main { flex-direction: column; align-items: flex-start; gap: 26px; }
          .ts-ex-hero-logo { flex: none; width: 240px; }
          .ts-ex-hero-vr { align-self: auto; width: 100%; height: 1.5px; }
          .ts-ex-hero-copy { width: 100%; }
          .ts-ex-kpis { grid-template-columns: repeat(2, 1fr); }
          .ts-ex-charts > div { padding: 14px 12px 12px !important; }
          .ts-ex-charts div[style*="italic"] { font-size: 11.5px !important; }
          .ts-ex-charts svg text[font-size="9"], .ts-ex-charts svg text[font-size="10"] { font-size: 11.5px; }
          .ts-ex-hub { flex-direction: column; gap: 10px; padding: 22px 0; }
          .ts-ex-hub-row svg { transform: rotate(90deg); }
          .ts-ex-gs1 { grid-template-columns: 1fr; padding: 32px 26px 34px; }
          .ts-ex-gs1 > div:first-child { padding-right: 0; }
          .ts-ex-dpi-head { flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 28px; }
          .ts-ex-dpi-vr { display: none; }
          .ts-ex-dpi-art { padding: 0; }
          .ts-ex-dpi-tip { bottom: auto; top: calc(100% + 14px); }
          .ts-ex-dpi-tip::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: #212331; }
          .ts-ex-dpi-tipwrap:first-child .ts-ex-dpi-tip { left: 0; transform: translate(0, -6px); }
          .ts-ex-dpi-tipwrap:first-child .ts-ex-dpi-tip::after { left: 36px; }
          .ts-ex-dpi-tipwrap:first-child:hover .ts-ex-dpi-tip, .ts-ex-dpi-tipwrap:first-child:focus-visible .ts-ex-dpi-tip { transform: none; }
          .ts-ex-dpi-tipwrap:last-child .ts-ex-dpi-tip { transform: translate(0, -6px); }
          .ts-ex-dpi-tipwrap:last-child .ts-ex-dpi-tip::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: #212331; }
          .ts-ex-dpi-tipwrap:last-child:hover .ts-ex-dpi-tip, .ts-ex-dpi-tipwrap:last-child:focus-visible .ts-ex-dpi-tip { transform: none; }
          .ts-ex-chips { padding-left: 0; border-left: 0; margin-top: 32px; padding-top: 32px; border-top: 1px solid #EBCFA0; }
        }
        @media (max-width: 720px) {
          .ts-ex-hero { padding: 116px 20px 44px; text-align: center; }
          .ts-ex-gs1 { gap: 0; padding-bottom: 30px; }
          .ts-ex-gs1 > div:first-child { display: contents; }
          .ts-ex-gs1 > div:first-child > p { order: 1; }
          .ts-ex-gs1 .ts-ex-chips { order: 2; margin: 8px 0 0; padding: 0; border: 0; }
          .ts-ex-gs1 .ts-ex-actions { order: 3; margin-top: 28px; }
          .ts-ex-dpi-head { gap: 72px; margin-bottom: 84px; align-items: stretch; }
          .ts-ex-dpi-art { align-self: center; justify-content: center; }
          .ts-ex-scn .ts-ex-arrow { display: none; }
          .ts-ex-scn { row-gap: 14px; }
          .ts-ex-hero-main { align-items: center; gap: 26px; }
          .ts-ex-hero-logo { width: min(300px, 78vw); }
          .ts-ex-hero-copy { text-align: center; }
          .ts-ex-sub { margin: 18px auto 0; font-size: 16.5px; line-height: 1.6; }
          .ts-ex-hero .ts-ex-actions { margin-top: 26px; gap: 12px; }
          .ts-ex-charts { grid-template-columns: 1fr; }
          .ts-ex-wrap > h2 + p { font-size: 17px; }
          .ts-ex-h1 { font-size: clamp(25px, 7.3vw, 32px); line-height: 1.14; }
          .ts-ex-kpi-l { font-size: 13px; }
          .ts-ex-dash .ts-ex-dash-note { font-size: 13px; }
          .ts-ex-chip { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; }
          .ts-ex-subhero { padding: 22px 20px; }
          .ts-ex-subhero-in { flex-direction: column; align-items: flex-start; gap: 14px; }
          .ts-ex-subhero a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; font-size: 13px; }
              .ts-ex-wrap { padding: 0 20px; }
          .ts-ex-sec { padding: 64px 0; }
          .ts-ex-car-track > .ts-ex-card { flex-basis: 100%; }
          .ts-ex-moment { padding: 28px 22px 30px; }
          .ts-ex-dash { padding: 20px 12px; }
          .ts-ex-dtabs { display: flex; flex-direction: column; gap: 8px; }
          .ts-ex-dtab { width: 100%; justify-content: flex-start; padding: 12px 18px; font-size: 14.5px; min-height: 48px; text-align: left; }
            .ts-ex-kpi { padding: 16px; }
          .ts-ex-kpi-v { font-size: 26px; }
          .ts-ex-insights { padding: 18px; }
          .ts-ex-rule { margin: 40px 0 32px; }
          .ts-ex-notebox { flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px 22px; }
          .ts-ex-notebox-vr { align-self: auto; width: 100%; height: 1.5px; }
          @media (min-width: 901px) { .ts-ex-h3-l { display: block; } }
        .ts-ex-moment h3 { font-size: 23px; }
          .ts-ex-acc-item { padding: 16px 18px; }
          .ts-ex-acc-q-text { font-size: 16px; }
          .ts-ex-more { flex-direction: column; align-items: flex-start; }
          .ts-ex-actions { flex-direction: column; align-items: stretch; }
          .ts-ex .ts-ex-btn { width: 100%; text-align: center; }
          .ts-ex-sub-h { margin-top: 44px; padding-top: 44px; }
          .ts-ex-explorer + .ts-ex-more { margin-top: 64px; }
        }
        @media (max-width: 1000px) {
        }
        @media (max-width: 900px) {
          .ts-ex-row { grid-template-columns: 54px 1fr; row-gap: 12px; padding: 20px 20px; }
          .ts-ex-row p { grid-column: 1 / -1; }
          .ts-ex-explorer { grid-template-columns: 1fr; gap: 18px; }
          .ts-ex-tablist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
          .ts-ex-tab { gap: 10px; padding: 10px 12px; font-size: 14.5px; }
          .ts-ex-tab .ts-ex-icon { width: 36px; height: 36px; border-radius: 10px; flex: none; }
          .ts-ex-tabpanel { padding: 30px 26px; }
          .ts-ex-tabpanel h3 { font-size: 24px; }
          .ts-ex-tabpanel p.ts-ex-lead2 { font-size: 17px; }
          .ts-ex-scn { grid-template-columns: 1fr; row-gap: 10px; padding: 26px 20px; }
          .ts-ex-scn .ts-ex-arrow { justify-self: start; }
          .ts-ex-scn .ts-ex-arrow svg { width: 24px; height: 24px; transform: rotate(90deg); }
          .ts-ex-steps { grid-template-columns: 1fr; gap: 30px; margin-top: 40px; }
          .ts-ex-steps::before, .ts-ex-steps::after { display: none; }
          .ts-ex-step:not(:last-child)::before, .ts-ex-step:not(:last-child)::after { content: ""; position: absolute; left: 30px; top: 32px; width: 4px; height: calc(100% + 30px); border-radius: 4px; }
          .ts-ex-step:not(:last-child)::before { background: linear-gradient(180deg, #FFB855, #E99623); }
          .ts-ex-step:not(:last-child)::after { background: linear-gradient(180deg, rgba(201,90,0,0) 0%, rgba(201,90,0,0.95) 50%, rgba(201,90,0,0) 100%); filter: drop-shadow(0 0 6px rgba(233,150,35,0.9)); background-size: 100% 45%; background-repeat: no-repeat; background-position: 0 -45%; }
          .ts-ex-step:nth-child(1)::after { animation: tsExBurstSeg1 5s ease-in-out infinite; }
          .ts-ex-step:nth-child(2)::after { animation: tsExBurstSeg2 5s ease-in-out infinite; }
          .ts-ex-step { text-align: left; padding: 0 0 0 88px; }
          .ts-ex-step .ts-ex-n { position: absolute; left: 0; top: 0; margin: 0; }
          .ts-ex-step p { margin: 0; max-width: none; }
        }
        @media (max-width: 720px) {
          }
        @media (max-width: 480px) { .ts-ex-tablist { grid-template-columns: 1fr; } }
        @media (hover: none) { .ts-ex-acc-q { min-height: 44px; } .ts-ex-tab { min-height: 44px; } .ts-ex-dtab { min-height: 44px; } }
        @media (hover: none), (max-width: 1024px) { .ts-ex-car-dot { height: 44px; } }
        @media (max-width: 1024px) { .ts-ex-subhero a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; } }
      `}</style>

      <window.TSHeader variant="onPhoto"
        onNav={(id) => { if (id === "top") window.location.href = "index.html"; else window.location.href = "index.html#" + id; }}
        onContact={onContact}
        onLogin={onLogin}
        onDemo={onDemo} />

      {/* HERO */}
      <section className="ts-ex-hero">
        <div className="ts-ex-hero-main">
        <div className="ts-ex-hero-logo"><img src="assets/tapscan-experience-white.svg" alt="TapScan Experience" width="288" height="63" /></div>
        <div className="ts-ex-hero-vr" aria-hidden="true" />
        <div className="ts-ex-hero-copy">
        <h1 className="ts-ex-h1">Turn every touchpoint into a dynamic customer experience.</h1>
        <p className="ts-ex-sub">TapScan Experience connects the QR codes and NFC tags on your packaging, displays, signage, ads and more to dynamic content that adapts to every customer and every moment. Update it whenever you like, no reprinting required.</p>
        <div className="ts-ex-actions is-left">
          <a className="ts-ex-btn ts-cta-btn is-light" href="https://calendly.com/katie-aotc/20min" target="_blank" rel="noopener noreferrer" onClick={() => exTrack("Hero: Book a Demo")}>
            {EX_CAL}<span>Book a Demo</span>{EX_ARROW}
          </a>
          <a className="ts-ex-btn ts-cta-btn ts-cta-btn-secondary" href="case-studies.html?tab=experience" onClick={() => exTrack("Hero: View Experience Case Studies")}>
            <span>View Experience Case Studies</span>{EX_ARROW}
          </a>
        </div>
        </div>
        </div>
      </section>

      {/* SUB-HERO: on this page */}
      <nav className="ts-ex-subhero" aria-label="On this page">
        <div className="ts-ex-subhero-in">
          <div className="ts-ex-toc-head">
            <p className="ts-ex-toc-title">On this page</p>
            <span className="ts-ex-toc-hint" aria-hidden="true"><span className="ts-hint-hover">Click to jump to section</span><span className="ts-hint-tap">Tap to jump to section</span></span>
          </div>
          <ol>
            {EX_TOC.map(([id, label]) => <li key={id}><a href={"#" + id} onClick={(e) => { exTrack("On This Page: " + label); goToSection(e, id); }}>{label}</a></li>)}
          </ol>
        </div>
      </nav>

      <main>
        {/* 01 EVERY TOUCHPOINT */}
        <section className="ts-ex-sec" id="touchpoints">
          <div className="ts-ex-wrap">
            <ExHeading eyebrow="01 · How it works">Dynamic experiences for every touchpoint</ExHeading>
            <p>A QR code or NFC tag can live on almost any printed or physical surface, and on screens too. Behind each one, TapScan delivers an experience tailored to the person scanning: where they are, which retailer they are in, the product in their hands, their language and the time of day. You can update and measure everything without reprinting a thing.</p>
            <ExCarousel label="Touchpoints" items={EX_TOUCHPOINTS} />
            <div className="ts-ex-more">
              <div className="ts-ex-icon"><ExIcon name="spark" /></div>
              <p><strong>And anywhere else.</strong> Every surface is an opportunity. Wherever your message appears, in print, in store or on screen, TapScan can turn it into a live, measurable digital experience.</p>
            </div>
          </div>
        </section>

        {/* 02 WHY IT MATTERS */}
        <section className="ts-ex-sec is-tint" id="why">
          <div className="ts-ex-wrap">
            <ExHeading eyebrow="02 · Why it matters">Keep customers engaged beyond the first touchpoint</ExHeading>
            <p>Print and physical media have limited space, and once they are printed, they are fixed. A scannable code changes that. It gives customers what they need the moment their interest peaks, and it gives your brand a way to learn from every interaction.</p>
            <div className="ts-ex-rows">
              {EX_BENEFITS.map((b) => (
                <div className="ts-ex-row" key={b.title}>
                  <div className="ts-ex-icon"><ExIcon name={b.icon} /></div>
                  <h3>{b.title}</h3>
                  <p>{b.text}</p>
                </div>
              ))}
            </div>
          </div>
        </section>

        {/* 03 CAPABILITIES */}
        <section className="ts-ex-sec" id="capabilities">
          <div className="ts-ex-wrap">
            <ExHeading eyebrow="03 · Capabilities">Content that adapts to every scan</ExHeading>
            <p>At the moment of the scan, TapScan decides what each person sees. One printed code or NFC tag can deliver a different, relevant experience depending on who is scanning, where and when, whatever surface it appears on.</p>
            <ExCapExplorer items={EX_CAPS} />
            <div className="ts-ex-more">
              <div className="ts-ex-icon"><ExIcon name="spark" /></div>
              <p><strong>And more.</strong> TapScan can also adapt content by audience, user need or stage in the customer journey, so every experience keeps pace with what people are trying to do.</p>
            </div>

            <h3 className="ts-ex-sub-h">Four scans, four different experiences</h3>
            <p className="ts-ex-sub-p">Illustrative examples of how the experience changes from one scan to the next.</p>
            <div className="ts-ex-scenarios">
              {EX_SCENARIOS.map((sc) => (
                <div className="ts-ex-scn" key={sc.who}>
                  <div className="ts-ex-scn-who">
                    <span className="ts-ex-scn-ico"><ExIcon name={sc.icon} size={30} stroke={1.9} /></span>
                    <div>
                      <p className="ts-ex-who">{sc.who}</p>
                      <p className="ts-ex-where">{sc.where}</p>
                    </div>
                  </div>
                  <span className="ts-ex-arrow"><ExIcon name="arrowR" size={30} stroke={2.4} /></span>
                  <p className="ts-ex-what">{sc.what}</p>
                </div>
              ))}
            </div>
          </div>
        </section>

        {/* 04 PRODUCT PACKAGING: SHOPPERS IN STORE AND CONSUMERS AT HOME */}
        <section className="ts-ex-sec is-tint" id="packaging">
          <div className="ts-ex-wrap">
            <ExHeading eyebrow="04 · On product packaging">On product packaging, one code serves two moments for your customers</ExHeading>
            <p>Packaging is unlike any other touchpoint. A pack sits on the shelf, where shoppers decide what to buy, and then goes home, where consumers put it to use. A single QR code or NFC tag on the pack is scanned at both moments, and TapScan shows each person the experience that suits them.</p>
            <div className="ts-ex-moments">
              <article className="ts-ex-moment is-store">
                <span className="ts-ex-moment-tag">At the purchase decision point</span>
                <div className="ts-ex-moment-head">
                  <div className="ts-ex-icon"><ExIcon name="store" /></div>
                  <h3>For shoppers <span className="ts-ex-h3-l">in store</span></h3>
                </div>
                <hr className="ts-ex-moment-rule" />
                <p className="ts-ex-lead">Help them choose with confidence.</p>
                <ul className="ts-ex-list">
                  <li>Compare products or models side by side.</li>
                  <li>Explain benefits, features, compatibility and value in the shopper’s own language.</li>
                  <li>Present offers, loyalty sign-ups and promotions at exactly the moment they matter.</li>
                  <li>Link straight to the retailer’s product page, so buying is just one tap away.</li>
                </ul>
              </article>
              <div className="ts-ex-hub" aria-hidden="true">
                <div className="ts-ex-hub-row"><ExIcon name="arrowL" size={30} stroke={2.4} /></div>
                <div>
                  <div className="ts-ex-hub-pill">
                    <ExIcon name="qr" size={34} stroke={2.1} />
                    <span className="ts-ex-hub-or">and/or</span>
                    <ExIcon name="nfc" size={31} stroke={2.1} />
                  </div>
                </div>
                <div className="ts-ex-hub-row"><ExIcon name="arrowR" size={30} stroke={2.4} /></div>
              </div>
              <article className="ts-ex-moment is-home">
                <span className="ts-ex-moment-tag">At the point of use</span>
                <div className="ts-ex-moment-head">
                  <div className="ts-ex-icon"><ExIcon name="home" /></div>
                  <h3>For consumers <span className="ts-ex-h3-l">after purchase</span></h3>
                </div>
                <hr className="ts-ex-moment-rule" />
                <p className="ts-ex-lead">Keep your brand useful after the sale.</p>
                <ul className="ts-ex-list">
                  <li>Share usage instructions, tutorials, and care and storage guidance.</li>
                  <li>Show the sourcing, materials and certification details that build trust.</li>
                  <li>Provide recycling guidance and sustainability information.</li>
                  <li>Offer easy reorder options, and share product updates or safety notices whenever they are needed.</li>
                </ul>
              </article>
            </div>
            <hr className="ts-ex-rule" />
            <div className="ts-ex-notebox">
              <div className="ts-ex-notebox-ico" aria-hidden="true"><svg viewBox="122 122 234 234" width="58" height="58" fill="currentColor" aria-hidden="true" focusable="false"><path d="M314.162 123H173.404C145.589 123 123 145.86 123 174.009V313.677C123 336.268 141.071 354.556 163.394 354.556H304.152C331.967 354.556 354.556 331.696 354.556 303.547V163.879C354.556 141.288 336.485 123 314.162 123ZM344.457 305.878C344.457 322.104 331.524 335.192 315.491 335.192H171.366C155.864 335.192 143.374 322.552 143.374 306.864V163.52C143.374 147.294 156.307 134.206 172.341 134.206H315.845C331.701 134.206 344.457 147.204 344.457 163.161V305.967V305.878Z" /><path d="M224.427 166.664H184.695C178.115 166.664 172.769 172.01 172.769 178.589V218.321C172.769 224.901 178.115 230.247 184.695 230.247H224.427C231.007 230.247 236.353 224.901 236.353 218.321V178.589C236.353 172.01 231.007 166.664 224.427 166.664ZM220.452 210.371C220.452 212.565 218.67 214.347 216.476 214.347H192.645C190.452 214.347 188.67 212.565 188.67 210.371V186.54C188.67 184.347 190.452 182.565 192.645 182.565H216.476C218.67 182.565 220.452 184.347 220.452 186.54V210.371Z" /><path d="M224.427 241.081H184.695C178.115 241.081 172.769 246.427 172.769 253.006V292.739C172.769 299.319 178.115 304.665 184.695 304.665H224.427C231.007 304.665 236.353 299.319 236.353 292.739V253.006C236.353 246.427 231.007 241.081 224.427 241.081ZM220.452 284.789C220.452 286.982 218.67 288.764 216.476 288.764H192.645C190.452 288.764 188.67 286.982 188.67 284.789V260.957C188.67 258.764 190.452 256.982 192.645 256.982H216.476C218.67 256.982 220.452 258.764 220.452 260.957V284.789Z" /><path d="M301.482 166.659H261.75C255.17 166.659 249.824 172.005 249.824 178.585V218.317C249.824 224.897 255.17 230.243 261.75 230.243H301.482C308.062 230.243 313.408 224.897 313.408 218.317V178.585C313.408 172.005 308.062 166.659 301.482 166.659ZM297.507 210.367C297.507 212.56 295.725 214.342 293.532 214.342H269.7C267.507 214.342 265.725 212.56 265.725 210.367V186.535C265.725 184.342 267.507 182.56 269.7 182.56H293.532C295.725 182.56 297.507 184.342 297.507 186.535V210.367Z" /><path d="M304.985 264.979C309.098 264.979 312.427 268.308 312.427 272.42C312.427 276.533 309.098 279.862 304.985 279.862C295.723 279.862 288.242 287.362 288.223 296.625C288.223 300.736 284.894 304.065 280.782 304.065C276.67 304.065 273.341 300.736 273.341 296.625C273.341 279.137 287.499 264.979 304.985 264.979ZM304.985 240.482C309.098 240.482 312.427 243.811 312.427 247.923C312.427 252.035 309.098 255.364 304.985 255.364C293.569 255.364 283.308 259.966 275.808 267.446C268.327 274.947 263.726 285.208 263.726 296.625C263.726 300.736 260.397 304.065 256.285 304.065C252.173 304.065 248.843 300.736 248.843 296.625C248.843 265.625 273.967 240.482 304.985 240.482ZM304.692 288.615C308.961 288.615 312.427 292.081 312.427 296.35C312.427 300.619 308.961 304.085 304.692 304.085C300.423 304.085 296.957 300.619 296.957 296.35C296.957 292.081 300.423 288.615 304.692 288.615Z" /></svg></div>
              <div className="ts-ex-notebox-vr" aria-hidden="true" />
              <div className="ts-ex-notebox-text">
                <p>You print one code, and TapScan handles the dynamic delivery behind it. What each person sees depends on signals such as where they are, which retailer they are in and when they scan.</p>
                <p>Few touchpoints travel home with your customer the way packaging does. A code on your pack turns it into a dynamic experience that helps win the sale in store and keeps your brand connected long after purchase.</p>
              </div>
            </div>
          </div>
        </section>

        {/* 05 EXAMPLE DASHBOARD (illustrative numbers only) */}
        <section className="ts-ex-sec" id="results">
          <div className="ts-ex-wrap">
            <ExHeading eyebrow="05 · Example dashboard">What your engagement dashboard could look like</ExHeading>
            <p>Every scan feeds an engagement dashboard. These illustrative examples show what you could see for four different touchpoints. They are built from made-up numbers and are not real client data.</p>
            <ExDashTabs />
            <div className="ts-ex-actions is-left ts-ex-proof-cta">
              <a className="ts-ex-btn ts-cta-btn ts-cta-btn-primary" href="case-studies.html?tab=experience" onClick={() => exTrack("Results: View Experience Case Studies")}>
                <span>View Experience Case Studies</span>{EX_ARROW}
              </a>
            </div>
          </div>
        </section>

        {/* 06 HOW IT WORKS */}
        <section className="ts-ex-sec is-tint" id="how-it-works">
          <div className="ts-ex-wrap">
            <ExHeading eyebrow="06 · The process">Engage, evaluate, evolve</ExHeading>
            <p>Engagement is just the beginning. TapScan also helps you evaluate what every scan tells you and evolve your content and campaigns, so each interaction makes the next one stronger.</p>
            <div className="ts-ex-steps">
              {EX_STEPS.map((s) => (
                <div className="ts-ex-step" key={s.n}>
                  <span className="ts-ex-n">{s.n}</span>
                  <h3>{s.title}</h3>
                  <p>{s.text}</p>
                </div>
              ))}
            </div>
          </div>
        </section>

        {/* 07 DPI AND GS1 */}
        <section className="ts-ex-sec" id="dpi-gs1">
          <div className="ts-ex-wrap">
            <div className="ts-ex-dpi-head">
              <div className="ts-ex-dpi-title">
                <ExHeading eyebrow="07 · Dynamic Product Information" noDot>Is your product packaging <span className="ts-ex-h2-l">ready for GS1 Sunrise 2027?</span></ExHeading>
              </div>
              <div className="ts-ex-dpi-vr" aria-hidden="true" />
              <div className="ts-ex-dpi-art">
                <div className="ts-ex-dpi-tipwrap" tabIndex={0} role="img" aria-label="Traditional 1D Barcode. No interaction from customer.">
                  <div className="ts-ex-dpi-circle" style={{ "--d": "0s" }}><img src="assets/dpi-barcode.svg" alt="" /></div>
                  <div className="ts-ex-dpi-tip" aria-hidden="true"><strong>Traditional 1D Barcode</strong><span>No interaction from customer</span></div>
                </div>
                <img className="ts-ex-dpi-arrow" src="assets/dpi-arrow.svg" alt="" style={{ "--d": "0.35s" }} />
                <div className="ts-ex-dpi-tipwrap" tabIndex={0} role="img" aria-label="GS1 Enabled 2D Barcode (QR). Enables interaction with customer.">
                  <div className="ts-ex-dpi-circle" style={{ "--d": "0.7s" }}><img src="assets/dpi-qr.svg" alt="" /></div>
                  <div className="ts-ex-dpi-tip" aria-hidden="true"><strong>GS1 Enabled 2D Barcode (QR)</strong><span>Enables interaction with customer</span></div>
                </div>
              </div>
            </div>
            <div className="ts-ex-gs1">
              <div>
                <p>GS1 Sunrise 2027 is a global initiative for retail checkout systems to scan 2D barcodes alongside today’s traditional 1D barcodes. A GS1-enabled QR code that uses GS1 Digital Link connects a product’s identity to both the checkout and a digital experience, so one code does two jobs.</p>
                <p>TapScan’s Dynamic Product Information (DPI) powers that experience, delivering product information, usage and sustainability details or content tailored to a market or language. You can update it at any time without changing the printed code, and with retailers preparing at different speeds, now is the time to plan.</p>
                <div className="ts-ex-actions is-left">
                  <a className="ts-ex-btn ts-cta-btn ts-cta-btn-primary" href="gs1-sunrise-2027.html" onClick={() => exTrack("GS1: Read the GS1 Sunrise 2027 guide")}>
                    <span>Read the GS1 Sunrise 2027 guide</span>{EX_ARROW}
                  </a>
                  <a className="ts-ex-btn ts-cta-btn is-outline" href="index.html#dynamic-product-information" onClick={() => exTrack("GS1: Explore Dynamic Product Information")}>
                    <span>Explore Dynamic Product Information</span>{EX_ARROW}
                  </a>
                </div>
              </div>
              <div className="ts-ex-chips">
                <div className="ts-ex-chip"><div className="ts-ex-icon"><ExIcon name="qr" /></div><div><strong>Right content, every market</strong><small>Share product details, recall notices and content tailored by market and language, and update it all without reprinting packaging.</small></div></div>
                <div className="ts-ex-chip"><div className="ts-ex-icon"><ExIcon name="refresh" /></div><div><strong>Learn before and after purchase</strong><small>Measure engagement before and after purchase, and use what you learn to improve content, campaigns and customer support decisions.</small></div></div>
                <div className="ts-ex-chip"><div className="ts-ex-icon"><ExIcon name="tools" /></div><div><strong>Consistent and compliant</strong><small>Maintain brand consistency, meet retailer guidelines and adapt to evolving regulatory requirements with ease.</small></div></div>
              </div>
            </div>
          </div>
        </section>

        {/* 08 FAQ */}
        <section className="ts-ex-sec is-tint" id="faq">
          <div className="ts-ex-wrap">
            <ExHeading eyebrow="08 · Questions answered">TapScan Experience: frequently asked questions</ExHeading>
            <div className="ts-ex-acc">
              {EXPERIENCE_FAQ.map((it, i) => (
                <ExFaqItem key={i} i={i} q={it.q} a={it.a} isOpen={openFaq === i} onToggle={() => { if (openFaq !== i) exTrack("FAQ: " + it.q); setOpenFaq(openFaq === i ? -1 : i); }} />
              ))}
            </div>
          </div>
        </section>
      </main>

      <window.TSFooter showContact={true} onDemo={onDemo} onContact={onContact} onLogin={onLogin} onLegal={onLegal} />
    </div>
  );
}

window.ExperiencePage = ExperiencePage;
