/* ==========================================================================
   AI Hub round 2: PRODUCT PAGE TEMPLATE (agent / platform pages, L-28).
   Used first by ai-voice-agent.html.  Loads after system.css and only adds
   what the shared system does not have.  Generic class names, so any agent
   or platform page can reuse them.  Voice-only parts are in section 12.

   Anatomy:  hero -> (proof / player) -> product diagram -> buyer questions
             -> timeline -> product UI row -> capability grid -> deployment
             -> demo video -> FAQ -> closing band

    1  Hero, product variant (.hero--product, .phero, .pstats, .frame--dark)
    2  Product diagram, vertical (L-16)    .pdiag  .pnode  .pdiag__hub
    3  Buyer question cards                .qcards .qcard
    4  Vertical timeline (L-17)            .ptl
    5  Product UI row (U-18)               .uirow
    6  Capability grid (L-18)              .cgrid  .ccard
    7  Trust facts strip (L-23 footer)     .pfacts
    8  Video facade                        .yt
    9  FAQ footer, pairs-with              .pairs  .inline-link
   10  Closing band microcopy              .cta-line
   11  Responsive
   12  VOICE-ONLY: "Hear it" player        .player .ptx .pctl
   ========================================================================== */

/* ---------- 1. Hero, product variant ---------- */
.hero--product { padding-block: clamp(48px, 5.4vw, 80px) clamp(40px, 4.6vw, 64px); }
.phero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(40px, 6vw, 104px); align-items: center; }
.phero__copy { display: grid; gap: 32px; justify-items: start; }
.hero--product .display { font-size: clamp(2.5rem, 3.4vw + 1rem, 4.25rem); }
.phero__copy .lead { max-width: 31em; }
.phero__media { justify-self: end; width: 100%; max-width: 440px; }
.frame--dark { background: var(--dark-2); border-color: var(--line-dark-strong); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.frame--dark .frame__bar { background: var(--dark-3); border-bottom-color: var(--line-dark); }
.frame--dark .frame__bar i { background: var(--line-dark-strong); }
.frame--dark .frame__body, .frame--dark img { background: var(--dark-2); }
/* The live-call frame has black side bars: crop to the centre as a portrait window */
.phero__media .frame__body img { aspect-ratio: 5 / 6; object-position: center; }

.pstats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(36px, 4.4vw, 64px); border-top: 1px solid var(--line-dark); }
.pstat { padding: clamp(28px, 3vw, 40px) clamp(16px, 3vw, 40px) 0; border-left: 1px solid var(--line-dark); }
.pstat:first-child { padding-left: 0; border-left: 0; }
.pstat__num { font-family: var(--font-serif); font-weight: 500; font-size: clamp(2.5rem, 3vw + 1rem, 3.75rem); line-height: 1; color: var(--coral); }
.pstat__label { margin-top: 12px; color: var(--on-dark-2); font-size: var(--fs-small); }

