/* Product overview · phones (≤640px). Works with js/overview-mobile.js, which adds .po2-m to the diagram.
   The diagram is laid out at 390px (design coordinates) and scaled to the screen width with --m-s.
   Without JS the stacked list of the site stays. Desktop and tablet are untouched. */
@media (max-width:640px){
  /* iPhone must not enlarge text on its own: it pushed the step titles onto the route lines */
  html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
  /* Until the script has built the loop, keep its final height and hide the stacked list, so nothing jumps on arrival */
  @media (scripting:enabled){html body #product-overview .po2-flow:not(.po2-m){height:calc(1283 / 390 * 100vw)!important;min-height:0!important;overflow:hidden!important;visibility:hidden}}
  /* Heading in two lines, as in the design */
  html body #product-overview .po2-cap-head h2 em{display:block}
  html body #product-overview .po2-flow.po2-m{position:relative!important;display:block!important;width:390px!important;max-width:none!important;height:var(--m-h)!important;min-height:0!important;margin:-36px 0 calc(var(--m-h) * (var(--m-s) - 1)) var(--m-left)!important;padding:0!important;transform:scale(var(--m-s));transform-origin:0 0;overflow:visible!important}
  html body #product-overview .po2-flow.po2-m>.po2-snake,
  html body #product-overview .po2-flow.po2-m .po2-steps::before,
  html body #product-overview .po2-flow.po2-m .po2-st::before{display:none!important}

  /* Column labels */
  html body #product-overview .po2-flow.po2-m .po2-zone{position:absolute!important;top:12px!important;margin:0!important;padding:0!important;transform:none!important;writing-mode:horizontal-tb!important;font-size:12.5px!important;line-height:1.35!important;font-weight:600!important;letter-spacing:0!important;color:#1d8f8c!important;text-align:center!important;white-space:normal!important}
  html body #product-overview .po2-flow.po2-m .po2-zone-bot{left:4px!important;width:172px!important}
  html body #product-overview .po2-flow.po2-m .po2-zone-top{left:190px!important;width:190px!important}

  /* Steps appear one by one (js/overview-mobile.js adds .m-in as each comes into view) */
  html body #product-overview .po2-flow.po2-m.m-reveal .po2-st.po2-st{transition:opacity .6s ease,translate .6s ease,filter .35s ease!important}
  html body #product-overview .po2-flow.po2-m.m-reveal .po2-st.po2-st:not(.m-in){opacity:0!important;translate:0 16px!important}
  @media (prefers-reduced-motion:reduce){html body #product-overview .po2-flow.po2-m.m-reveal .po2-st.po2-st:not(.m-in){opacity:1!important;translate:none!important}}
  /* Route, arrows and the travelling dot */
  .po2-m-map{position:absolute;left:0;top:30px;width:390px;height:1253px;pointer-events:none}
  .po2-m-back,.po2-m-front{position:absolute;left:0;top:0;display:block;overflow:visible;pointer-events:none}
  .po2-m-front{top:30px;z-index:3}
  .po2-m-route{fill:none;stroke:#46526a;stroke-width:calc(5.4px / var(--m-s,1));stroke-linejoin:round;stroke-linecap:round}
  .po2-m-arrow{fill:none;stroke:#46526a;stroke-width:calc(4.4px / var(--m-s,1));stroke-linecap:round;stroke-linejoin:round}
  .po2-m-dot{position:absolute;left:0;top:0;width:10px;height:10px;border-radius:50%;background:#69ead3;box-shadow:0 0 0 4px rgba(105,234,211,.25);offset-rotate:0deg;offset-anchor:center;animation:po2-m-travel 30s linear infinite}
  @keyframes po2-m-travel{from{offset-distance:0%}to{offset-distance:100%}}
  @media (prefers-reduced-motion:reduce){.po2-m-dot{animation:none}}

  /* Steps */
  html body #product-overview .po2-flow.po2-m .po2-steps{position:absolute!important;left:0!important;top:30px!important;display:block!important;width:390px!important;height:1253px!important;margin:0!important;padding:0!important;gap:0!important;list-style:none}
  html body #product-overview .po2-flow.po2-m .po2-st{position:absolute!important;top:var(--m-top)!important;left:190px!important;width:180px!important;height:auto!important;margin:0!important;padding:0!important;opacity:1;translate:none!important;transform:none!important;transition:opacity .35s ease,filter .35s ease;z-index:2!important}
  html body #product-overview .po2-flow.po2-m .po2-st[data-col="central"]{left:12px!important;width:148px!important}
  html body #product-overview .po2-flow.po2-m .po2-st.po2-st.m-open{z-index:90!important}
  html body #product-overview .po2-flow.po2-m .po2-hit{display:block!important;width:100%!important;margin:0!important;padding:0!important;border:0!important;background:none!important;text-align:left!important;cursor:default;opacity:1!important;translate:none!important;transform:none!important;-webkit-tap-highlight-color:transparent}
  html body #product-overview .po2-flow.po2-m .po2-hit:focus-visible{outline:2px solid #1d8f8c;outline-offset:4px;border-radius:6px}
  html body #product-overview .po2-flow.po2-m .po2-st h3{position:static!important;width:auto!important;margin:0!important;padding:0!important;transform:none!important;font-size:14.5px!important;line-height:1.22!important;font-weight:400!important;letter-spacing:-.1px!important;color:#0f2a40!important;text-align:left!important}
  /* Titles centred over their illustration in both columns (field execution and central management & planning) */
  html body #product-overview .po2-flow.po2-m .po2-st.po2-st h3{text-align:center!important}
  /* "Energize" on its own line and "for the day" below, so the title never breaks oddly */
  html body #product-overview .po2-flow.po2-m .po2-st[data-n="1"] h3 em{display:block}
  html body #product-overview .po2-flow.po2-m .po2-st h3 em{font-style:italic;font-weight:500;color:#1a8280}
  html body #product-overview .po2-flow.po2-m .po2-st[data-col="central"] h3{padding:2px 0 6px!important;background:#fff;font-size:12.5px!important;line-height:1.35!important;color:#4a5f80!important}
  html body #product-overview .po2-flow.po2-m .po2-st[data-col="central"] h3 em{font-style:normal;font-weight:400;color:inherit}
  /* Field illustrations: size, offset and crop set by the script (whole picture in the column, feet on the route) */
  html body #product-overview .po2-flow.po2-m .po2-st[data-col="field"] .po2-media{position:relative!important;display:block!important;height:auto!important;max-width:none!important;margin-right:0!important;overflow:visible!important}
  /* Still pictures that replace the animated illustrations on phones (js/overview-mobile.js) */
  html body #product-overview .po2-flow .po2-m-still{position:absolute!important;left:0!important;top:0!important;max-width:none!important;max-height:none!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;object-fit:fill!important;transform-origin:0 0!important;pointer-events:none;background:transparent!important;clip-path:none!important;aspect-ratio:auto!important}
  html body #product-overview .po2-flow .po2-st[data-n="4"] .po2-piece-i .po2-m-still{-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 14%),linear-gradient(to right,transparent 0,#000 12%);-webkit-mask-composite:source-in;mask-image:linear-gradient(to bottom,transparent 0,#000 14%),linear-gradient(to right,transparent 0,#000 12%);mask-composite:intersect}
  /* Central illustrations: small framed screens */
  html body #product-overview .po2-flow.po2-m .po2-st[data-col="central"] :is(.po2-media,.po2-act-wrap){position:relative!important;display:block!important;width:136px!important;max-width:none!important;height:auto!important;margin:4px auto 0!important;border-radius:6px;background:#fff;box-shadow:0 6px 14px -10px rgba(6,45,81,.5);overflow:hidden!important}

  /* With a capability chosen: its steps stay sharp, the rest fade */
  html body #product-overview .po2-flow.po2-m[data-sel="1"] .po2-st:not(.is-on){opacity:.25!important;filter:grayscale(1)}

  /* Description bubble: beside its step, in the other column, pointing at it */
  html body #product-overview .po2-flow.po2-m .po2-st>.po2-bubble{position:absolute!important;inset:auto!important;top:6px!important;left:-182px!important;z-index:6;width:172px!important;max-width:none!important;margin:0!important;box-sizing:border-box;padding:12px 14px 14px!important;border-radius:14px!important;background:#fff!important;border:1px solid #bfe3dc!important;box-shadow:0 18px 34px -16px rgba(6,45,81,.55)!important;transform:none!important;animation:none!important;opacity:1!important;visibility:visible!important;pointer-events:auto}
  html body #product-overview .po2-flow.po2-m .po2-st>.po2-bubble[hidden]{display:none!important}
  /* Bubble in the space opened under its step, in its own column (js/overview-mobile.js), tip pointing up at the step */
  html body #product-overview .po2-flow.po2-m .po2-st.po2-st>.po2-bubble{top:var(--m-gap,44px)!important;bottom:auto!important;left:-8px!important;width:196px!important;padding:10px 12px 11px!important;animation:po2-m-bubble-in .3s ease both!important}
  html body #product-overview .po2-flow.po2-m .po2-st.po2-st[data-col="central"]>.po2-bubble{left:-6px!important;width:172px!important}
  /* Tip: two plain triangles (border colour behind, white in front), no rotated square, so iPhone draws it cleanly */
  html body #product-overview .po2-flow.po2-m .po2-st.po2-st>.po2-bubble::before,
  html body #product-overview .po2-flow.po2-m .po2-st.po2-st>.po2-bubble::after{content:""!important;display:block!important;position:absolute!important;bottom:auto!important;right:auto!important;left:var(--tip-x,92px)!important;width:0!important;height:0!important;background:none!important;border-style:solid!important;border-color:transparent!important;border-radius:0!important;transform:none!important;rotate:none!important}
  html body #product-overview .po2-flow.po2-m .po2-st.po2-st>.po2-bubble::before{top:-9px!important;margin-left:-1px!important;border-width:0 9px 9px 9px!important;border-bottom-color:#bfe3dc!important}
  html body #product-overview .po2-flow.po2-m .po2-st.po2-st>.po2-bubble::after{top:-7px!important;border-width:0 8px 8px 8px!important;border-bottom-color:#fff!important}
  html body #product-overview .po2-flow.po2-m .po2-st.po2-st[data-col="central"]>.po2-bubble{--tip-x:74px}
  @keyframes po2-m-bubble-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
  html body #product-overview .po2-flow.po2-m .po2-bubble-t{display:block;font-size:13px!important;line-height:1.5!important;color:#4a5f80!important;text-align:left!important}
  html body #product-overview .po2-flow.po2-m .po2-bubble-t strong{font-weight:650;color:#0f2a40}
  html body #product-overview .po2-flow.po2-m .po2-st>.po2-bubble:not([hidden]){display:flex!important;flex-direction:column}
  html body #product-overview .po2-flow.po2-m .po2-bubble-close{order:-1;align-self:flex-end;position:static!important;width:30px!important;height:30px!important;margin:-4px -6px 2px 0!important;padding:0!important;border:0!important;border-radius:50%!important;background:#eef4f6!important;color:#0f2a40!important;font:inherit;font-size:17px!important;line-height:1!important;cursor:pointer}

  /* Capabilities right under the diagram */
  html body.ov-m #product-overview .po2-caps{order:2!important;margin-top:26px!important}
  html body.ov-m #product-overview .po2-cap-item button em{font-style:italic}

  /* A robust and flexible architecture: one card at a time, the next one peeking in; each illustration whole */
  html body #product-overview .po2-architecture .po2-arch-carousel{padding:0!important;width:100%!important}
  html body #product-overview .po2-arch-window{padding:0 0 6px 20px!important;-webkit-mask-image:none!important;mask-image:none!important}
  html body #product-overview .po2-arch-track{gap:14px!important}
  html body #product-overview .po2-arch-card{flex:0 0 min(340px,calc(100vw - 50px))!important;display:grid!important;grid-template-rows:auto auto 1fr!important;gap:0!important;padding:0 20px 22px!important;border-radius:22px!important;background:#fff!important;box-shadow:none!important;overflow:hidden!important}
  html body #product-overview .po2-arch-card::before,html body #product-overview .po2-arch-card::after{display:none!important}
  html body #product-overview .po2-arch-card .po2-arch-art{width:auto!important;height:auto!important;aspect-ratio:3/2!important;margin:0 -20px 16px!important;padding:0!important;background:#fff!important;border:0!important;border-radius:0!important;overflow:hidden!important}
  /* Phones show a still picture of each illustration instead of the live page: lighter for iPhone (fewer pages in memory) and Safari drew some of them wrong */
  html body #product-overview .po2-arch-card .po2-arch-art iframe{display:none!important}
  html body #product-overview .po2-arch-card .po2-arch-art .po2-arch-still{display:block!important;width:100%!important;height:100%!important;object-fit:contain}
  html body #product-overview .po2-arch-card-heading{gap:6px!important;justify-content:flex-start!important}
  html body #product-overview .po2-arch-card .po2-arch-category{font-size:12px!important;font-weight:600!important;letter-spacing:.03em!important;color:#087f83!important}
  html body #product-overview .po2-arch-card h3{font-size:20px!important;line-height:1.25!important;font-weight:500!important;letter-spacing:0!important;color:#0f2a40!important}
  html body #product-overview .po2-arch-card>p{margin-top:8px!important;font-size:14.5px!important;line-height:1.55!important;color:#4a5f80!important}
  html body #product-overview .po2-arch-controls{width:calc(100% - 40px)!important;margin:18px 20px 0!important}
}
@media (max-width:640px){
  /* Small, compact text so the bubble stays over its own illustration and off the next titles; the × sits on the corner */
  html body #product-overview .po2-flow.po2-m .po2-st.po2-st>.po2-bubble:not([hidden]){display:block!important;padding:8px 8px 9px 10px!important}
  html body #product-overview .po2-flow.po2-m .po2-st.po2-st .po2-bubble-t{font-size:11.5px!important;line-height:1.45!important}
  html body #product-overview .po2-flow.po2-m .po2-st.po2-st .po2-bubble-close{position:absolute!important;top:-9px!important;right:-7px!important;width:22px!important;height:22px!important;margin:0!important;font-size:13px!important;background:#fff!important;border:1px solid #bfe3dc!important;box-shadow:0 4px 10px -6px rgba(6,45,81,.5)}
  /* The × of the font sits off-centre in the circle: hide the character and draw the cross with two centred lines */
  html body #product-overview .po2-flow.po2-m .po2-st.po2-st .po2-bubble-close{width:24px!important;height:24px!important;top:-10px!important;right:-8px!important;font-size:0!important;color:transparent!important;line-height:0!important;display:block!important;overflow:hidden}
  html body #product-overview .po2-flow.po2-m .po2-st.po2-st .po2-bubble-close::before,
  html body #product-overview .po2-flow.po2-m .po2-st.po2-st .po2-bubble-close::after{content:"";position:absolute;left:50%;top:50%;width:10px;height:1.6px;margin:-.8px 0 0 -5px;border-radius:1px;background:#0f2a40;transform:rotate(45deg)}
  html body #product-overview .po2-flow.po2-m .po2-st.po2-st .po2-bubble-close::after{transform:rotate(-45deg)}
}

/* v45: short descriptions on phones. js/overview-mobile.js adds the short text (.po2-bubble-s, the key phrase in
   bold) after the full one; the full text stays in the page for desktop and is hidden here. The field drawings
   are drawn at 86% by js/overview-mobile.js (layout sizes, no transforms). */
@media (max-width: 640px) {
  html body #product-overview .po2-flow.po2-m .po2-bubble-t:not(.po2-bubble-s){display:none!important}
}
