/* Product pages in the home style, part A: idms, inventory-management, leads-center, crm-system. Owner: PRODUCTS (part A).
   The pages reuse the home page's classes directly (.hero-scene, .services-scene, .words, .duo, .lead-scene, .deck,
   .rows / .row, .talk, .para, .more; resources/css/site/pages.css and site/motion.css). This file only adds what a
   product page needs on top of them. Static first: without .motion (JS off, reduced motion) every scene is a plain
   readable section; scroll-linked transforms only under html.motion. */

/* ---------- scene 2: the product rises with the intro (home .services-scene) ---------- */
.p-home .services-scene__text { color: var(--soft); font: 400 clamp(1.05rem, 1.8vw, 1.4rem)/1.45 var(--font-body); max-width: 40ch; }
.p-home .services-scene__title { max-width: 18ch; }
/* a product picture (CSS device or white frame) in place of home's laptop photo */
.p-home .services-scene__mac.p-dev, .p-home .services-scene__mac.shot { position: absolute; width: min(980px, 90vw); }
.p-home .services-scene__mac.p-dev--laptop { width: min(900px, 84vw); }
@media (max-width: 760px) {
    .p-home .services-scene__mac.p-dev, .p-home .services-scene__mac.shot { width: 104vw; }
    .p-home .services-scene__mac.p-dev--laptop { width: 96vw; }
    /* phones: the product lands clear of the bottom bar (Call / Request A Demo), not under it */
    .motion .p-home .services-scene__mac { bottom: calc(var(--mobile-bar-h) + 24px); }
}

/* ---------- statements: the intro text, one lit paragraph at a time (<x-product.statements>) ---------- */
.p-saids { display: grid; gap: clamp(56px, 8vw, 110px); }
.p-said { margin: 0; font-size: clamp(1.35rem, 2.7vw, 2.3rem); line-height: 1.3; max-width: 32ch; }
.p-said:nth-child(even) { justify-self: end; }
.p-said a { color: var(--mint); }