/* ---------- 2. Product diagram, vertical (L-16): inputs on top, the agent in the middle, outputs below ---------- */
.pdiag { max-width: 1000px; margin-inline: auto; display: grid; gap: 0; padding: clamp(32px, 4.4vw, 64px) clamp(20px, 4vw, 56px) clamp(28px, 3.4vw, 44px); }
.pdiag__label { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-2); margin-bottom: 18px; }
.pdiag__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pnode { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 12px; border: 1px solid var(--line-dark-strong); border-radius: var(--r-md); background: rgba(242, 239, 230, .03); text-align: center; font-size: .9375rem; font-weight: 500; line-height: 1.3; }
.pnode .icon { width: 22px; height: 22px; color: var(--coral-lt); stroke-width: 1.5; }
/* Connector rows: one dashed vertical line per column, flowing downward */
.pdiag__links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; height: 64px; }
.pdiag__links i { justify-self: center; width: 2px; height: 100%; background: repeating-linear-gradient(to bottom, var(--coral) 0 3px, transparent 3px 11px); background-size: 2px 14px; opacity: .85; animation: pdiag-dash 1.2s linear infinite; }
@keyframes pdiag-dash { to { background-position: 0 14px; } }
.pdiag__hub { border: 1px solid rgba(201, 106, 90, .6); border-radius: 14px; background: var(--dark-2); padding: clamp(24px, 3vw, 36px) clamp(20px, 3vw, 36px) 0; overflow: hidden; margin-bottom: 0; }
.pdiag__hubname { display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-serif); font-weight: 600; font-size: 1.375rem; }
.pdiag__hubname .icon { width: 20px; height: 20px; color: var(--coral-lt); }
.pdiag__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.pdiag__tiles li { padding: 18px 20px; border: 1px solid var(--line-dark-strong); border-radius: var(--r-sm); background: rgba(242, 239, 230, .04); display: grid; gap: 4px; }
.pdiag__tiles strong { font-size: 1rem; font-weight: 600; }
.pdiag__tiles span { font-size: .875rem; color: var(--on-dark-2); line-height: 1.4; }
.pdiag__gov { margin: 28px calc(clamp(20px, 3vw, 36px) * -1) 0; padding: 14px 20px; border-top: 1px solid var(--line-dark); background: rgba(242, 239, 230, .04); text-align: center; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-2); }
.pdiag__gov span + span::before { content: '\00B7'; margin: 0 12px; color: var(--coral-lt); }
.pdiag__links + .pdiag__label { margin-top: 28px; }
.pdiag .flow__caption { margin-top: clamp(32px, 4vw, 48px); }

/* ---------- 3. Buyer question cards ---------- */
.qcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.qcard { border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--white); padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.qcard h3 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.3125rem, .5vw + 1.15rem, 1.5rem); line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; }
.qcard p { color: var(--ink-2); }

/* ---------- 4. Vertical timeline (L-17): numbered circles on a coral line, one card per step ---------- */
.ptl { position: relative; display: grid; gap: 24px; max-width: 1040px; margin-inline: auto; }
.ptl__step { position: relative; padding-left: 80px; min-width: 0; }
.ptl__n { position: absolute; left: 0; top: 28px; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--coral); background: var(--paper-2); color: var(--coral-text); display: grid; place-items: center; font-family: var(--font-serif); font-size: 1.125rem; font-weight: 500; z-index: 1; }
.ptl__step:not(:last-child)::after { content: ''; position: absolute; left: 20.5px; top: 70px; bottom: -52px; width: 1.5px; background: var(--coral); opacity: .55; }
.ptl__card { min-width: 0; max-width: 100%; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: stretch; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); }
.ptl__main { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; max-width: 100%; }
.ptl__main h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.01em; }
.ptl__main p { color: var(--ink-2); max-width: 30em; }
.ptl__main .chip { margin-top: 10px; max-width: 100%; white-space: normal; line-height: 1.3; padding-block: 6px; }
.ptl__main h3, .ptl__main p, .ptl__inset { overflow-wrap: anywhere; }
.ptl__inset { min-width: 0; align-self: center; padding: 18px 24px; border-left: 2px solid var(--coral); background: linear-gradient(90deg, var(--tan), rgba(239, 232, 221, 0)); font-family: var(--font-serif); font-style: italic; font-size: 1.125rem; line-height: 1.5; color: var(--ink-2); }

/* ---------- 5. Product UI row (U-18): framed screenshot with a short list beside it ---------- */
.uirow { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.uirow__text { display: grid; gap: 20px; justify-items: start; }
.uirow__text .h2 { font-size: clamp(1.75rem, 1.6vw + 1.2rem, 2.5rem); }
.uirow__list { display: grid; gap: 4px; margin-top: 12px; width: 100%; }
.uirow__list li { position: relative; padding: 16px 0 16px 30px; border-top: 1px solid var(--line); font-family: var(--font-serif); font-size: 1.1875rem; color: var(--ink); }
.uirow__list li::before { content: ''; position: absolute; left: 4px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--coral); }
.uirow__list li:last-child { border-bottom: 1px solid var(--line); }

/* ---------- 6. Capability grid (L-18): heading with italic accent over a 3-column grid of small cards ---------- */
.cgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ccard { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; display: flex; flex-direction: column; gap: 8px; min-height: 210px; }
.ccard__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--coral-soft); color: var(--coral-text); margin-bottom: 18px; }
.ccard__icon .icon { width: 20px; height: 20px; stroke-width: 1.6; }
.ccard h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.25rem; line-height: 1.25; }
.ccard p { color: var(--ink-2); font-size: 1rem; line-height: 1.55; }

