/* CareLearn motion layer (mockup). Everything is visible without JavaScript: the hidden start states only
   apply once motion.js has added .mo-on to the page. Only transform and opacity are animated. */

/* ---------- layout for the new sections ---------- */
.h-sys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 1040px; margin: 34px auto 0; text-align: left; }
.h-sys-c { display: block; padding: 22px 24px 24px; }
.h-sys-c .h-eyebrow { margin: 16px 0 0; text-align: left; }
.h-sys-c h3 { font-size: 1.3rem; margin: 6px 0 8px; }
.h-sys-c .h-chips { margin-top: 16px; gap: 8px; }
.h-sys-c .h-link { display: inline-flex; margin-top: 14px; }
.h-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; }
.h-chips li svg { width: 18px; height: 18px; color: #0551DC; flex: none; }
.h-sys-note { max-width: 1040px; margin: 14px auto 0; font-size: .8rem; color: #6B7280; text-align: center; }
@media (max-width: 760px) { .h-sys { grid-template-columns: 1fr; } }

.h-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1040px; margin: 34px auto 0; text-align: left; }
.h-pf { display: block; padding: 18px 20px 22px; }
.h-pf h3 { font-size: 1.12rem; margin: 16px 0 6px; }
@media (max-width: 860px) { .h-proof { grid-template-columns: 1fr; max-width: 460px; } }

/* small pictures inside cards */
.h-viz, .pf-viz { position: relative; height: 132px; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, rgba(5,81,220,.10), rgba(5,81,220,.03) 60%, rgba(255,255,255,.5)); border: 1px solid rgba(255,255,255,.8); }
.h-viz span, .pf-viz span { position: absolute; display: block; }