/* ---------- statement + moving picture (home .words .duo) ---------- */
.p-home .duo .lit { max-width: 16ch; }
.p-home .p-duo__sub { margin: 16px 0 0; font: 600 clamp(1.15rem, 2vw, 1.55rem)/1.3 var(--font-display); letter-spacing: -.01em; color: var(--mint); }
.p-home .para p { margin: 0; }
.p-home .para p + p { margin-top: 1em; }
.p-home .p-duo__sub + .para { margin-top: 18px; }
/* .vis.slide crops 6% each side; these pictures have content to the edges */
.vis.p-slide-whole img { width: 100%; margin-left: 0; }
.p-home .shot--pic { background: #fff; }

/* ---------- IDMS: Deal Forms as oversized sliding lines beside the forms (home .rows / .row) ---------- */
.p-forms__t { margin: 0 0 clamp(30px, 5vw, 60px); font-size: clamp(2.6rem, 8vw, 6.4rem); font-weight: 700; letter-spacing: -.04em; max-width: none; }
.p-forms__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.p-forms__list { list-style: none; margin: 0; padding: 0; }
.p-row { grid-template-columns: minmax(0, 1fr); }
/* the kit's oversized line (.row h3) for a list item, which is not a heading; the check mark moves with it */
.p-row__t { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 clamp(12px, 1.8vw, 22px); font: 700 clamp(1.45rem, 3.2vw, 2.7rem)/1.12 var(--font-display); letter-spacing: -.03em; color: var(--ink); transform: translateX(calc((1 - var(--v)) * var(--dir, 1) * 14%)); opacity: calc(.25 + var(--v) * .75); }
.p-row__i { height: .7em; margin-top: .22em; color: var(--mint); }
.p-row:nth-child(even) .p-row__t { color: var(--mint); --dir: -1; }
.p-forms__pic { position: sticky; top: calc(var(--header-h) + 48px); }
@media (max-width: 760px) {
    .p-forms__grid { grid-template-columns: minmax(0, 1fr); }
    .p-forms__pic { position: relative; top: auto; margin-top: 40px; }
}

/* ---------- IDMS: Deals Management System at home scale ---------- */
.p-home .p-burst .stage { background: radial-gradient(60% 55% at 50% 100%, rgba(0, 167, 149, .38), rgba(0, 167, 149, 0) 70%), var(--night); }
.p-home .p-burst__t { font-size: clamp(2.4rem, 6.4vw, 5.4rem); line-height: 1.02; max-width: 14ch; }
.p-home .p-burst__text { font-size: clamp(1.05rem, 1.8vw, 1.4rem); }

/* ---------- the big close (home .talk) ---------- */
.p-ctalk .talk__inner { gap: 18px; }
.p-ctalk__sub { margin: 0; font: 500 clamp(1.15rem, 2.2vw, 1.7rem)/1.3 var(--font-display); color: var(--soft); max-width: 36ch; }
.words .para.p-ctalk__text { margin-top: clamp(16px, 3vw, 36px); max-width: none; columns: 2 340px; column-gap: clamp(32px, 5vw, 64px); }
.p-ctalk__text p { break-inside: avoid; }

/* ---------- Leads Center: the three lead screens rise and fan out of one stack (scene 2) ---------- */
.p-home .p-fan.services-scene__mac { position: absolute; width: min(600px, 42vw); aspect-ratio: 939 / 547; margin: 0; }
.motion .p-fan { --t: calc(1 - var(--a)); }
.p-fan .p-hub__ring { --v: 1; }
@media (max-width: 760px) {
    .p-home .p-fan.services-scene__mac { width: 64vw; }
}

/* ---------- CRM: Quick Deals at home scale ---------- */
.p-home .p-stand .stage { background: radial-gradient(60% 55% at 50% 100%, rgba(0, 167, 149, .38), rgba(0, 167, 149, 0) 70%), var(--night); }
.p-home .p-stand__t { font-size: clamp(2.6rem, 7vw, 5.8rem); line-height: 1; }
.p-home .p-stand__sub { font: 600 clamp(1.15rem, 2vw, 1.55rem)/1.3 var(--font-display); }
.p-home .p-stand__text { font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.vis.p-tilt-sm .shot { max-width: 460px; margin-inline: auto; padding: clamp(10px, 2vw, 22px); }

/* ---------- Inventory, Leads Center: home's turning screens (.lead-scene, .deck, .deck-big, .deck-desc) ----------
   Each description holds its feature's real headings in content order: its own .deck-big (the giant title) sits at the
   top of the stage, its text under the screens. */
.p-lead .deck-big > * { color: transparent; text-wrap: balance; }
.p-lead .deck-big .hi { color: transparent; }
.p-lead__sub { margin: 0 0 8px; font: 600 clamp(1.05rem, 1.7vw, 1.35rem)/1.3 var(--font-display); color: var(--mint); }
.deck .c.p-lead__c--contain img { object-fit: contain; object-position: 50% 50%; background: #fff; }
.p-lead__decor { position: absolute; z-index: 0; width: clamp(110px, 13vw, 190px); height: auto; opacity: .5; pointer-events: none; }
.p-lead__decor--0 { left: 3%; top: 18%; }
.p-lead__decor--1 { right: 3%; top: 42%; }
.p-lead__decor--2 { left: 6%; bottom: 8%; }
.motion .p-lead__desc { position: absolute; inset: 0; pointer-events: none; }
.motion .p-lead__desc > * { inset: 0; max-width: none; }
.motion .p-lead .deck-big { position: absolute; top: 5%; left: 20px; right: 20px; height: auto; overflow: visible; }
.motion .p-lead .deck-big > * { position: relative; inset: auto; display: block; text-align: center; white-space: normal; font-size: clamp(1.9rem, 5.6vw, 5rem); line-height: 1.04; }
.motion .p-lead .lead-scene__deck { top: 25%; height: 40%; }
.motion .p-lead__txt { position: absolute; left: 20px; right: 20px; bottom: 3%; max-width: 66ch; margin-inline: auto; text-align: center; }
@media (max-width: 760px) {
    .motion .p-lead .lead-scene__deck { top: 27%; height: 34%; }
    .motion .p-lead__txt { bottom: calc(var(--mobile-bar-h) + 10px); }
    .p-lead__decor { width: 90px; }
}
/* without motion: home's grid (one column per screen; site/pages.css), the descriptions as its second row */
:root:not(.motion) .p-lead .deck-desc { display: contents; }
:root:not(.motion) .p-lead .deck-big > * { margin-top: 8px; }
:root:not(.motion) .p-lead__txt { margin-top: 10px; }
@media (max-width: 760px) {
    :root:not(.motion) .p-lead .deck .c:nth-child(1) { order: 1; } :root:not(.motion) .p-lead__desc > :nth-child(1) { order: 2; }
    :root:not(.motion) .p-lead .deck .c:nth-child(2) { order: 3; margin-top: 24px; } :root:not(.motion) .p-lead__desc > :nth-child(2) { order: 4; }
    :root:not(.motion) .p-lead .deck .c:nth-child(3) { order: 5; margin-top: 24px; } :root:not(.motion) .p-lead__desc > :nth-child(3) { order: 6; }
}
