/* ===========================================================================
   The opening scene (js/hero-scene.js): the product on a laptop and a phone.

   The two screens are HTML «canvases» of fixed size (640×384, 200×439) that
   the script scales into the holes of the shell image; everything inside them
   is therefore written in canvas pixels, and grows and shrinks with the page.
   What floats over the stage (.hp__fx: the travelling piece, the lens, the
   cards, the pointer) is in page pixels, scaled down on a narrow stage by
   --hp-k, which the script writes.

   The class names are short on purpose (m- for the desk, p- for the phone):
   a lens is a COPY of a piece of the desk moved into .hp__fx, so every rule
   here is scoped to .hp and never to the canvas it was drawn in, or the copy
   would lose its look the moment it lifts.
   =========================================================================== */
.hp { --acc:#0080f6; --acc-d:#0060c0; --ink:#16263b; --mut:#6b7a90; --line:#e6edf5; --bg:#f4f7fb;
      --ok:#16794c; --ok-b:#e3f5ec; --wa:#9a5b00; --wa-b:#fff3dc; --ko:#b42318; --ko-b:#fdecea; --in-b:#e7f1fe;
      position: relative; font-family: inherit; padding-top: 62px; }
.hp__stage { position: relative; }
.hp picture, .hp__frame { display: block; width: 100%; }
.hp picture { position: relative; z-index: 2; pointer-events: none; }
.hp__scr { position: absolute; z-index: 1; overflow: hidden; background: var(--bg); }
.hp__scr--mac { left: 9.162%; top: 6.642%; width: 70.795%; height: 74.436%; }
.hp__scr--tel { left: 80.530%; top: 28.822%; width: 17.180%; height: 66.040%; }
.hp__cv { position: absolute; left: 0; top: 0; transform-origin: 0 0; color: var(--ink); font-size: 11px; line-height: 1.3; }
.hp__cv--mac { width: 640px; height: 384px; background: var(--bg); }
.hp__cv--tel { width: 200px; height: 439px; background: var(--bg); }
.hp__fx { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hp * { box-sizing: border-box; }
.hp b { font-weight: 700; }
.hp .ic { display: block; flex: 0 0 auto; }

/* --- avatar --- */
.hp .av { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%;
          overflow: hidden; flex: 0 0 auto; color: #fff; font-size: 8.5px; font-weight: 700; letter-spacing: .02em; background: #9aa9bb; }
.hp .av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp .av--l { width: 30px; height: 30px; font-size: 11px; }
.hp .av--xl { width: 38px; height: 38px; font-size: 13px; }
.hp .av--s { width: 16px; height: 16px; font-size: 6.5px; margin-left: -4px; box-shadow: 0 0 0 1.5px #fff; }

/* --- state pills (real words, not grey bars) --- */
.hp .pl { display: inline-flex; align-items: center; gap: 3px; font-size: 8.5px; font-weight: 600; padding: 2px 7px; border-radius: 99px; white-space: nowrap;
          transition: background .35s, color .35s; }
.hp .pl .ic { display: inline-block; }
.hp .pl--ok { background: var(--ok-b); color: var(--ok); }
.hp .pl--wa { background: var(--wa-b); color: var(--wa); }
.hp .pl--ko { background: var(--ko-b); color: var(--ko); }
.hp .pl--in { background: var(--in-b); color: var(--acc-d); }
.hp .pl--ai { background: linear-gradient(90deg,#eef0ff,#e7f1fe); color: #4b45c9; }

/* ===== THE DESK ===== */
.hp .m-side { position: absolute; left: 0; top: 0; bottom: 0; width: 46px; background: #eef3f9; border-right: 1px solid var(--line); }
.hp .m-logo { position: absolute; left: 12px; top: 10px; width: 22px; height: 22px; }
.hp .m-logo img { width: 100%; height: 100%; display: block; }
.hp .m-side__i { position: absolute; left: 11px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; color: #7d90a8; transition: color .4s; }
.hp .m-side__i.is-on { color: var(--acc); }
.hp .m-side__ind { position: absolute; left: 8px; top: 0; width: 30px; height: 30px; border-radius: 9px; background: #dbe9fb;
                   transform: translateY(calc(49px + var(--i,0) * 36px)); transition: transform .6s cubic-bezier(.65,0,.25,1); }
.hp .m-top { position: absolute; left: 46px; right: 0; top: 0; height: 42px; background: #fff; border-bottom: 1px solid var(--line);
             display: flex; align-items: center; gap: 10px; padding: 0 14px 0 16px; }
.hp .m-title { position: relative; flex: 1 1 auto; height: 30px; }
.hp .m-title > div { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; transition: opacity .4s, transform .5s cubic-bezier(.2,.8,.2,1); }
.hp .m-title span { font-size: 8.5px; color: var(--mut); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.hp .m-title b { font-size: 13px; }
.hp .m-title .is-in { opacity: 0; transform: translateY(8px); }
.hp .m-title .is-out { opacity: 0; transform: translateY(-8px); }
.hp .m-search { display: flex; align-items: center; gap: 5px; width: 130px; height: 22px; border-radius: 7px; background: var(--bg); color: #93a2b5; font-size: 9px; padding: 0 7px; }
.hp .m-body { position: absolute; left: 46px; right: 0; top: 42px; bottom: 0; overflow: hidden; }
.hp .m-body .pg { padding: 12px 14px; }

/* pages, and the move from one section to the next: the old page rises and
   blurs, the new one comes up; on the phone it slides like an app */
.hp .pg { position: absolute; inset: 0; transition: opacity .45s ease, transform .6s cubic-bezier(.2,.8,.2,1), filter .45s; }
.hp .m-body .pg--in  { opacity: 0; transform: translateY(14px) scale(.985); }
.hp .m-body .pg--out { opacity: 0; transform: translateY(-10px) scale(.985); filter: blur(3px); }
.hp .p-body .pg--in  { transform: translateX(100%); }
.hp .p-body .pg--out { transform: translateX(-28%); opacity: .0; }
.hp .p-body .pg--up.pg--in { transform: translateY(100%); }

/* the desk's building blocks */
.hp .m-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.hp .m-kpi { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; }
.hp .m-kpi > span { display: block; font-size: 8.5px; color: var(--mut); font-weight: 600; }
.hp .m-kpi b { display: block; font-size: 17px; line-height: 1.15; margin-top: 2px; font-variant-numeric: tabular-nums; }
.hp .m-kpi b i { font-size: 10px; font-weight: 600; opacity: .75; }
.hp .m-kpi > i { display: block; font-style: normal; font-size: 8.5px; color: var(--mut); }
.hp .m-kpi--hero { background: linear-gradient(135deg,#00305e,#0069cc); border-color: transparent; color: #fff; }
.hp .m-kpi--hero > span, .hp .m-kpi--hero > i { color: #bcd8f6; }
.hp .m-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px 4px; }
.hp .m-card__h { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.hp .m-card__h b { font-size: 11px; flex: 1; }
.hp .m-card__h small { font-size: 8.5px; color: var(--mut); }
.hp .m-live { font-size: 8.5px; color: var(--ok); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.hp .m-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #2fa36b; animation: hpBlink 1.6s infinite; }
@keyframes hpBlink { 50% { opacity: .3; } }
.hp .m-row { display: grid; grid-template-columns: 22px 1fr auto auto; align-items: center; gap: 9px; height: 33px; border-top: 1px solid #eef2f7; }
.hp .m-row:first-of-type { border-top: 0; }
.hp .m-row__n { min-width: 0; }
.hp .m-row__n b { display: block; font-size: 10.5px; white-space: nowrap; }
.hp .m-row__n span { display: block; font-size: 8.5px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp .m-row__t { font-size: 10px; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.hp .m-row.is-new { animation: hpRowIn .55s cubic-bezier(.2,.8,.2,1) both; }
.hp .m-row.is-new::after { content: ""; }
@keyframes hpRowIn { from { height: 0; opacity: 0; } to { height: 33px; opacity: 1; } }
.hp .is-glow { animation: hpGlow 1.6s ease-out; }
@keyframes hpGlow { 0% { background: #dcebfd; } 100% { background: transparent; } }
.hp .m-btn { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 6px; font-size: 9px; font-weight: 700;
             background: var(--acc); color: #fff; border: 0; transition: background .3s, transform .15s; }
.hp .m-btn--g { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.hp .m-btn.is-press { transform: scale(.94); background: var(--acc-d); }

/* act 2 · expenses */
.hp .m-row--x { grid-template-columns: 22px 1fr auto auto auto; }
.hp .m-amt { font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hp .m-thumb { width: 16px; height: 20px; border-radius: 3px; background: #fff; box-shadow: inset 0 0 0 1px #d7e0ea; position: relative; }
.hp .m-thumb::before { content: ""; position: absolute; left: 3px; right: 3px; top: 4px; height: 8px;
                       background: repeating-linear-gradient(#cfd9e5 0 1px, transparent 1px 3px); }

/* act 3 · the team calendar */
.hp .m-cal { display: grid; grid-template-columns: 112px repeat(5, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.hp .m-cal > div { height: 34px; border-top: 1px solid #eef2f7; border-left: 1px solid #eef2f7; display: flex; align-items: center; padding: 0 6px; font-size: 9px; position: relative; }
.hp .m-cal > .h { height: 26px; border-top: 0; color: var(--mut); font-weight: 600; justify-content: center; }
.hp .m-cal > .h b { color: var(--ink); margin-left: 3px; }
.hp .m-cal > .n { border-left: 0; gap: 6px; font-weight: 600; font-size: 10px; padding-left: 10px; }
.hp .m-cal > .w { background: #fafcfe; }
.hp .ev { position: absolute; left: 3px; right: 3px; top: 6px; bottom: 6px; border-radius: 6px; font-size: 8.5px; font-weight: 700; display: flex; align-items: center; padding: 0 6px; white-space: nowrap; overflow: hidden; }
.hp .ev--3 { right: auto; width: calc(300% + 2px - 6px); z-index: 1; }
.hp .ev .ic { display: inline-block; }
.hp .ev--fe { background: #d9e9fd; color: #0a4f9e; }
.hp .ev--pe { background: #ffefd1; color: #8a5300; }
.hp .ev--sw { background: #e9e6fd; color: #4b3fb0; }
.hp .ev--wait { background: repeating-linear-gradient(-45deg,#fff6e3 0 5px,#ffeccb 5px 10px); color: #8a5300; box-shadow: inset 0 0 0 1px #f5d49a; }
.hp .ev.is-pop { animation: hpEv .5s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes hpEv { from { transform: scaleX(.2); opacity: 0; transform-origin: 0 50%; } to { transform: none; opacity: 1; } }

/* act 4 · documents */
.hp .m-drop { display: flex; align-items: center; gap: 10px; border: 1.5px dashed #b8cde4; border-radius: 12px; padding: 9px 12px; background: #f8fbff; margin-bottom: 10px; }
.hp .m-file { width: 26px; height: 32px; border-radius: 4px; background: #fff; box-shadow: inset 0 0 0 1px #e1b7b3; position: relative; flex: 0 0 auto; }
.hp .m-file::after { content: "PDF"; position: absolute; left: -3px; bottom: 4px; background: #d92d20; color: #fff; font-size: 6.5px; font-weight: 800; padding: 1px 3px; border-radius: 2px; }
.hp .m-drop__t { flex: 1; min-width: 0; }
.hp .m-drop__t b { display: block; font-size: 10.5px; }
.hp .m-drop__t span { display: block; font-size: 8.5px; color: var(--mut); }
.hp .m-bar { height: 5px; border-radius: 5px; background: #e5edf6; margin-top: 5px; overflow: hidden; }
.hp .m-bar i { display: block; height: 100%; width: 0; background: var(--acc); border-radius: 5px; transition: width 1.4s cubic-bezier(.4,0,.2,1); }
.hp .m-ppl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.hp .m-pp { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 5px 7px; opacity: .45; transition: opacity .3s, box-shadow .3s; }
.hp .m-pp div { min-width: 0; flex: 1; }
.hp .m-pp div b { display: block; font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp .m-pp .st { display: block; font-size: 8px; color: var(--mut); }
.hp .m-pp.is-on { opacity: 1; }
.hp .m-pp.is-read { box-shadow: inset 0 0 0 1.5px #8fd3b0; }
.hp .m-pp .ok { color: var(--ok); opacity: 0; transition: opacity .3s; }
.hp .m-pp.is-on .ok { opacity: 1; }

/* act 5 · the job */
.hp .m-job { display: grid; grid-template-columns: 1.35fr 1fr; gap: 10px; }
.hp .m-chart { position: relative; height: 104px; margin-top: 4px; }
.hp .m-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hp .m-chart .lg { position: absolute; right: 0; top: -18px; display: flex; gap: 8px; font-size: 8px; color: var(--mut); }
.hp .m-chart .lg i { display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 3px; vertical-align: -1px; }
.hp .m-hrs { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.hp .m-hr { display: grid; grid-template-columns: 22px 1fr 30px; gap: 8px; align-items: center; }
.hp .m-hr b { display: block; font-size: 9.5px; margin-bottom: 3px; }
.hp .m-hr .tr { display: block; height: 5px; border-radius: 5px; background: #eaf0f7; overflow: hidden; }
.hp .m-hr .tr i { display: block; height: 100%; background: #6fb2f8; border-radius: 5px; transition: width .9s cubic-bezier(.2,.8,.2,1); }
.hp .m-hr .h { font-size: 9.5px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* act 6 · the check */
.hp .m-tab { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; position: relative; }
.hp .m-tr { display: grid; grid-template-columns: 70px 1fr 54px 54px 60px 120px; align-items: center; height: 29px; border-top: 1px solid #eef2f7; padding: 0 12px; font-size: 9.5px; gap: 6px; transition: background .4s; }
.hp .m-tr.h { height: 24px; border-top: 0; font-size: 8.5px; color: var(--mut); font-weight: 600; background: #fafcfe; }
.hp .m-tr .who { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.hp .m-tr .num { font-variant-numeric: tabular-nums; }
.hp .m-tr .miss { color: var(--ko); font-weight: 700; }
.hp .m-tr.is-bad { background: #fff7f6; }
.hp .m-tr.is-fix { background: #f2fbf6; }
.hp .m-scan { position: absolute; left: 0; right: 0; top: 24px; height: 40px; pointer-events: none; opacity: 0;
              background: linear-gradient(180deg, rgba(0,128,246,0), rgba(0,128,246,.14) 60%, rgba(0,128,246,0)); border-bottom: 1.5px solid rgba(0,128,246,.6); }
.hp .m-scan.is-run { animation: hpScan 2.2s cubic-bezier(.45,0,.55,1) forwards; }
@keyframes hpScan { 0% { opacity: 1; transform: translateY(-30px); } 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(160px); } }
.hp .m-ai { display: inline-flex; align-items: center; gap: 4px; font-size: 9px; font-weight: 700; color: #4b45c9; }

/* act 7 · everything else */
.hp .m-mods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hp .m-mod { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 10px; height: 76px; display: flex; flex-direction: column; gap: 6px; opacity: 0; transform: translateY(10px) scale(.96); }
.hp .m-mod.is-on { opacity: 1; transform: none; transition: opacity .4s, transform .5s cubic-bezier(.2,1.3,.4,1); }
.hp .m-mod .ib { width: 24px; height: 24px; border-radius: 7px; display: flex; align-items: center; justify-content: center; background: var(--in-b); color: var(--acc); }
.hp .m-mod b { font-size: 10.5px; }
.hp .m-mod span { font-size: 8.5px; color: var(--mut); line-height: 1.25; }

/* ===== THE PHONE ===== */
.hp .p-status { position: absolute; left: 0; right: 0; top: 0; height: 34px; display: flex; align-items: center; justify-content: space-between; padding: 6px 18px 0 22px; font-size: 11px; z-index: 2; }
.hp .p-status__r { display: flex; align-items: flex-end; gap: 1.5px; }
.hp .p-status__r i { width: 3px; background: var(--ink); border-radius: 1px; }
.hp .p-status__r i:nth-child(1) { height: 4px; } .hp .p-status__r i:nth-child(2) { height: 6px; } .hp .p-status__r i:nth-child(3) { height: 8px; }
.hp .p-status__r em { width: 17px; height: 8px; border-radius: 2.5px; border: 1px solid var(--ink); margin-left: 4px; position: relative; }
.hp .p-status__r em::after { content: ""; position: absolute; inset: 1px 4px 1px 1px; background: var(--ink); border-radius: 1px; }
.hp .p-body { position: absolute; left: 0; right: 0; top: 34px; bottom: 0; overflow: hidden; }
.hp .p-body .pg { padding: 8px 13px 0; background: var(--bg); }
.hp .p-hd { display: flex; align-items: center; gap: 8px; margin: 2px 0 12px; }
.hp .p-hd div { flex: 1; min-width: 0; }
.hp .p-hd span { display: block; font-size: 9.5px; color: var(--mut); }
.hp .p-hd b { display: block; font-size: 17px; line-height: 1.15; }
.hp .p-back { font-size: 10px; color: var(--acc); font-weight: 600; margin-bottom: 6px; display: block; }
.hp .p-card { background: #fff; border-radius: 14px; padding: 10px 11px; box-shadow: 0 1px 2px rgba(15,26,46,.05); margin-bottom: 9px; }
.hp .p-card small { display: block; font-size: 9px; color: var(--mut); }
.hp .p-card b { display: block; font-size: 12.5px; }
.hp .p-map { height: 78px; border-radius: 10px; margin-bottom: 8px; position: relative; overflow: hidden;
             background: linear-gradient(90deg, transparent 47%, #d3e0ee 47% 53%, transparent 53%), linear-gradient(0deg, transparent 40%, #d3e0ee 40% 46%, transparent 46%), linear-gradient(25deg, transparent 70%, #dbe6f2 70% 74%, transparent 74%), #e6eef7; }
.hp .p-geo { position: absolute; left: 50%; top: 46%; width: 58px; height: 58px; margin: -29px; border-radius: 50%; background: rgba(0,128,246,.13); box-shadow: inset 0 0 0 1.5px rgba(0,128,246,.45); }
.hp .p-me { position: absolute; left: 50%; top: 46%; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 3px #fff, 0 2px 6px rgba(0,0,0,.25); transition: transform 1.2s cubic-bezier(.4,0,.2,1); }
.hp .p-me.is-far { transform: translate(52px, 26px); }
.hp .p-me::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid rgba(0,128,246,.5); animation: hpWave 1.8s infinite; }
@keyframes hpWave { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.hp .p-big { text-align: center; margin: 4px 0 10px; }
.hp .p-big b { font-size: 34px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; display: block; line-height: 1; }
.hp .p-big span { font-size: 9.5px; color: var(--mut); }
.hp .p-btn { position: absolute; left: 13px; right: 13px; bottom: 22px; height: 44px; border-radius: 14px; background: var(--acc); color: #fff;
             font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; transition: background .4s, transform .15s; }
.hp .p-btn.is-press { transform: scale(.95); }
.hp .p-btn.is-done { background: #23935f; }
.hp .p-field { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 7px 0; border-top: 1px solid #eef2f7; }
.hp .p-field:first-of-type { border-top: 0; }
.hp .p-field span { font-size: 9px; color: var(--mut); white-space: nowrap; }
.hp .p-field b { font-size: 11px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp .p-field b.is-typing { color: transparent; background: linear-gradient(90deg,#e8eef6 30%,#f5f8fc 50%,#e8eef6 70%) 0 0/200% 100%; border-radius: 4px; min-width: 50px; animation: hpShim 1s linear infinite; }
@keyframes hpShim { to { background-position: -200% 0; } }
.hp .p-field b.is-filled { animation: hpFill .5s ease; }
@keyframes hpFill { from { color: #8fb8e8; } }

/* camera and receipt */
.hp .p-cam { position: absolute; inset: -34px 0 0 0; background: radial-gradient(120% 80% at 50% 40%, #59524a, #23201d); }
.hp .p-rcp { position: absolute; left: 32px; right: 32px; top: 92px; height: 210px; background: #fbfaf6; border-radius: 3px; padding: 14px 12px; transform: rotate(-3deg);
             box-shadow: 0 10px 24px rgba(0,0,0,.45); color: #3a3a3a; font-family: "Courier New", monospace; font-size: 8.5px; line-height: 1.45; }
.hp .p-rcp b { display: block; text-align: center; font-size: 10px; margin-bottom: 2px; }
.hp .p-rcp .c { text-align: center; color: #777; margin-bottom: 8px; }
.hp .p-rcp .r { display: flex; justify-content: space-between; }
.hp .p-rcp .t { border-top: 1px dashed #aaa; margin-top: 6px; padding-top: 5px; font-weight: 700; font-size: 10px; }
.hp .p-frame { position: absolute; left: 22px; right: 22px; top: 80px; height: 236px; }
.hp .p-frame i { position: absolute; width: 22px; height: 22px; border: 3px solid #fff; }
.hp .p-frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.hp .p-frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.hp .p-frame i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.hp .p-frame i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.hp .p-frame.is-lock i { border-color: #7cc4ff; transition: border-color .3s; }
.hp .p-sweep { position: absolute; left: 22px; right: 22px; top: 80px; height: 30px; opacity: 0;
               background: linear-gradient(180deg, rgba(124,196,255,0), rgba(124,196,255,.45)); border-bottom: 2px solid #9cd3ff; }
.hp .p-sweep.is-run { animation: hpSweep 1.3s cubic-bezier(.45,0,.55,1) 2 alternate; }
@keyframes hpSweep { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 1; transform: translateY(206px); } }
.hp .p-shutter { position: absolute; left: 50%; bottom: 20px; width: 46px; height: 46px; margin-left: -23px; border-radius: 50%; border: 3px solid #fff; }
.hp .p-shutter::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #fff; transition: transform .15s; }
.hp .p-shutter.is-press::after { transform: scale(.85); }
.hp .p-flash { position: absolute; inset: -34px 0 0 0; background: #fff; opacity: 0; pointer-events: none; }
.hp .p-flash.is-on { animation: hpFlash .5s ease-out; }
@keyframes hpFlash { 0% { opacity: .9; } 100% { opacity: 0; } }
.hp .p-camtag { position: absolute; left: 0; right: 0; top: 46px; text-align: center; color: #fff; font-size: 10px; font-weight: 600; opacity: .9; }

/* the month on the phone */
.hp .p-mon { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px 0; text-align: center; font-size: 9.5px; }
.hp .p-mon .d { color: var(--mut); font-size: 8px; font-weight: 600; }
.hp .p-mon .x { height: 22px; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; position: relative; z-index: 0; transition: color .2s; }
.hp .p-mon .x.o { color: #c0cad6; }
.hp .p-mon .x.s::before { content: ""; position: absolute; inset: 1px 0; background: #d9e9fd; z-index: -1; }
.hp .p-mon .x.s.a::before { border-radius: 11px 0 0 11px; left: 2px; }
.hp .p-mon .x.s.z::before { border-radius: 0 11px 11px 0; right: 2px; }
.hp .p-mon .x.s.a, .hp .p-mon .x.s.z { color: #fff; font-weight: 700; }
.hp .p-mon .x.s.a::after, .hp .p-mon .x.s.z::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--acc); z-index: -1; }
.hp .p-sum { display: flex; justify-content: space-between; align-items: center; }
.hp .p-sum b { font-size: 12px; }
.hp .p-bal { font-size: 9px; color: var(--mut); margin-top: 4px; }
.hp .p-bal s { color: #a8b4c2; }
.hp .p-bal strong { color: var(--ink); }

/* notification and document */
.hp .p-notif { position: absolute; left: 8px; right: 8px; top: 4px; z-index: 5; background: rgba(255,255,255,.96); border-radius: 13px; padding: 8px 9px; display: flex; gap: 7px;
               box-shadow: 0 6px 18px rgba(15,26,46,.18); transform: translateY(-120%); transition: transform .55s cubic-bezier(.2,1.2,.4,1); }
.hp .p-notif.is-on { transform: none; }
.hp .p-notif img { width: 20px; height: 20px; border-radius: 5px; background: #0b2a4f; padding: 3px; }
.hp .p-notif b { display: block; font-size: 9.5px; }
.hp .p-notif span { display: block; font-size: 9px; color: #42526a; line-height: 1.25; }
.hp .p-pdf { background: #fff; border-radius: 10px; padding: 12px 11px; box-shadow: 0 1px 3px rgba(15,26,46,.08); font-size: 8px; color: #55657a; }
.hp .p-pdf .ph { display: flex; justify-content: space-between; border-bottom: 1px solid #eef2f7; padding-bottom: 6px; margin-bottom: 6px; }
.hp .p-pdf .ph b { font-size: 9.5px; color: var(--ink); }
.hp .p-pdf .ln { display: flex; justify-content: space-between; padding: 2px 0; }
.hp .p-pdf .tot { margin-top: 8px; background: #eef6ff; border-radius: 7px; padding: 7px 8px; display: flex; justify-content: space-between; align-items: center; color: var(--ink); }
.hp .p-pdf .tot b { font-size: 14px; }

/* work report */
.hp .p-step { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 2px; }
.hp .p-step i { width: 34px; height: 34px; border-radius: 11px; background: #e7f1fe; color: var(--acc); display: flex; align-items: center; justify-content: center; transition: transform .15s, background .2s; }
.hp .p-step i.is-press { transform: scale(.88); background: #cfe3fb; }
.hp .p-step b { font-size: 30px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.hp .p-step b small { font-size: 14px; color: var(--mut); margin-left: 1px; }

/* chat */
.hp .p-chat { display: flex; flex-direction: column; gap: 7px; }
.hp .p-bub { max-width: 86%; padding: 8px 10px; border-radius: 14px; font-size: 10.5px; line-height: 1.35; background: #fff; box-shadow: 0 1px 2px rgba(15,26,46,.06); border-bottom-left-radius: 4px; animation: hpBub .45s cubic-bezier(.2,1.3,.4,1) both; transform-origin: 0 100%; }
.hp .p-bub--me { align-self: flex-end; background: var(--acc); color: #fff; border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; transform-origin: 100% 100%; }
.hp .p-bub small { display: block; font-size: 8.5px; color: var(--mut); font-weight: 700; margin-bottom: 2px; }
@keyframes hpBub { from { opacity: 0; transform: scale(.6); } }
.hp .p-qr { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.hp .p-qr span { font-size: 10px; font-weight: 700; color: var(--acc); background: #fff; border: 1.5px solid #bcd9fa; border-radius: 99px; padding: 5px 10px; transition: transform .15s, background .2s; }
.hp .p-qr span.is-press { transform: scale(.9); background: #e7f1fe; }
.hp .p-agent { display: flex; align-items: center; gap: 7px; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.hp .p-agent .ib { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg,#6a5cff,#0080f6); color: #fff; display: flex; align-items: center; justify-content: center; }
.hp .p-agent b { font-size: 11px; display: block; }
.hp .p-agent span { font-size: 8.5px; color: var(--ok); }

/* apps (act 7) */
.hp .p-apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 6px; margin-top: 6px; }
.hp .p-app { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 8.5px; font-weight: 600; text-align: center; opacity: 0; transform: scale(.7); }
.hp .p-app.is-on { opacity: 1; transform: none; transition: opacity .3s, transform .45s cubic-bezier(.2,1.4,.4,1); }
.hp .p-app i { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--acc); box-shadow: 0 1px 3px rgba(15,26,46,.08); }

/* ===== OVER THE STAGE: the travelling piece, the lens, the cards, the pointer, the finger ===== */
.hp .fly { position: absolute; left: 0; top: 0; transform-origin: 0 0; width: max-content; max-width: 250px; background: #fff; border-radius: 14px; padding: 10px 12px;
           box-shadow: 0 18px 40px -8px rgba(5,20,45,.45), 0 0 0 1px rgba(15,26,46,.06); color: var(--ink); font-size: 11px; will-change: transform, opacity; }
.hp .fly__h { display: flex; align-items: center; gap: 8px; }
.hp .fly__h div { min-width: 0; }
.hp .fly__h b { display: block; font-size: 12px; }
.hp .fly__h span { display: block; font-size: 10px; color: var(--mut); }
.hp .fly__k { display: grid; grid-template-columns: auto auto; gap: 3px 14px; margin-top: 8px; padding-top: 8px; border-top: 1px solid #eef2f7; font-size: 10px; }
.hp .fly__k span { color: var(--mut); }
.hp .fly__k b { text-align: right; }
.hp .fly__tag { margin-top: 8px; }
.hp .fly--dark { background: #0d2747; color: #fff; }
.hp .fly--dark .fly__h span { color: #9cc0e6; }
.hp .lens { color: var(--ink); font-size: 11px; line-height: 1.3; position: absolute; left: 0; top: 0; margin: 0; transform-origin: 0 0; will-change: transform; }
.hp .lens.m-kpi--hero { color: #fff; }
.hp .pop { position: absolute; left: 0; top: 0; transform-origin: 0 0; transform: scale(var(--hp-k, 1)); width: 232px; background: #fff; border-radius: 16px; padding: 12px 14px; color: var(--ink); font-size: 11px;
           box-shadow: 0 22px 50px -10px rgba(5,20,45,.5), 0 0 0 1px rgba(15,26,46,.06); animation: hpPop .5s cubic-bezier(.2,1.25,.4,1) both; }
.hp .pop.is-out { animation: hpPopOut .3s ease-in both; }
@keyframes hpPop { from { opacity: 0; transform: translateY(12px) scale(calc(var(--hp-k, 1) * .9)); } }
@keyframes hpPopOut { to { opacity: 0; transform: translateY(6px) scale(calc(var(--hp-k, 1) * .95)); } }
.hp .pop p { margin: 8px 0 0; font-size: 10.5px; color: #42526a; line-height: 1.4; }
.hp .pop .acts { display: flex; gap: 6px; justify-content: flex-end; margin-top: 10px; }
.hp .pop .m-btn { height: 26px; padding: 0 12px; font-size: 10.5px; border-radius: 8px; }
.hp .cur { position: absolute; left: 0; top: 0; width: 18px; height: 18px; opacity: 0; transition: opacity .3s; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.hp .cur.is-on { opacity: 1; }
.hp .cur svg { display: block; }
.hp .cur::after { content: ""; position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--acc); opacity: 0; }
.hp .cur.is-click::after { animation: hpClick .45s ease-out; }
@keyframes hpClick { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.hp .tap { position: absolute; width: 26px; height: 26px; margin: -13px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 0 0 2px rgba(255,255,255,.9), 0 2px 8px rgba(0,0,0,.25);
           animation: hpTap .6s ease-out forwards; }
@keyframes hpTap { 0% { transform: scale(.4); opacity: 0; } 25% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }

/* the summary card of the check */
.hp .pop.sm { width: 220px; }
.hp .sm__h { display: flex; align-items: center; gap: 8px; }
.hp .sm__ic { width: 28px; height: 28px; border-radius: 9px; background: linear-gradient(135deg,#6a5cff,#0080f6); color: #fff; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.hp .sm__h b { display: block; font-size: 12px; }
.hp .sm__h div span { display: block; font-size: 10px; color: var(--mut); }
.hp .sm__k { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; margin: 10px 0 8px; padding-top: 9px; border-top: 1px solid #eef2f7; font-size: 10.5px; }
.hp .sm__k span { color: var(--mut); }
.hp .sm__k b { text-align: right; font-variant-numeric: tabular-nums; }
.hp .sm__l { display: flex; flex-direction: column; gap: 5px; font-size: 10px; }
.hp .sm__l span { display: flex; align-items: center; gap: 5px; color: var(--ok); font-weight: 600; transition: color .3s; }
.hp .sm__l span.is-wait { color: var(--ko); }
.hp .sm__f { margin-top: 10px; display: flex; justify-content: flex-end; }
.hp .sm__f .pl { font-size: 10px; padding: 3px 9px; }

/* ===== the caption ===== */
.hp__cap { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 18px; }
.hp__cap-t { position: relative; height: 24px; width: 100%; margin: 0; }
.hp__cap-t span { position: absolute; left: 0; right: 0; text-align: center; font-size: 17px; font-weight: 700; color: var(--bbx-blue-200, #b9d5f3); transition: opacity .4s, transform .5s cubic-bezier(.2,.8,.2,1); }
.hp__cap-t span.is-in { opacity: 0; transform: translateY(10px); }
.hp__cap-t span.is-out { opacity: 0; transform: translateY(-10px); }
.hp__dots { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.hp__dots li { width: 6px; height: 6px; border-radius: 6px; background: rgba(185,213,243,.35); overflow: hidden; transition: width .5s cubic-bezier(.2,.8,.2,1); position: relative; }
.hp__dots li.is-done { background: rgba(185,213,243,.6); }
.hp__dots li.is-on { width: 30px; }
.hp__dots li.is-on::after { content: ""; position: absolute; inset: 0; background: #5aa7ff; border-radius: 6px; transform-origin: 0 50%; animation: hpProg var(--dur, 8s) linear both; }
@keyframes hpProg { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* «Reduce motion»: the script shows the first act finished and moves
   nothing; what is left here are the loops that run by themselves. */
@media (prefers-reduced-motion: reduce) {
  .hp .m-live::before, .hp .p-me::after, .hp .m-row.is-new, .hp .is-glow { animation: none; }
}

/* ===== odds and ends that used to be inline ===== */
.hp .m-check { margin-bottom: 8px; }
.hp .p-sum--m { margin-bottom: 6px; }
.hp .p-rcp .c--vat { margin: 6px 0 0; }
.hp .m-chart .lg--rev { background: #0080f6; }
.hp .m-chart .lg--cost { background: #f59e0b; }
.hp .t-ai { opacity: 0; transition: opacity .4s; }
.hp .t-ai.is-on { opacity: 1; }
.hp .m-search span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp .p-notif__ic { width: 22px; height: 22px; border-radius: 6px; background: #0b2a4f; color: #fff; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.hp .m-cal > .n span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp .m-tr .who > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp .m-tr > span { min-width: 0; }
.hp .m-kpi > span, .hp .m-kpi > i { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp .p-hd b, .hp .p-card b { overflow: hidden; text-overflow: ellipsis; }

/* ===== without JavaScript =====
   The stage is drawn by the script: without it, a still picture of the
   product takes its place, and the caption with its steps goes away. */
.hp__still { display: none; width: 100%; height: auto; }
html:not(.js) .hp__stage, html:not(.js) .hp__cap { display: none; }
html:not(.js) .hp__still { display: block; }

@media (max-width: 900px) {
    .hp__cap { max-width: 560px; margin-inline: auto; }
}
html:not(.js) .hp { padding-top: 0; }

/* What the scene shows, said once for whoever cannot see it: the stage and
   the caption are aria-hidden, this sentence is not. */
.hp__sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
