/* =================================================================
   Corporate webshop V2: process animation + platform features.
   Loaded only on the V2 review route (inc/review.php). Uses existing
   tokens from css/styles.css; no new colours, fonts or sizes.
   ================================================================= */

/* ---------- Process animation: copy left / video right on the same rounded
   pastel-gradient panel as the "Book a call with the team" form on the
   managed branded merchandise landing page (.lp-book). Boxed in the
   container like that panel, dark type, orange accent. ---------- */
.portal-demo {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 718px); align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 3.5rem);
  background: url("../assets/img/landing/blue-grads-landscape-01.jpg") center / cover no-repeat;
}
.portal-demo__copy h2 { max-width: 14ch; margin-bottom: 1.3rem; }
.portal-demo__copy p { color: var(--body); font-size: var(--lead); line-height: 1.4; max-width: 46ch; }
.portal-demo__copy .cta-row { margin-top: 2rem; }
.portal-demo__steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: .75rem; margin-top: 1.25rem; max-width: 46ch; }
.portal-demo__steps li { counter-increment: step; position: relative; padding-left: 2.4rem; color: var(--body); font-size: 1.05rem; line-height: 1.35; }
.portal-demo__steps li::before { content: counter(step); position: absolute; left: 0; top: .05rem; width: 1.65rem; height: 1.65rem; border-radius: 50%; background: var(--orange); color: #fff; font-size: .85rem; font-weight: 700; display: grid; place-items: center; }
.portal-demo__steps strong { color: var(--ink); }
.portal-demo__copy .arrow-circle:not(:hover) { border-color: #000; color: #000; }
.portal-demo__media { margin: 0; width: 100%; max-width: 718px; justify-self: end; } /* native source width: never upscale */
.portal-demo__frame {
  position: relative;
  aspect-ratio: 718 / 430;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.portal-demo__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.portal-demo__toggle {
  position: absolute; right: .75rem; bottom: .75rem;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .8rem; border: 0; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: .8rem; font-weight: 700; line-height: 1;
  opacity: .85; transition: opacity .2s;
}
.portal-demo__toggle:hover, .portal-demo__toggle:focus-visible { opacity: 1; }
.portal-demo__toggle svg { width: 12px; height: 12px; }
.portal-demo__toggle .ico-pause, .portal-demo__toggle[aria-pressed="false"] .ico-play { display: block; }
.portal-demo__toggle .ico-play,  .portal-demo__toggle[aria-pressed="false"] .ico-pause { display: none; }
.portal-demo__media figcaption { margin-top: .9rem; font-size: .85rem; color: var(--body); opacity: .7; text-align: center; }

@media (max-width: 1024px) {
  .portal-demo { grid-template-columns: 1fr; padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2.5rem); }
  .portal-demo__copy h2 { max-width: 18ch; }
  .portal-demo__media { justify-self: stretch; max-width: 718px; margin-inline: auto; }
}
@media (max-width: 560px) {
  .portal-demo { border-radius: var(--radius-sm); }
  .portal-demo__copy .cta-row { flex-wrap: wrap; }
}

/* Centred intros under the V2 section headings: the sitewide .section-head
   measure (760px) wraps these onto four short lines; let them run wider. */
#webshop-features .section-head, #webshop-benefits .section-head { max-width: 960px; }
#webshop-features .section-head p, #webshop-benefits .section-head p { max-width: 82ch; margin-inline: auto; text-wrap: pretty; }

/* ---------- Platform features: three-by-two grid, tinted icon tile, thin
   column dividers (the reference layout in JSM tokens). Deliberately
   lighter than the .webshop-card image cards below. ---------- */
.portal-grid { display: grid; grid-template-columns: repeat(3, 1fr); row-gap: clamp(2rem, 4vw, 3rem); max-width: 1240px; margin-inline: auto; }
.portal-card { display: flex; flex-direction: column; align-items: flex-start; padding-inline: clamp(1.25rem, 2.5vw, 2.5rem); }
.portal-card:nth-child(3n + 1) { padding-left: 0; }
.portal-card:nth-child(3n) { padding-right: 0; }
.portal-card:not(:nth-child(3n + 1)) { border-left: 1px solid var(--line); }
.portal-card__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; background: var(--bg-soft); margin-bottom: 1.25rem; }
.portal-card__icon svg { width: 30px; height: 30px; }
.portal-card h4 { font-size: var(--h4); font-weight: 700; color: var(--ink); margin-bottom: .6rem; max-width: 26ch; }
.portal-card p { color: var(--body); font-size: 1rem; line-height: 1.45; max-width: 34ch; }

@media (max-width: 900px) {
  .portal-grid { grid-template-columns: repeat(2, 1fr); }
  .portal-card { padding-inline: clamp(1rem, 3vw, 2rem); border-left: 0 !important; }
  .portal-card:nth-child(odd) { padding-left: 0; }
  .portal-card:nth-child(even) { padding-right: 0; border-left: 1px solid var(--line) !important; }
}
@media (max-width: 560px) {
  .portal-grid { grid-template-columns: 1fr; row-gap: 2rem; }
  .portal-card, .portal-card:nth-child(even) { padding-inline: 0; border-left: 0 !important; }
  .portal-card p { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .portal-demo__toggle { transition: none; }
}
