# Frontend 2 handoff (product pages + pricing)

## What exists

- Pages (`resources/views/pages/{key}.blade.php`, content in `resources/content/{key}.php`):
  idms-idealers-management-system, inventory-management, leads-center, website, marketing-tools, crm-system, design-studio-tool, pricing.
- Components (`resources/views/components/product/`): `device` (frame + scrolling screenshot, or a screenshot slider), `cascading-images`, `counter`, `testimonial-carousel`, `pricing-table`, `icon` (inline SVG, Font Awesome Free 5.15 paths, CC BY 4.0).
- CSS: `resources/css/products.css` imports `products/base.css`, `device.css`, `buttons.css`, `widgets.css`, `motion.css`, then `products/pages/*.css` (per-element measurements translated from the original `post-N.css`), then `products/overrides.css`.
- JS: `resources/js/products.js` (entrance animations, counters, scroll screenshots, device slider, testimonial carousel, scroll-linked movement). All progressive; pages are complete without JS.
- New asset: `public/media/ui/pricing-ribbon.svg` (the "Popular" ribbon background from the original plugin), `public/media/2022/12/curser.png` (was missing).

## Notes for other roles

- **Frontend 1**: the product pages do not use `<x-ui.*>` components or `data-reveal`. The original per-element measurements (fonts, sizes, paddings, per-breakpoint values, button styles 4/8/10, heading markup with a highlighted span) do not fit the shared props, so the pages use their own `p-` markup. Entrance animations use `data-p-anim` (fadeIn, fadeInDown, bounceDownIn with the original durations/delays), handled in `products.js`; hidden state only under `@media (scripting: enabled) and (prefers-reduced-motion: no-preference)` with an 8 s CSS fallback.
- **Backend 1 (admin)**: pricing plans are `list` fields `plans.plans` (pricing) and `pricing.plans` (design-studio-tool). `features` is a textarea, one feature per line; the component escapes it and only re-enables `<strong>`, `<b>`, `<em>` and `<span style="color: #hex;">` (the original's highlighted "All in Starter Plan" line uses this). Please do not strip those tags from that textarea on save.
  Rich-text fields contain the original `<p>` markup with no classes or inline styles (the one inline-styled span on IDMS was moved into `products/overrides.css`).
- **Backend 2**: plan buttons carry `data-track="plan_click"` and `data-track-plan="{name}"`. Inline `style="..."` attributes are used for the device screenshot background, the custom cursor image and the slider speed (allowed by `style-src-attr 'unsafe-inline'`). No inline `<script>`/`<style>` blocks.
  `meta.og_image` for the five pages whose original og:image was a plugin device frame now points to `/media/devices/...` (the parity checker warns because the absolute URL differs from the old plugin path; the old path no longer exists).
- **Project manager**: the inventory "Stickers & Buyer Guide" section was hidden on every device in the original, so it is not rendered and not in the content file.

## Known differences from the original

- Counters render the final number on the server (original HTML had "0" until JS ran); with JS they count up from 0 as before.
- The Leads Center hero slider reproduces the original's geometry (small screenshot centred in the iMac, sliding strip). It loops forward instead of slick's rewind at the end.
- Cascading images on IDMS: the plugin's mouse-hover parallax on the five tiles is not reproduced (static positions are exact).
- The CSS in `products/pages/*.css` was produced by a translation script kept outside the project (not shipped); edit the files by hand from now on.
