/* Product pages in the home style, part B: website, marketing-tools, design-studio-tool. Owner: PRODUCTS (builder B).
   The pages reuse the home page's classes (site/pages.css: .hero-scene, .services-scene, .words, .lead-scene, .proof, .talk)
   and the kit (site/motion.css). This file only adds what the product content needs; every rule is scoped to .pb
   (the three pages' wrapper: <div class="p-page pb">). Static first: without .motion every scene is a plain section. */

/* ---------- inside .pb: the product shell's heading colour (.p-page h2) must not beat the home/kit colours ---------- */
.pb .duo { position: relative; }
.pb .eyebrow { color: var(--mint); }
.pb .lit { line-height: 1.18; }
.pb .para p { margin: 0; }
.pb .para p + p { margin-top: 1em; }
.pb .txt .para { margin: 28px 0 0; max-width: 52ch; font: 400 clamp(1.05rem, 1.5vw, 1.25rem)/1.6 var(--font-body); color: var(--soft); text-wrap: pretty; }
/* mint sub-heading under a statement ("Performance", "Chat BOT", "Display Page") */
.pb .pb-sub { margin: 14px 0 0; font: 600 clamp(1.2rem, 2.3vw, 1.8rem)/1.2 var(--font-display); letter-spacing: -.02em; color: var(--mint); }

/* ---------- 2. the product rises (home .services-scene) ---------- */
.pb .services-scene__text { font: 500 clamp(1.15rem, 2vw, 1.6rem)/1.3 var(--font-display); color: var(--soft); }
.pb-rise__pic { position: absolute; z-index: 1; left: 50%; bottom: 5%; width: var(--pw); transform-origin: 50% 100%;
    transform: translate(-50%, calc((1 - var(--a)) * 34%)) scale(calc(.86 + var(--a) * .14)); filter: drop-shadow(0 0 70px rgba(0, 216, 193, .25)); }
/* Website: laptop centre stage, tablet and phone glide in and assemble (p-glide__tab / __phone in products/scenes.css) */
.pb-rise--glide .pb-rise__pic { --pw: min(720px, 70vw, calc((var(--stage-h) - 340px) * 1.35)); --t: var(--a); }
/* Marketing Tools: one laptop */
.pb-rise--lap .pb-rise__pic { --pw: min(860px, 84vw, calc((var(--stage-h) - 330px) * 1.45)); }
@media (max-width: 760px) {
    .pb-rise--glide .pb-rise__pic { --pw: 74vw; bottom: 18%; }
    .pb-rise--lap .pb-rise__pic { --pw: 88vw; bottom: 18%; }
}
/* without motion: a plain section, title, then the devices, fully visible */
:root:not(.motion) .pb-rise .stage { height: auto; display: flex; flex-direction: column; align-items: center; gap: clamp(48px, 7vw, 80px); padding-block: var(--section-y); }
:root:not(.motion) .pb-rise .services-scene__copy { position: static; transform: none; opacity: 1; }
:root:not(.motion) .pb-rise .services-scene__say { display: none; }
:root:not(.motion) .pb-rise__pic { --t: 1; position: relative; left: auto; bottom: auto; transform: none; }

/* ---------- 3. statements ---------- */
.pb-words .container > .pb-say + * { margin-top: clamp(80px, 11vw, 150px); }
.pb .pb-say { max-width: 34ch; font-size: clamp(1.4rem, 2.9vw, 2.35rem); line-height: 1.3; }
.pb .pb-say p { margin: 0; }
.pb .pb-say p + p { margin-top: .7em; }
/* an illustration that sits calmly, small, on the glow */
.pb-calm > * { width: min(100%, 420px); margin-inline: auto; }
.pb-calm img { border-radius: 18px; }

/* ---------- 4. turning screens (home .lead-scene; one item = title + screen + text, in content order) ---------- */
.pb-deck .deck-big > * { font-size: clamp(1.8rem, 6.2vw, 5.4rem); color: transparent; }
.pb-c--contain img { object-fit: contain !important; object-position: 50% 50% !important; background: #fff; }
.pb-deck__text p { margin: 0; }
.pb-deck .deck-desc .pb-sub { margin: 0 0 10px; }
.motion .pb-deck .deck-big { position: absolute; left: 0; right: 0; top: 6%; }
.motion .pb-deck .deck-big > * { display: block; padding-inline: 20px; text-align: center; align-content: center; }
.motion .pb-deck .deck { position: absolute; left: 0; right: 0; top: 25%; height: 44%; z-index: calc(100 - max(var(--i) - var(--k), var(--k) - var(--i)) * 10); }
.motion .pb-deck .deck-desc { position: absolute; left: 20px; right: 20px; bottom: 3%; height: 25%; }
@media (max-width: 760px) {
    .motion .pb-deck .deck-big > * { white-space: normal; line-height: 1.02; }
    .motion .pb-deck .deck-big { height: 2.2em; font-size: clamp(1.8rem, 6.2vw, 5.4rem); }
    .motion .pb-deck .deck { top: 21%; height: 34%; }
    .motion .pb-deck .deck-desc { height: 40%; }
}
/* without motion: one column per item (title, screen, text) */
:root:not(.motion) .pb-deck .stage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; }
:root:not(.motion) .pb-deck__item { display: grid; gap: 18px; align-content: start; }
@media (max-width: 760px) { :root:not(.motion) .pb-deck .stage { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Marketing Tools ---------- */
.pb-words--solo { padding-bottom: 0; }
.pb-calm--wide > * { width: min(100%, 520px); }
/* "Our Marketing Tools" at home scale */
.pb .p-spot__t { font-size: clamp(2rem, 6vw, 4.8rem); line-height: 1.04; }
.pb .p-spot__ft { font-size: clamp(1.3rem, 2.3vw, 1.9rem); line-height: 1.15; letter-spacing: -.02em; }
.pb .p-spot__fx { font-size: clamp(1rem, 1.3vw, 1.12rem); }

/* ---------- Design Studio ---------- */
.pb .pb-ds-hero { --swl: 0px; }
.pb .pb-ds-hero__t2 { margin: 0; font: 700 clamp(1.7rem, 3.8vw, 3rem)/1.05 var(--font-display); letter-spacing: -.03em; }
.pb-ds-hero__row { display: grid; justify-items: center; gap: 18px; max-width: 60ch; }
.pb-ds-hero__text { text-align: center; }
.pb-ds-hero__text p { margin: 0; }
/* +300 in the manner of home's .proof (number, caption, statements), the collage drifting below */
.pb-made { position: relative; padding-top: var(--section-y); overflow-x: clip; background: radial-gradient(50% 40% at 0% 30%, rgba(0, 167, 149, .22), rgba(0, 167, 149, 0) 70%); }
.pb-made__in { display: grid; justify-items: start; }
.pb .pb-made__in .proof__cap { line-height: 1.4; }
.pb-made__t:first-of-type, .pb .proof__cap + .pb-made__t { margin-top: clamp(36px, 5vw, 64px); }
.pb .pb-made__in .btn { margin-top: 36px; }
/* Social statement: the two headings read as one statement */
.pb .eyebrow + .lit { margin-top: 18px; }
.pb .pb-lit-a + .pb-lit-b { margin-top: 0; }
/* testimonials, plans, close */
.pb .p-quotes__t, .pb .p-price__t { margin-top: 18px; }
.pb .p-quotes__t { font-size: var(--text-statement); font-weight: 600; }
.pb-talk { border-top: 1px solid var(--line); background: radial-gradient(60% 70% at 0% 100%, rgba(0, 167, 149, .2), rgba(0, 167, 149, 0) 70%); }
