/* Platform pages (T03) beyond the approved Automation Pro showcase: the product hero for the other platforms,
   chapter icon tiles, ServiceDeskPro Delivery Notes columns, and the gated D-04CV sections (replaces, use cases,
   related). Loads after product.css and automation-pro.css; uses only tokens from system.css. */

/* ---------- Product hero with a 16:9 frame from the demo ---------- */
.plat-hero__media { margin: 0; max-width: 600px; }
.plat-hero__media .frame__body img { aspect-ratio: 16 / 9; object-position: center top; }
.plat-hero__media figcaption { margin-top: 12px; }
.plat-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.phero__copy .ap-assure { justify-content: flex-start; }
.hero .ap-assure { color: var(--on-dark-2); }   /* the dark hero: was --ink-2 (#4A4741) on #1B1714, 1.92:1 */
.hero .ap-assure .icon { color: var(--coral-lt); }

/* ---------- Chapters ---------- */
.plat-head { margin-bottom: clamp(40px, 4.4vw, 64px); }
.plat-cap { margin-top: 12px; }
.plat-tile { display: grid; place-items: center; aspect-ratio: 16 / 9; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--paper-2); }
.plat-tile .icon { width: 56px; height: 56px; color: var(--coral-text); stroke-width: 1.25; }
.plat-chips { margin-top: clamp(40px, 4.4vw, 64px); display: grid; gap: 16px; }
.plat-chips .pills { gap: 8px; }

/* ---------- Text-only connection entries (channels, file formats) ---------- */
.ap-lg .plat-item { align-items: flex-start; min-height: 0; padding: 6px 0; }
.ap-lg .plat-item small { margin-top: 2px; }

/* ---------- ServiceDeskPro: Delivery Notes, three numbered columns ---------- */
.plat-dn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.plat-dn__step { display: grid; align-content: start; gap: 14px; }
.plat-dn__step .ap-step__node { margin-bottom: 6px; }
.plat-dn__step p { color: var(--ink-2); max-width: 26em; text-wrap: pretty; }
.plat-dn__imgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: clamp(32px, 3.4vw, 48px); }

/* ---------- What it replaces (hidden until reviewed, D-04CV) ---------- */
.plat-rep__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.plat-rep__col > p { color: var(--ink-2); text-wrap: pretty; }
.plat-rep__col .ap-points { margin-top: 0; }
.plat-rep__col--after { display: grid; gap: 12px; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-md); background: var(--dark); color: var(--on-dark); }
.plat-rep__col--after > p { color: var(--on-dark-2); }
.plat-rep__col--after .tag { color: var(--coral-lt); }

/* ---------- Use cases and related cards (hidden until reviewed, D-04CV) ---------- */
.plat-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plat-card > a, .plat-card > span { display: grid; gap: 8px; height: 100%; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); color: var(--ink); transition: border-color var(--t), transform var(--t); }
.plat-card > a:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.plat-card b { font-family: var(--font-serif); font-weight: 600; font-size: 1.1875rem; line-height: 1.3; }
.plat-card small { color: var(--ink-2); font-size: var(--fs-small); line-height: 1.5; }

@media (max-width: 1000px) {
  .plat-hero__media { max-width: none; }
  .plat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .plat-dn, .plat-rep__cols, .plat-cards { grid-template-columns: 1fr; }
}