/* integrations: three sources feed a team list */
.vz-src { left: 22px; top: 22px; width: 58px; }
.vz-src i { display: block; height: 22px; margin-bottom: 11px; border-radius: 8px; background: #fff; box-shadow: 0 3px 10px rgba(20,24,40,.10); }
.vz-flow { left: 86px; right: 178px; top: 22px; height: 88px; }
.vz-flow b { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(5,81,220,.15), #0551DC); transform-origin: left center; }
.vz-flow b:nth-child(1) { top: 10px; } .vz-flow b:nth-child(2) { top: 43px; } .vz-flow b:nth-child(3) { top: 76px; }
.vz-flow b::after { content: ""; position: absolute; right: -3px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #0551DC; }
.vz-app { right: 22px; top: 14px; width: 150px; height: 104px; padding: 10px 12px; border-radius: 12px; background: #fff; box-shadow: 0 8px 22px rgba(20,24,40,.12); }
.vz-app em, .vz-lms em, .pf-prof small, .pf-card small { display: block; font-style: normal; font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6B7280; }
.vz-app u, .vz-lms u { display: block; height: 9px; margin-top: 10px; border-radius: 5px; background: linear-gradient(90deg, #0551DC 0 14px, transparent 14px 20px, #DCE5F5 20px); text-decoration: none; transform-origin: left center; }
.vz-app u:nth-of-type(2) { width: 82%; } .vz-app u:nth-of-type(3) { width: 91%; }

/* SCORM: a package drops into your LMS */
.vz-pkg { left: 26px; top: 46px; padding: 9px 13px; border-radius: 10px; background: #0551DC; color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .02em; box-shadow: 0 8px 18px rgba(5,81,220,.35); }
.vz-lms { right: 22px; top: 14px; width: 172px; height: 104px; padding: 10px 12px; border-radius: 12px; background: #fff; box-shadow: 0 8px 22px rgba(20,24,40,.12); }
.vz-lms u { background: #DCE5F5; } .vz-lms u:nth-of-type(2) { width: 70%; }
.vz-lms s { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 26px; border-radius: 8px; background: linear-gradient(90deg, #0551DC, #3B82F6); text-decoration: none; }
.vz-lms s::after { content: ""; position: absolute; left: 12px; top: 8px; border: 5px solid transparent; border-left: 8px solid #fff; }

/* proof tiles */
.pf-card { left: 50%; top: 16px; width: 190px; margin-left: -95px; height: 100px; padding: 12px 14px; border-radius: 12px; background: #fff; box-shadow: 0 8px 22px rgba(20,24,40,.12); overflow: hidden; }
.pf-card b { display: block; margin-top: 6px; font-size: .86rem; line-height: 1.2; color: #1D1D1F; max-width: 100px; }
.pf-qr { position: absolute; right: 12px; top: 12px; width: 46px; height: 46px; color: #1D1D1F; }
.pf-scan { position: absolute; right: 8px; top: 10px; width: 54px; height: 3px; border-radius: 3px; background: #0551DC; box-shadow: 0 0 10px 2px rgba(5,81,220,.55); opacity: 0; }
.pf-viz .pf-ok { left: 50%; bottom: 22px; margin-left: -81px; padding: 3px 9px; border-radius: 999px; background: #E7F6EC; color: #1A7F37; font-size: .68rem; font-weight: 700; }
.pf-prof { left: 50%; top: 14px; width: 216px; margin-left: -108px; height: 104px; padding: 11px 13px; border-radius: 12px; background: #fff; box-shadow: 0 8px 22px rgba(20,24,40,.12); }
.pf-viz .pf-row { position: relative; margin-top: 9px; padding-left: 30px; min-height: 24px; }
.pf-row::before { content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 6px; background: #DCE5F5; }
.pf-row.new::before { background: #0551DC; }
.pf-row u { display: block; height: 7px; margin-bottom: 6px; border-radius: 4px; background: #E6EBF4; text-decoration: none; width: 78%; } .pf-row u + u { width: 52%; }
.pf-row b { display: block; font-size: .74rem; line-height: 1.15; color: #1D1D1F; } .pf-row em { display: block; font-style: normal; font-size: .64rem; color: #0551DC; font-weight: 600; }
.pf-hrs svg { position: absolute; left: 50%; top: 14px; width: 104px; height: 104px; margin-left: -52px; transform: rotate(-90deg); }
.pf-ring-bg { fill: none; stroke: #DCE5F5; stroke-width: 7; }
.pf-ring { fill: none; stroke: #0551DC; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 201; stroke-dashoffset: 62; }
.pf-viz .pf-num { left: 0; right: 0; top: 44px; text-align: center; line-height: 1; }
.pf-num b { display: block; font-size: 1.5rem; letter-spacing: -.03em; color: #1D1D1F; font-variant-numeric: tabular-nums; }
.pf-num small { font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6B7280; }
.pf-viz .pf-tag { right: 10px; top: 10px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.85); font-size: .62rem; font-weight: 700; color: #6B7280; }

/* scroll progress line under the menu */
.mo-progress { position: fixed; left: 0; top: 0; width: 100%; height: 3px; z-index: 60; background: linear-gradient(90deg, #0551DC, #5AA2FF); transform: scaleX(0); transform-origin: left center; pointer-events: none; }

/* ---------- motion (only when motion.js is running and the visitor has not asked for less motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* headings and intro text rise in */
  .mo-on .mo { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: var(--mo-d, 0ms); }
  .mo-on .mo.mo-in { opacity: 1; transform: none; }

  /* hero: words rise one after another, then text, buttons and the certificate */
  .mo-on .h-hero-home h1 .mo-w { display: inline-block; opacity: 0; transform: translateY(.55em) rotate(2deg); animation: moWord .7s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(120ms + var(--i) * 55ms); }
  .mo-on .h-hero-home .h-lead, .mo-on .h-hero-home .h-cta, .mo-on .h-hero-home .h-fine { opacity: 0; animation: moUp .7s cubic-bezier(.2,.8,.2,1) forwards; }
  .mo-on .h-hero-home .h-lead { animation-delay: .62s; } .mo-on .h-hero-home .h-cta { animation-delay: .76s; } .mo-on .h-hero-home .h-fine { animation-delay: .9s; }
  .mo-on .h-hero-home .h-hero-card { animation: moCard .9s cubic-bezier(.2,.8,.2,1) .95s both, moFloat 7s ease-in-out 2s infinite; }
  .mo-on .h-hero-home .h-hc-ok { animation: moPop .5s cubic-bezier(.3,1.6,.5,1) 1.7s both; }

  /* cards: lift, and a soft light that follows the pointer */
  @media (hover: hover) and (pointer: fine) {
    .mo-on .h-why-c.h-rv, .mo-on .h-plan.h-rv, .mo-on .h-offer.h-rv { transition: opacity .7s ease, transform .8s cubic-bezier(.2,.8,.2,1), translate .26s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--rv-i, 0) * 80ms), calc(var(--rv-i, 0) * 80ms), 0s; }
    .mo-on .h-why-c.fx-in:hover, .mo-on .h-plan.fx-in:hover, .mo-on .h-offer.fx-in:hover { translate: 0 -5px; }
    .mo-on .mo-glow { position: relative; }
    .mo-on .mo-glow::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s ease;
      background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(5,81,220,.13), transparent 60%); }
    .mo-on .mo-glow:hover::after { opacity: 1; }
    .mo-on .h-role img { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
    .mo-on .h-role:hover img { transform: scale(1.05); }
    .mo-on .h-role .h-role-cap { transition: transform .3s cubic-bezier(.2,.8,.2,1); }
    .mo-on .h-role:hover .h-role-cap { transform: translateY(-4px); }
    .mo-on .btn.h-btn { transition: transform .18s ease, box-shadow .18s ease; }
    .mo-on .btn.h-btn:hover { transform: translateY(-1px) scale(1.02); }
    .mo-on .h-link .h-arr { transition: transform .18s ease; } .mo-on .h-link:hover .h-arr { transform: translateX(4px); }
    .mo-on .h-chips li svg { transition: transform .18s ease; } .mo-on .h-chips li:hover svg { transform: translateY(-2px) scale(1.08); }
    .mo-on .h-opt { transition: transform .16s ease, border-color .18s ease, background .18s ease; } .mo-on .h-opt:hover { transform: translateX(4px); }
  }
  .mo-on .btn.h-btn:active, .mo-on .h-opt:active { transform: scale(.98); }

  /* scenario: options arrive in turn, the answer responds */
  .mo-on .h-try .h-opt { opacity: 0; transform: translateY(12px); }
  .mo-on .h-try.fx-in .h-opt { animation: moUp .5s cubic-bezier(.2,.8,.2,1) forwards; }
  .mo-on .h-try.fx-in .h-opt:nth-child(1) { animation-delay: .25s; } .mo-on .h-try.fx-in .h-opt:nth-child(2) { animation-delay: .37s; } .mo-on .h-try.fx-in .h-opt:nth-child(3) { animation-delay: .49s; }
  .mo-on .h-opt.right, .mo-on .h-opt.wrong { opacity: 1; transform: none; }
  .mo-on .h-opt.right .h-key, .mo-on .h-opt.wrong .h-key { animation: moPop .4s cubic-bezier(.3,1.6,.5,1); }
  .mo-on .h-opt.right { animation: moRing .9s ease-out; }
  .mo-on .h-opt.wrong { animation: moNudge .35s ease; }
  .mo-on .h-quiz-fb.good, .mo-on .h-quiz-fb.bad { animation: moUp .35s cubic-bezier(.2,.8,.2,1); }

  /* integrations picture: lines draw across, the team list fills in */
  .mo-on .h-viz-sync .vz-src i { opacity: 0; transform: translateX(-10px); }
  .mo-on .h-viz-sync .vz-flow b { transform: scaleX(0); }
  .mo-on .h-viz-sync .vz-app u { transform: scaleX(0); }
  .mo-on .fx-in .h-viz-sync .vz-src i { animation: moRight .45s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(.2s + var(--n) * .1s); }
  .mo-on .fx-in .h-viz-sync .vz-flow b { animation: moDraw .6s cubic-bezier(.4,0,.2,1) forwards; animation-delay: calc(.6s + var(--n) * .12s); }
  .mo-on .fx-in .h-viz-sync .vz-app u { animation: moDraw .45s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(1.25s + var(--n) * .14s); }
  .mo-on .h-viz i:nth-child(1), .mo-on .h-viz b:nth-child(1), .mo-on .h-viz u:nth-of-type(1) { --n: 0; } .mo-on .h-viz i:nth-child(2), .mo-on .h-viz b:nth-child(2), .mo-on .h-viz u:nth-of-type(2) { --n: 1; } .mo-on .h-viz i:nth-child(3), .mo-on .h-viz b:nth-child(3), .mo-on .h-viz u:nth-of-type(3) { --n: 2; }
  /* SCORM picture: the package slides into the LMS and a play bar appears */
  .mo-on .h-viz-scorm .vz-lms s { opacity: 0; transform: scaleX(.3); transform-origin: left center; }
  .mo-on .fx-in .h-viz-scorm .vz-pkg { animation: moPkg 1.5s cubic-bezier(.5,0,.2,1) .4s both; }
  .mo-on .fx-in .h-viz-scorm .vz-lms s { animation: moBar .5s cubic-bezier(.2,.8,.2,1) 1.6s forwards; }
  /* chips pop in */
  .mo-on .h-sys-c .h-chips li { opacity: 0; transform: translateY(8px) scale(.94); }
  .mo-on .h-sys-c.fx-in .h-chips li { animation: moUp .4s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(.5s + var(--i, 0) * 60ms); }

  /* proof tiles */
  .mo-on .pf-cert .pf-ok { opacity: 0; }
  .mo-on .fx-in .pf-cert .pf-scan { animation: moScan 1.1s ease-in-out .5s 2 alternate both; }
  .mo-on .fx-in .pf-cert .pf-ok { animation: moPop .45s cubic-bezier(.3,1.6,.5,1) 2.5s forwards; }
  .mo-on .pf-li .pf-row.new { opacity: 0; transform: translateY(14px); }
  .mo-on .fx-in .pf-li .pf-row.new { animation: moUp .55s cubic-bezier(.2,.8,.2,1) .7s forwards; }
  .mo-on .fx-in .pf-li .pf-row.new::before { animation: moPop .45s cubic-bezier(.3,1.6,.5,1) 1.1s both; }
  .mo-on .pf-hrs .pf-ring { stroke-dashoffset: 201; }
  .mo-on .fx-in .pf-hrs .pf-ring { transition: stroke-dashoffset 1.4s cubic-bezier(.2,.8,.2,1) .4s; stroke-dashoffset: 62; }

  /* steps: each circle pops as it appears */
  .mo-on .h-step .h-step-ic { transform: scale(.82); opacity: 0; }
  .mo-on .h-steps.mo-in .h-step .h-step-ic { animation: moPop .5s cubic-bezier(.3,1.6,.5,1) forwards; animation-delay: calc(var(--i) * 160ms); }
  .mo-on .h-step .h-step-tx { opacity: 0; transform: translateY(10px); }
  .mo-on .h-steps.mo-in .h-step .h-step-tx { animation: moUp .5s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(120ms + var(--i) * 160ms); }

  /* training register rows and price cards */
  .mo-on .h-ledger tbody tr { opacity: 0; transform: translateX(-10px); }
  .mo-on .h-ledger.mo-in tbody tr { animation: moRight .45s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(.15s + var(--i) * 90ms); }
  .mo-on .h-band.mo-in::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent); transform: translateX(-120%) skewX(-12deg); animation: moSheen 1.2s ease-out .5s 1 both; }
  .mo-on .h-band { position: relative; overflow: hidden; }

  /* FAQ answers ease open */
  .mo-on details.h-qa[open] > p { animation: moUp .3s cubic-bezier(.2,.8,.2,1); }
}

@keyframes moWord { to { opacity: 1; transform: none; } }
@keyframes moUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes moRight { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes moCard { from { opacity: 0; transform: translate(26px, 14px) rotate(3deg) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes moFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes moPop { 0% { opacity: 0; transform: scale(.7); } 100% { opacity: 1; transform: scale(1); } }
@keyframes moRing { 0% { box-shadow: 0 0 0 0 rgba(26,127,55,.45); } 100% { box-shadow: 0 0 0 16px rgba(26,127,55,0); } }
@keyframes moNudge { 0%, 100% { transform: translateX(0); } 30% { transform: translateX(-5px); } 65% { transform: translateX(4px); } }
@keyframes moDraw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes moPkg { 0% { opacity: 0; transform: translateX(-16px) scale(.9); } 25% { opacity: 1; transform: none; } 70% { opacity: 1; transform: translateX(118px) scale(.96); } 100% { opacity: 0; transform: translateX(150px) scale(.6); } }
@keyframes moBar { to { opacity: 1; transform: scaleX(1); } }
@keyframes moScan { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 1; transform: translateY(44px); } }
@keyframes moSheen { to { transform: translateX(340%) skewX(-12deg); } }

/* scenario card sits on a glass panel already: keep it a clean white card */
.h-site .h-try .h-quiz { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: linear-gradient(180deg, #fff, rgba(255,255,255,.9)); }