/* ---------- 7. Trust facts strip, under the deployment columns ---------- */
.pfacts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(32px, 3.4vw, 48px); border-top: 1px solid var(--line-strong); }
.pfacts li { display: flex; align-items: center; gap: 14px; padding: 28px 24px 0 0; font-weight: 500; color: var(--ink); }
.pfacts .icon { width: 22px; height: 22px; color: var(--coral-text); stroke-width: 1.5; }
.pfacts__note { margin-top: 28px; }

/* ---------- 8. Video facade (click to load youtube-nocookie) ---------- */
.yt-frame { max-width: 840px; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--dark); cursor: pointer; }
.yt img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; transition: transform .6s var(--ease); }
.yt:hover img { transform: scale(1.02); }
.yt::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 20, 19, 0) 40%, rgba(20, 20, 19, .45)); pointer-events: none; }
.yt__play { position: absolute; left: 50%; top: 50%; z-index: 2; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; transition: transform var(--t), background var(--t); }
.yt:hover .yt__play { transform: scale(1.06); background: var(--coral-hover); }
.yt__play .icon { width: 30px; height: 30px; fill: currentColor; stroke: none; margin-left: 4px; }
.yt__len { position: absolute; right: 16px; bottom: 16px; z-index: 2; padding: 5px 11px; border-radius: 999px; background: rgba(20, 20, 19, .8); color: #fff; font-size: .8125rem; font-weight: 600; }
.yt-frame iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }

/* ---------- 9. FAQ footer, pairs-with ---------- */
.pfaq__more { margin-top: 32px; }
.inline-link { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--coral); }
.inline-link:hover { color: var(--coral-text); }
.pairs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 40px; margin-top: clamp(40px, 4.6vw, 64px); padding-top: 28px; border-top: 1px solid var(--line); }
.pairs__label { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.pairs__list { display: flex; flex-wrap: wrap; gap: 4px 32px; }

/* ---------- 10. Closing band microcopy (D-025) ---------- */
.cta-line { margin-top: 36px; font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-2); }

/* ---------- 11. Responsive ---------- */
@media (max-width: 1000px) {
  .phero { grid-template-columns: 1fr; }
  .phero__media { justify-self: start; max-width: 520px; }
  .phero__media .frame__body img { aspect-ratio: 4 / 3; }
  .uirow { grid-template-columns: 1fr; }
  .qcards { grid-template-columns: 1fr; }
  .ptl__card { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ptl__inset { align-self: stretch; }
}
@media (max-width: 860px) {
  .cgrid { grid-template-columns: 1fr 1fr; }
  .pfacts { grid-template-columns: 1fr; }
  .pfacts li { padding: 20px 0 0; }
}
@media (max-width: 640px) {
  .pstats { grid-template-columns: 1fr; }
  .pstat { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line-dark); }
  .pstat:first-child { border-top: 0; padding-top: 28px; }
  .pdiag__row, .pdiag__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pdiag__links i:nth-child(n+3) { display: none; }
  .pdiag__links { height: 44px; }
  .pdiag__tiles { grid-template-columns: 1fr; }
  .pdiag__gov { letter-spacing: .08em; padding-inline: 12px; }
  .pdiag__gov span + span::before { margin: 0 7px; }
  .cgrid { grid-template-columns: 1fr; }
  .ccard { min-height: 0; }
  .ptl__step { padding-left: 56px; }
  .ptl__n { width: 34px; height: 34px; font-size: 1rem; top: 24px; }
  .ptl__step:not(:last-child)::after { left: 16.5px; top: 58px; }
  .pairs { flex-direction: column; align-items: flex-start; }
  .yt__play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
}

/* ---------- 12. VOICE-ONLY: full "Hear it" player (one sample call, live transcript) ---------- */
.player { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--white); }
.player__side { display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: clamp(28px, 3.4vw, 48px); }
.player__cap { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.5rem, 1vw + 1.2rem, 1.875rem); line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; }
.player__points { display: grid; }
.player__points li { position: relative; padding: 16px 0 16px 28px; border-top: 1px solid var(--line); color: var(--ink-2); }
.player__points li:last-child { border-bottom: 1px solid var(--line); }
.player__points li::before { content: ''; position: absolute; left: 4px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--coral); }

.player__stage { background: var(--dark); color: var(--on-dark); --focus: #F2EFE6; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(28px, 4vw, 56px); min-height: 0; }
.player__tx { position: relative; height: 400px; overflow-y: auto; scrollbar-width: none; scroll-behavior: auto; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 36px, #000 calc(100% - 56px), transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 36px, #000 calc(100% - 56px), transparent 100%); }
.player__tx::-webkit-scrollbar { display: none; }
.ptx { display: grid; gap: 28px; align-content: start; padding: 24px 0 120px; }
.ptx li { padding-left: 20px; border-left: 2px solid var(--line-dark-strong); color: var(--on-dark-3); transition: color .25s, border-color .25s; }
.ptx li.is-past { color: var(--on-dark-2); }
.ptx li.is-active { color: var(--on-dark); border-left-color: var(--coral); }
.ptx .who { display: block; margin-bottom: 4px; font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--coral-lt); }
.ptx .ln { display: block; font-size: 1.1875rem; line-height: 1.5; }
.ptx small { display: block; margin-top: 6px; font-size: .875rem; color: var(--on-dark-3); line-height: 1.45; direction: ltr; text-align: left; }
.ptx li[lang="ar"] { direction: rtl; text-align: right; padding-left: 0; padding-right: 20px; border-left: 0; border-right: 2px solid var(--line-dark-strong); font-family: var(--font-ar); }
.ptx li[lang="ar"].is-active { border-right-color: var(--coral); }
.ptx li[lang="ar"] .who { font-family: var(--font-sans); direction: ltr; text-align: right; }
.ptx li[lang="ar"] .ln { font-size: 1.4375rem; line-height: 1.75; }

.pctl { display: flex; align-items: center; gap: 18px; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.pbtn { width: 56px; height: 56px; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; flex: none; transition: background var(--t); }
.pbtn:hover { background: var(--coral-hover); }
.pbtn .icon { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.pbtn .i-play { margin-left: 3px; }
.pbtn .i-pause { display: none; }
.pbtn[aria-pressed="true"] .i-play { display: none; }
.pbtn[aria-pressed="true"] .i-pause { display: block; }
.pwave { display: flex; align-items: center; gap: 3px; height: 28px; flex: none; }
.pwave span { width: 3px; height: 4px; border-radius: 2px; background: var(--coral); opacity: .6; }
.player.is-playing .pwave span { animation: pwave 1.1s ease-in-out infinite; animation-delay: calc(var(--i) * 45ms); }
@keyframes pwave { 0%, 100% { height: 4px; } 50% { height: 22px; } }
.seek { -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 44px; margin: 0; background: transparent; cursor: pointer; --p: 0%; }
.seek::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--coral) var(--p), var(--line-dark-strong) var(--p)); }
.seek::-moz-range-track { height: 3px; border-radius: 2px; background: var(--line-dark-strong); }
.seek::-moz-range-progress { height: 3px; border-radius: 2px; background: var(--coral); }
.seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5.5px; border-radius: 50%; background: var(--on-dark); border: 0; }
.seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--on-dark); border: 0; }
.ptime { font-size: var(--fs-micro); color: var(--on-dark-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 1000px) { .player { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .pwave { display: none; }
  .pctl { gap: 14px; }
  .player__stage { min-height: 0; gap: 28px; }
  .player__tx { height: 360px; }
  .ptx li[lang="ar"] .ln { font-size: 1.3125rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pdiag__links i { animation: none; }
  .player.is-playing .pwave span { animation: none; height: 12px; }
}

/* ---------- 13. T02 generalisation (V6 build). Not in the mockup: built from the same tokens and components ---------- */
/* Hero without a screenshot, hero badges, wide (16:9) screenshot, stat band with two numbers */
.phero--solo { grid-template-columns: minmax(0, 1fr); }
.phero--solo .phero__copy .lead { max-width: 38em; }
.phero__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.phero__badges li { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border: 1px solid var(--line-dark-strong); border-radius: 999px; color: var(--on-dark-2); font-size: .8125rem; font-weight: 600; line-height: 1; }
.phero__media--wide .frame__body img { aspect-ratio: 16 / 10; object-position: top center; }
.phero__cap { margin-top: 12px; }
.pstats--2 { grid-template-columns: repeat(2, 1fr); }

/* Timeline card without an aside, capability grids of four and five cards, card images */
.ptl__card--solo { grid-template-columns: minmax(0, 1fr); }
.cgrid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cgrid--5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cgrid--5 > .ccard { grid-column: span 2; }
.cgrid--5 > .ccard:nth-child(n+4) { grid-column: span 3; }
.ccard .chip { align-self: flex-start; margin-top: 8px; white-space: normal; line-height: 1.3; padding-block: 6px; }
.ccard__img { margin-top: 12px; border-radius: var(--r-sm); border: 1px solid var(--line); }

/* "The work it takes over": today's paragraph, then the after card with a coral edge */
.px-replace { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.px-replace__col { display: grid; align-content: start; gap: 12px; padding: clamp(28px, 3vw, 40px); border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--white); color: var(--ink-2); }
.px-replace__col--after { border-color: var(--coral); background: var(--coral-soft); color: var(--ink); }
.px-replace__label { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--coral-text); }
.px-replace__col--after .px-replace__label { color: #AE4534; }   /* 4.68:1 on the coral tint (the page token is 4.22:1) */
.px-close { max-width: 46em; margin-top: clamp(28px, 3vw, 40px); padding: 18px 24px; border-left: 2px solid var(--coral); background: linear-gradient(90deg, var(--tan), rgba(239, 232, 221, 0)); font-family: var(--font-serif); font-style: italic; font-size: 1.1875rem; line-height: 1.5; color: var(--ink-2); }
.px-list { display: grid; gap: 4px; }
.px-list li { position: relative; padding: 10px 0 10px 24px; border-top: 1px solid var(--line); }
.px-list li::before { content: ''; position: absolute; left: 2px; top: 1.15em; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.px-list--acc { padding-bottom: 22px; max-width: 640px; color: var(--ink-2); }

/* Two-up cards (works with, Voice launch industries), notes, sub-heads, spacing after a block */
.px-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.px-card { display: flex; flex-direction: column; gap: 10px; padding: clamp(24px, 2.6vw, 32px); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }
.px-card h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.25rem; line-height: 1.25; }
.px-card p { color: var(--ink-2); }
.px-card__does { color: var(--ink); }
.px-after { margin-top: clamp(24px, 2.6vw, 36px); }
.px-sub { margin-bottom: 20px; }
.px-subhead { margin: clamp(36px, 4vw, 56px) 0 24px; font-family: var(--font-serif); font-weight: 600; font-size: 1.5rem; letter-spacing: -.01em; }
.px-note { max-width: 46em; margin-top: 24px; color: var(--ink-2); }
.px-callout { max-width: 46em; margin-top: clamp(24px, 2.6vw, 36px); }
.px-flow { margin: 0 0 clamp(24px, 2.6vw, 36px); border: 1px solid var(--line-dark-strong); border-radius: var(--r-md); background: var(--dark-2); }

/* Works with: who talks to it, the agent, your records */
.px-strip { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; margin-bottom: 8px; }
.px-strip p { display: grid; place-items: center; padding: 20px 24px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--white); text-align: center; color: var(--ink-2); }
.px-strip .px-strip__mid { border-color: var(--coral); background: var(--dark); color: var(--on-dark); font-family: var(--font-serif); font-weight: 600; font-size: 1.25rem; }

/* Use cases (computed): the approved library card in a 3-up grid, section head with the link on the right */
.px-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; margin-bottom: var(--gap-head); }
.px-head .section__head { margin-bottom: 0; }
.px-ucs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.px-ucs > li { display: flex; min-width: 0; }
.px-ucs > li > .uc-card { flex: 1; }

/* Who it is for: department and industry chips, linked */
.px-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.px-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); font-weight: 500; color: var(--ink); transition: border-color var(--t), color var(--t); }
.px-chip:hover { border-color: var(--coral); color: var(--coral-text); }

/* Demo: small print and "Watch all demos" under the player */
.px-demofoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 32px; max-width: 840px; margin: 20px auto 0; }

@media (max-width: 1000px) {
  .px-replace, .px-pair { grid-template-columns: 1fr; }
  .px-ucs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cgrid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cgrid--5 > .ccard, .cgrid--5 > .ccard:nth-child(n+4) { grid-column: auto; }
  .px-strip { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .cgrid--4, .cgrid--5 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .px-ucs, .cgrid--4, .cgrid--5 { grid-template-columns: 1fr; }
  .pstats--2 { grid-template-columns: 1fr; }
  .px-chip { width: 100%; }
}

/* ---------- 12. Hero media: slideshow, silent video loop, icon tile (D-04EN, D-04EP, D-04DZ) ---------- */
.hslide__stage { display: grid; }
.hslide__slide { grid-area: 1 / 1; margin: 0; display: none; }
.hslide__slide.is-active { display: block; }
.phero__media .hslide__slide img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.hslide__cap { padding: 10px 16px; font-size: var(--fs-micro); color: var(--on-dark-2); border-top: 1px solid var(--line-dark); background: var(--dark-3); }
.hslide__ctl { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 4px 8px; background: var(--dark-3); border-top: 1px solid var(--line-dark); }
.hslide__ctl[hidden] { display: none; }
.hslide__btn, .hslide__dot, .hvideo__btn { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--on-dark); cursor: pointer; }
.hslide__btn .icon, .hvideo__btn .icon { width: 18px; height: 18px; }
.hslide__btn:hover, .hvideo__btn:hover { background: rgba(242, 239, 230, .1); }
.hslide__dots { display: flex; gap: 0; }
.hslide__dot span { width: 10px; height: 10px; border-radius: 50%; background: transparent; border: 1.5px solid var(--on-dark-2); transition: background .2s, border-color .2s; }
.hslide__dot[aria-current="true"] span { background: var(--coral-lt); border-color: var(--coral-lt); }
.phero__media .hvideo video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; background: var(--dark-2); }
.hvideo__cap { position: absolute; left: 12px; right: 12px; bottom: 12px; width: fit-content; max-width: calc(100% - 24px); margin: 0; padding: 8px 14px; border-radius: 999px; background: rgba(27, 23, 20, .88); color: var(--on-dark); font-size: .875rem; font-weight: 600; line-height: 1.3; }
.hvideo__cap[hidden] { display: none; }
.hvideo__btn { position: absolute; top: 8px; right: 8px; background: rgba(27, 23, 20, .72); }
.hvideo__btn[hidden] { display: none; }
.hvideo.is-still .hvideo__btn { top: 50%; left: 50%; right: auto; transform: translate(-50%, -50%); min-width: 72px; min-height: 72px; background: var(--coral); color: var(--ink); }
.hvideo.is-still .hvideo__btn .icon { width: 28px; height: 28px; fill: currentColor; stroke: none; }
.hsteps { counter-reset: hs; margin-top: 14px; display: grid; gap: 6px; list-style: none; padding: 0; }
.hsteps li { counter-increment: hs; display: flex; gap: 10px; align-items: baseline; font-size: .875rem; color: var(--on-dark-2); }
.hsteps li::before { content: counter(hs); display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-dark-strong); font-size: .75rem; font-weight: 600; color: var(--coral-lt); }
.hvideo-synced .hsteps { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.htile { display: grid; place-items: center; aspect-ratio: 16 / 10; border: 1px solid var(--line-dark-strong); border-radius: var(--r-md); background: var(--dark-2); }
.htile__tile { display: grid; place-items: center; width: clamp(96px, 12vw, 128px); aspect-ratio: 1; border-radius: 28px; background: rgba(201, 106, 90, .16); border: 1px solid rgba(228, 145, 127, .45); color: var(--coral-lt); }
.htile__tile .icon { width: 48%; height: 48%; stroke-width: 1.25; }
@media (max-width: 1000px) {
  .phero__media .hslide__slide img, .phero__media .hvideo video { aspect-ratio: 16 / 10; }
}
