/* Homepage hero (t210): full-app browser + a companion phone, synced.
   Sidebar lists every module; each scene fills the browser viewport.
   Clock-based loop; pause offscreen / hidden tab mid-loop (no restart).
   Reduced motion: still overview. Promo video (if it really plays) hides the coded UI. */
.hero-v3 .mk-pscreen.mph-host{background:#0B1A24}
.hmh-screen{background:#0B1A24}

.hmh{position:absolute;inset:0;z-index:1;display:grid;grid-template-columns:128px minmax(0,1fr);color:#F3F7F9;font-size:12px;line-height:1.3;text-align:left;
  background:radial-gradient(120% 80% at 100% 0%,rgba(19,184,238,.16),transparent 55%),radial-gradient(90% 70% at 0% 100%,rgba(255,160,79,.10),transparent 55%),#0B1A24}
.hmh svg{display:block}
.hmh-i{width:16px;height:16px;flex:none}

/* left sidebar — always shows the full catalogue */
.hmh-side{display:flex;flex-direction:column;min-width:0;min-height:0;padding:8px 6px 8px;border-right:1px solid rgba(255,255,255,.08);background:rgba(0,0,0,.22)}
.hmh-brand{display:flex;align-items:center;gap:7px;padding:4px 6px 8px;margin-bottom:4px;border-bottom:1px solid rgba(255,255,255,.08);flex:none}
.hmh-brand .hmh-ava{flex:none;width:24px;height:24px;border-radius:8px;display:grid;place-items:center;color:#04202C;background:linear-gradient(135deg,#8EE3FE,#13B8EE)}
.hmh-brand .hmh-ava svg{width:13px;height:13px}
.hmh-brand b{font-size:10px;font-weight:800;letter-spacing:-.02em;line-height:1.15}
.hmh-brand small{display:block;font-size:8px;font-weight:500;color:#9FB2BC}
.hmh-side nav{flex:1;min-height:0;display:flex;flex-direction:column;gap:1px;overflow:hidden;justify-content:flex-start}
.hmh-side nav span{display:flex;align-items:center;gap:6px;min-width:0;min-height:0;flex:1 1 0;
  padding:2px 7px;border-radius:7px;font-size:9px;font-weight:650;color:#8FA3AE;white-space:nowrap;line-height:1.15;
  background:transparent;border:1px solid transparent;transition:color .35s,background .35s,border-color .35s}
.hmh-side nav span svg{width:12px;height:12px;flex:none;color:var(--acc,#13B8EE)}
.hmh-side nav span b{overflow:hidden;text-overflow:ellipsis;font-weight:650}
.hmh-side nav span.is-on{color:#fff;background:var(--acc-soft,rgba(19,184,238,.15));border-color:var(--acc-bd,rgba(19,184,238,.42))}
@media (min-width:1280px){
  .hmh-side nav span{padding:4px 7px;font-size:9.5px;border-radius:8px}
  .hmh-side nav span svg{width:13px;height:13px}
}

.hmh-main{display:flex;flex-direction:column;min-width:0;min-height:0}
.hmh-top{flex:none;display:flex;align-items:center;gap:10px;padding:8px 14px 8px;border-bottom:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.02)}
.hmh-ava{flex:none;width:26px;height:26px;border-radius:8px;display:grid;place-items:center;color:#04202C;background:linear-gradient(135deg,#8EE3FE,#13B8EE)}
.hmh-ava svg{width:14px;height:14px}
.hmh-who{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.hmh-who b{font-size:12.5px;font-weight:750;letter-spacing:-.01em}
.hmh-who small{font-size:10px;color:#9FB2BC}
.hmh-pill{flex:none;font-size:9px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;padding:3px 8px;border-radius:999px;color:#68E2B4;
  background:rgba(104,226,180,.12);border:1px solid rgba(104,226,180,.4)}

/* stages stacked — no layout shift; right pad keeps content clear of the phone */
.hmh-stage{position:relative;flex:1;min-height:0;display:grid;margin:8px 10px 10px;padding-right:8px;overflow:hidden}
.hmh-sc{grid-area:1/1;min-height:0;display:none;flex-direction:column;gap:8px;opacity:0;transform:translateY(8px);
  transition:opacity .4s ease,transform .5s cubic-bezier(.2,.7,.2,1)}
.hmh-sc.is-on{display:flex}
.hmh-sc.is-in{opacity:1;transform:none}
.hmh-body{display:flex;flex-direction:column;gap:8px;min-width:0;min-height:0;flex:1}
.hmh-aside{display:flex;flex-direction:column;gap:4px;min-width:0;padding:7px 8px;border-radius:12px;
  background:linear-gradient(160deg,rgba(255,255,255,.08),rgba(255,255,255,.03));border:1px solid rgba(255,255,255,.12)}
.hmh-aside .hmh-list{gap:4px}
.hmh-aside .hmh-list li{padding:5px 7px}
.hmh-aside .hmh-stream p{margin:0 0 4px}
.hmh-aside .hmh-sk{height:6px}
@media (min-width:1101px){
  .hmh-sc.is-on{display:grid;grid-template-columns:minmax(0,1fr) minmax(170px,32%);grid-template-rows:auto minmax(0,1fr);gap:8px}
  .hmh-sc > .hmh-body{grid-column:1;grid-row:1/-1;min-width:0;min-height:0}
  .hmh-sc > .hmh-aside{grid-column:2;grid-row:1;align-self:start;min-height:0;overflow:visible;max-height:100px}
}
@media (max-width:1100px) and (min-width:769px){
  /* Duo: browser+phone still overlap. Keep all scene content in the area left of the phone,
     same reserved gutter as product-page coded screens (≈31%). The top info card spans
     the full width of that area — it must not shrink into a narrow chip. */
  .hmh-stage{margin-right:calc(31% + 8px);padding-right:8px}
  .hmh-sc.is-on{display:flex;flex-direction:column}
  .hmh-sc > .hmh-aside{order:-1;align-self:stretch;max-width:none;width:auto;max-height:none;flex:none}
}


.hmh-row{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none}
.hmh-lbl{font-size:10px;font-weight:700;letter-spacing:.02em;text-transform:uppercase;color:#9FB2BC}
.hmh-sk{display:block;height:7px;border-radius:99px;background:rgba(255,255,255,.16)}

/* fill layouts */
.hmh-fill{flex:1;min-height:0;display:flex;flex-direction:column;gap:7px}
.hmh-split{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:8px}
.hmh-split.hmh-stack{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}
.hmh-split.hmh-stack > .hmh-pane{overflow:hidden}
.hmh-split.hmh-stack .hmh-ksef ol,.hmh-split.hmh-stack .hmh-rail{flex-direction:row;flex-wrap:nowrap;gap:6px}
.hmh-split.hmh-stack .hmh-ksef li,.hmh-split.hmh-stack .hmh-rail li{flex:1;min-width:0;flex-direction:column;justify-content:center;text-align:center;gap:4px;padding:8px 4px;font-size:9.5px}
.hmh-split.hmh-stack .hmh-ksef li span,.hmh-split.hmh-stack .hmh-rail li span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.hmh-split.hmh-stack .hmh-stream{min-height:56px}
.hmh-split.hmh-stack .hmh-list li{padding:6px 10px}

.hmh-pane{min-width:0;min-height:0;display:flex;flex-direction:column;gap:6px;padding:8px 9px;border-radius:12px;
  background:linear-gradient(160deg,rgba(255,255,255,.07),rgba(255,255,255,.025));border:1px solid rgba(255,255,255,.11)}

/* overview tiles — fill the main column */
.hmh-tiles{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;flex:1;min-height:0}
.hmh-tiles li{display:flex;align-items:center;gap:8px;padding:7px 9px;border-radius:11px;min-width:0;
  background:linear-gradient(160deg,rgba(255,255,255,.075),rgba(255,255,255,.025));border:1px solid rgba(255,255,255,.12);
  box-shadow:inset 3px 0 0 var(--acc,#13B8EE);opacity:0;transform:translateY(8px);
  transition:opacity .35s ease,transform .45s cubic-bezier(.2,.7,.2,1),border-color .35s,background .35s,box-shadow .35s}
.hmh-sc.is-in .hmh-tiles li{opacity:1;transform:none}
.hmh-sc.is-in .hmh-tiles li:nth-child(2){transition-delay:.06s}
.hmh-sc.is-in .hmh-tiles li:nth-child(3){transition-delay:.12s}
.hmh-sc.is-in .hmh-tiles li:nth-child(4){transition-delay:.18s}
.hmh-sc.is-in .hmh-tiles li:nth-child(5){transition-delay:.24s}
.hmh-sc.is-in .hmh-tiles li:nth-child(6){transition-delay:.30s}
.hmh-sc.is-in .hmh-tiles li:nth-child(7){transition-delay:.36s}
.hmh-sc.is-in .hmh-tiles li:nth-child(8){transition-delay:.42s}
.hmh-sc.is-in .hmh-tiles li:nth-child(9){transition-delay:.48s}
.hmh-sc.is-in .hmh-tiles li:nth-child(10){transition-delay:.54s}
.hmh-tiles li.is-hit{border-color:var(--acc-bd,rgba(19,184,238,.42));background:var(--acc-soft,rgba(19,184,238,.15))}
.hmh-tic{flex:none;width:26px;height:26px;border-radius:8px;display:grid;place-items:center;color:var(--acc,#13B8EE);background:var(--acc-soft,rgba(19,184,238,.15))}
.hmh-tic svg{width:14px;height:14px}
.hmh-tn{min-width:0}
.hmh-tn b{display:block;font-size:11px;font-weight:700;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hmh-tn small{display:block;font-size:9px;color:#9FB2BC;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* invoice sheet + vertical KSeF */
.hmh-sheet{flex:1;min-height:0;display:flex;flex-direction:column;gap:6px;padding:8px 9px;border-radius:12px;
  background:linear-gradient(160deg,rgba(255,255,255,.07),rgba(255,255,255,.025));border:1px solid rgba(255,255,255,.11)}
.hmh-tr{display:grid;grid-template-columns:20px minmax(0,1fr) minmax(52px,70px) minmax(28px,40px);gap:6px;align-items:center;width:100%;font-size:10px;color:#D5DEE4}
.hmh-tr.th{font-size:8.5px;font-weight:700;letter-spacing:.02em;text-transform:uppercase;color:#9FB2BC;white-space:nowrap}
.hmh-tr > *{min-width:0;overflow:hidden;text-overflow:ellipsis}
.hmh-item{display:flex;align-items:center;gap:6px;min-width:0}
.hmh-ic{flex:none;width:18px;height:18px;border-radius:6px;display:grid;place-items:center;color:#13B8EE;background:rgba(19,184,238,.15)}
.hmh-ic svg{width:11px;height:11px}
.hmh-sum{display:flex;flex-wrap:wrap;gap:8px 12px;margin-top:auto;padding-top:6px;border-top:1px solid rgba(255,255,255,.08);font-size:10px;color:#9FB2BC}
.hmh-sum b{color:#fff;font-weight:750}
.hmh-sum .tot{margin-left:auto;color:#68E2B4}
.hmh-ksef{display:flex;flex-direction:column;gap:6px}

.hmh-ksef-row{flex:none}
.hmh-ksef-row ol{flex-direction:row;flex-wrap:nowrap;gap:6px}
.hmh-ksef-row li{flex:1;min-width:0;flex-direction:column;justify-content:center;text-align:center;gap:4px;padding:7px 4px;font-size:9.5px}
.hmh-ksef-row li span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}

.hmh-ksef ol{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px;flex:1}
.hmh-ksef li{display:flex;align-items:center;gap:8px;padding:8px 9px;border-radius:10px;font-size:11px;font-weight:650;color:#8FA3AE;
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);opacity:.45;transform:translateY(4px);
  transition:opacity .35s,transform .4s,background .35s,border-color .35s,color .35s}
.hmh-ksef li.is-on,.hmh-rail li.is-on{opacity:1;transform:none;color:#fff;background:rgba(19,184,238,.14);border-color:rgba(19,184,238,.4)}
.hmh-ksef li svg{width:14px;height:14px;color:#13B8EE}
.hmh-rail{margin:0;padding:0;list-style:none;display:flex;gap:6px;flex:none}
.hmh-rail li{flex:1;display:flex;align-items:center;justify-content:center;gap:4px;padding:6px 4px;border-radius:9px;font-size:9px;font-weight:650;color:#8FA3AE;
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);opacity:.4;transition:opacity .35s,background .35s,border-color .35s,color .35s}

.hmh-sheet .hmh-ksef-row,.hmh-body .hmh-ksef-row{flex:none;margin-top:6px}
.hmh-sheet .hmh-ksef-row ol,.hmh-body .hmh-ksef-row ol{flex-direction:row;flex-wrap:nowrap;flex:none;gap:6px}
.hmh-sheet .hmh-ksef-row li,.hmh-body .hmh-ksef-row li{flex:1;min-width:0;flex-direction:column;justify-content:center;text-align:center;gap:4px;padding:7px 4px;font-size:9.5px}


/* chat — more rows + side card */
.hmh-chat{flex:1;min-height:0;display:flex;flex-direction:column;gap:6px}
.hmh-bub{max-width:92%;padding:7px 9px;border-radius:12px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);
  opacity:0;transform:translateY(8px);transition:opacity .35s ease,transform .4s ease}
.hmh-bub.me{align-self:flex-end;background:rgba(19,184,238,.14);border-color:rgba(19,184,238,.28)}
.hmh-bub small{display:block;font-size:8.5px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:#9FB2BC;margin-bottom:3px}
.hmh-bub.is-in{opacity:1;transform:none}
.hmh-live{display:inline-flex;align-items:center;gap:6px;margin-top:auto;padding:6px 9px;border-radius:999px;font-size:10px;font-weight:700;color:#68E2B4;
  background:rgba(104,226,180,.1);border:1px solid rgba(104,226,180,.35);opacity:0;transform:translateY(6px);transition:opacity .35s,transform .4s;align-self:flex-start}
.hmh-live.is-in{opacity:1;transform:none}
.hmh-live i{width:7px;height:7px;border-radius:50%;background:#68E2B4;box-shadow:0 0 0 3px rgba(104,226,180,.25)}
.hmh-sideinfo b{display:block;font-size:12.5px;font-weight:800;letter-spacing:-.02em;line-height:1.2;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hmh-sideinfo small{display:block;font-size:9.5px;line-height:1.25;color:#9FB2BC;margin-top:1px}
.hmh-sideinfo .hmh-tag{display:inline-flex;align-self:flex-start;margin-top:2px;padding:3px 7px;border-radius:999px;font-size:9px;font-weight:700;color:#68E2B4;
  background:rgba(104,226,180,.1);border:1px solid rgba(104,226,180,.35);align-self:flex-start}

/* lists / tasks / board */
.hmh-tasks,.hmh-list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px;flex:1;min-height:0}
.hmh-tasks li,.hmh-list li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px 10px;border-radius:11px;
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.1);opacity:0;transform:translateY(6px);
  transition:opacity .35s,transform .4s,border-color .35s,background .35s}
.hmh-sc.is-in .hmh-tasks li,.hmh-sc.is-in .hmh-list li,.hmh-sc.is-in .hmh-col article{opacity:1;transform:none}
.hmh-sc.is-in .hmh-tasks li:nth-child(2),.hmh-sc.is-in .hmh-list li:nth-child(2),.hmh-sc.is-in .hmh-col:nth-child(2) article{transition-delay:.1s}
.hmh-sc.is-in .hmh-tasks li:nth-child(3),.hmh-sc.is-in .hmh-list li:nth-child(3),.hmh-sc.is-in .hmh-col:nth-child(3) article{transition-delay:.2s}
.hmh-sc.is-in .hmh-tasks li:nth-child(4),.hmh-sc.is-in .hmh-list li:nth-child(4){transition-delay:.3s}
.hmh-dot{width:8px;height:8px;border-radius:50%;background:var(--acc,#13B8EE);box-shadow:0 0 0 3px var(--acc-soft,rgba(19,184,238,.2));flex:none}
.hmh-tk{min-width:0}
.hmh-tk b{display:block;font-size:11px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hmh-st{font-size:9px;font-weight:700;padding:3px 7px;border-radius:999px;color:var(--acc,#13B8EE);background:var(--acc-soft,rgba(19,184,238,.15));border:1px solid var(--acc-bd,rgba(19,184,238,.4));white-space:nowrap;flex:none;max-width:9.5em;overflow:hidden;text-overflow:ellipsis}
.hmh-tasks li.is-done{border-color:rgba(104,226,180,.45);background:rgba(104,226,180,.08)}
.hmh-tasks li.is-done .hmh-dot{background:#68E2B4;box-shadow:0 0 0 3px rgba(104,226,180,.2)}
.hmh-tasks li.is-done .hmh-st,.hmh-col article.is-done .hmh-st{color:#68E2B4;background:rgba(104,226,180,.14);border-color:rgba(104,226,180,.4)}
.hmh-col article.is-done{border-color:rgba(104,226,180,.45);background:rgba(104,226,180,.08)}
.hmh-st-b{display:none}
.hmh-tasks li.is-done .hmh-st-a,[data-done].is-done .hmh-st-a{display:none}
.hmh-tasks li.is-done .hmh-st-b,[data-done].is-done .hmh-st-b{display:inline}
.hmh-aside .hmh-st-b{display:none}
.hmh-aside.is-done .hmh-st-a{display:none}
.hmh-aside.is-done .hmh-st-b{display:block}

.hmh-board{flex:1;min-height:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
@media (min-width:1101px) and (max-width:1279px){
  /* Equal 2-col board: hide Wysłane so W realizacji + Wykonane each have
     room for a one-line title and the full 'W realizacji' pill. The board
     stays in the 170px L-layout, just left of the phone. */
  .hmh-board{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hmh-board .hmh-col:first-child{display:none}
}
.hmh-col{min-width:0;min-height:0;display:flex;flex-direction:column;gap:5px;padding:6px;border-radius:11px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08)}
.hmh-col > span{font-size:9px;font-weight:800;letter-spacing:.02em;text-transform:uppercase;color:#9FB2BC;padding:2px 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hmh-col article{min-width:0;padding:8px 5px;border-radius:9px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);opacity:0;transform:translateY(6px);transition:opacity .35s,transform .4s;overflow:hidden}
.hmh-col article b{display:block;max-width:100%;font-size:10px;font-weight:700;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hmh-col article .hmh-sk{margin-top:5px}
.hmh-col article b + .hmh-st{display:inline-flex;align-items:center;margin-top:7px;box-sizing:border-box;max-width:100%;width:max-content;padding:3px 5px;overflow:visible;text-overflow:clip}
.hmh-col article b + .hmh-sk{margin-top:7px}

/* AI stream */
.hmh-stream p{margin:0 0 6px;font-size:10.5px;color:#D5DEE4}
.hmh-stream .hmh-sk{opacity:0;transform:translateY(4px);transition:opacity .35s,transform .4s}
.hmh-stream.is-in .hmh-sk,.hmh-stream .hmh-sk.is-in{opacity:1;transform:none}
.hmh-stream .hmh-sk:nth-child(2){transition-delay:.12s}
.hmh-stream .hmh-sk:nth-child(3){transition-delay:.24s}
.hmh-stream .hmh-sk:nth-child(4){transition-delay:.36s}

/* progress */
.hmh-bar{height:6px;border-radius:99px;background:rgba(255,255,255,.1);overflow:hidden}
.hmh-bar i{display:block;height:100%;width:0;border-radius:99px;background:linear-gradient(90deg,#13B8EE,#68E2B4);transition:width .6s ease}
.hmh-bar.is-in i,.hmh-bar[data-prog].is-in i{width:72%}
.hmh-bar.is-done i{width:100%}

/* phone companion */
.hmh-phn{position:absolute;inset:0;display:flex;flex-direction:column;color:#F3F7F9;padding:0 0 0}
.hmh-phn-stage{position:relative;flex:1;min-height:0;display:grid;padding:4px 10px 0;overflow:hidden}
.hmh-phn-sc{grid-area:1/1;min-height:0;display:none;flex-direction:column;gap:7px;padding:2px 0 8px;opacity:0;transform:translateY(8px);
  transition:opacity .4s ease,transform .5s cubic-bezier(.2,.7,.2,1),padding-top .35s ease}
.hmh-phn-sc.is-on{display:flex}
.hmh-phn-sc.is-in{opacity:1;transform:none}
.hmh-phn-sc.has-toast{padding-top:58px}
.hmh-toast{position:absolute;left:8px;right:8px;top:6px;z-index:4;display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:14px;
  background:#101A24;border:1px solid rgba(255,255,255,.16);box-shadow:0 10px 24px rgba(0,0,0,.5);
  opacity:0;transform:translateY(-8px);pointer-events:none;transition:opacity .35s,transform .4s}
.hmh-toast.is-in{opacity:1;transform:none}
.hmh-toast .hmh-i{width:16px;height:16px;color:#13B8EE}
.hmh-toast b{display:block;font-size:11px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hmh-toast span{min-width:0}.hmh-toast small{display:block;font-size:9px;color:#9FB2BC;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hmh-plist{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px}
.hmh-plist li{display:flex;align-items:center;gap:8px;padding:8px 9px;border-radius:11px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);
  opacity:0;transform:translateY(6px);transition:opacity .35s,transform .4s}
.hmh-phn-sc.is-in .hmh-plist li,.hmh-phn-sc.is-in .hmh-tasks li{opacity:1;transform:none}
.hmh-phn-sc.is-in .hmh-plist li:nth-child(2),.hmh-phn-sc.is-in .hmh-tasks li:nth-child(2){transition-delay:.1s}
.hmh-phn-sc.is-in .hmh-plist li:nth-child(3),.hmh-phn-sc.is-in .hmh-tasks li:nth-child(3){transition-delay:.2s}
.hmh-phn-sc.is-in .hmh-plist li:nth-child(4){transition-delay:.3s}
.hmh-plist li b{font-size:11px;font-weight:700}
.hmh-chips{display:flex;flex-wrap:wrap;gap:5px}
.hmh-chips i{display:inline-flex;align-items:center;padding:4px 7px;border-radius:999px;font-size:9px;font-weight:700;font-style:normal;color:#9FB2BC;
  background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);transition:color .3s,background .3s,border-color .3s}
.hmh-chips i.is-on{color:#68E2B4;background:rgba(104,226,180,.14);border-color:rgba(104,226,180,.4)}
.hmh-amt{margin-top:auto;padding:8px 10px;border-radius:11px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1)}
.hmh-amt b{display:block;font-size:16px;font-weight:800;letter-spacing:-.02em;color:#fff}
.hmh-amt small{font-size:9px;color:#9FB2BC}
.hmh-phn .hmh-bub{max-width:100%;font-size:10px}
.hmh-phn .hmh-tasks li{padding:7px 8px}
.hmh-typ{display:inline-flex;align-items:center;gap:3px;padding:6px 10px;border-radius:12px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);
  opacity:0;transform:translateY(6px);transition:opacity .3s,transform .35s;align-self:flex-start}
.hmh-typ.is-in{opacity:1;transform:none}
.hmh-typ i{width:5px;height:5px;border-radius:50%;background:#9FB2BC;opacity:.4}
.hmh-typ.is-in i{animation:hmh-typ .9s ease-in-out infinite}
.hmh-typ.is-in i:nth-child(2){animation-delay:.15s}
.hmh-typ.is-in i:nth-child(3){animation-delay:.3s}
@keyframes hmh-typ{0%,80%,100%{opacity:.35;transform:translateY(0)}40%{opacity:1;transform:translateY(-2px)}}
.hmh-qrep{display:flex;flex-wrap:wrap;gap:5px;margin-top:auto}
.hmh-qrep span{padding:5px 8px;border-radius:999px;font-size:9.5px;font-weight:700;color:#13B8EE;background:rgba(19,184,238,.12);border:1px solid rgba(19,184,238,.35);
  opacity:0;transform:translateY(6px);transition:opacity .3s,transform .35s}
.hmh-qrep.is-in span,.hmh-qrep span.is-in{opacity:1;transform:none}

.hero-visual .hmh-phn .mph-tab{gap:0;padding-left:4px;padding-right:4px}
.hero-visual .hmh-phn .mph-tab i{flex:1 1 0;min-width:0}
.hero-visual .hmh-phn .mph-tab i .hmh-i{width:15px;height:15px}

/* promo video override */
.mk-has-video .hmh,.mk-has-video .hmh-phn,.mk-has-video .hmh-mob{opacity:0;visibility:hidden;pointer-events:none;transition:opacity .4s}

@media (max-width:1100px){
  .hmh{grid-template-columns:118px minmax(0,1fr)}
  .hmh-stage{padding-right:8px}
  .hmh-tiles li{padding:6px 8px}
  .hmh-side nav span{font-size:9px;padding:4px 6px}
}
@media (max-width:768px){
  .hmh{grid-template-columns:minmax(0,1fr)}
  .hmh-side{display:none}
  .hmh-top{padding:8px 10px}
  .hmh-stage{margin:6px 8px 8px;padding-right:8px}
  .hmh-tr{grid-template-columns:16px minmax(0,1.2fr) minmax(0,.9fr) minmax(0,.5fr);gap:4px;font-size:9px}
  .hmh-tr.th{letter-spacing:0;font-size:8px}
  .hmh-who b{font-size:12px}
  .hmh-split{grid-template-columns:1fr}
  .hmh-board{grid-template-columns:1fr;overflow:hidden}
  .hmh-board .hmh-col:nth-child(n+3){display:none}
  .hmh-col article:nth-of-type(n+3){display:none}
  .hmh-tn b{font-size:10px}
  .hmh-aside,.hmh-ksef-row{display:none}
  .hmh-sc.is-on{display:flex;flex-direction:column}
}
@media (max-width:800px){
  .hmh-tr{grid-template-columns:16px minmax(0,1.2fr) minmax(0,.9fr) minmax(0,.5fr);gap:4px;font-size:9px}
  .hmh-tr.th{letter-spacing:0;font-size:8px}
}
@media (max-width:480px){
  .hmh{grid-template-columns:minmax(0,1fr)}
  .hmh-side{display:none}
  .hmh-tiles{grid-template-columns:1fr}
  .hmh-tiles li:nth-child(n+5){display:none}
  .hmh-tr{grid-template-columns:minmax(0,1.2fr) minmax(0,.9fr) minmax(0,.55fr);gap:6px;font-size:9px}
  .hmh-tr .hmh-ic,.hmh-tr.th > span:first-child{display:none}
  .hmh-ksef li{padding:6px 7px;font-size:10px}
  .hmh-stage{padding-right:8px}
}

@media (prefers-reduced-motion:reduce){
  .hmh-sc,.hmh-sc.is-in,.hmh-tiles li,.hmh-bub,.hmh-live,.hmh-tasks li,.hmh-list li,.hmh-col article,.hmh-phn-sc,.hmh-toast,.hmh-plist li,.hmh-typ,.hmh-qrep span,.hmh-stream .hmh-sk,.hmh-bar i,.mk-has-video .hmh,.mk-has-video .hmh-phn,.hmh-mob-sc,.mk-has-video .hmh-mob{transition:none;transform:none;animation:none}
}

/* =====================================================================
   Mobile (≤768): same pattern as invoice-generator / consultations /
   task-accountant — hide the phone and the browser chrome, show the
   app panel as one full-width glass card. Duo 769–1100 keeps the
   overlapping browser+phone composite (content clears the phone).
   ===================================================================== */
@media (max-width:768px){
  .hero-v3 .hero-visual{padding:0;perspective:none;max-width:100%;width:100%;min-height:0}
  .hero-v3 .mk-phone{display:none}
  .hero-v3 .chrome{display:none}
  .hero-v3 .browser,.hero-v3 .mk-browser{
    transform:none;transform-origin:center center;width:100%;max-width:100%;
    margin:0;padding:0;background:transparent;border:0;border-radius:0;
    box-shadow:none;outline:none;overflow:visible
  }
  .hero-v3 .mk-screen{
    aspect-ratio:auto;height:316px;border-radius:22px;
    border:1px solid rgba(255,255,255,.12);overflow:hidden;
    box-shadow:0 14px 34px rgba(0,0,0,.3);background:#0B1A24
  }
  .hero-v3 .mk-screen::after{content:none;display:none}
}

@media (max-width:480px){
  .hero-v3 .hero-visual{padding:0}
}

/* =====================================================================
   Mobile service card (≤768 only). Desktop / Duo 769+ keep the full
   11-scene browser+phone hero. Hidden on wider viewports.
   ===================================================================== */
.hmh-mob{display:none}

@media (max-width:768px){
  .hmh{display:none}
  .hmh-mob{
    display:flex;flex-direction:column;position:absolute;inset:0;z-index:1;
    color:#F3F7F9;text-align:left;
    background:radial-gradient(120% 80% at 100% 0%,rgba(19,184,238,.16),transparent 55%),radial-gradient(90% 70% at 0% 100%,rgba(255,160,79,.10),transparent 55%),#0B1A24
  }
  .hmh-mob-top{
    flex:none;display:flex;align-items:center;gap:10px;
    padding:10px 14px;border-bottom:1px solid rgba(255,255,255,.08);
    background:rgba(255,255,255,.02)
  }
  .hmh-mob-stage{position:relative;flex:1;min-height:0;min-width:0}
  .hmh-mob-sc{
    position:absolute;inset:0;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;
    gap:8px;padding:10px 12px 4px;opacity:0;visibility:hidden;pointer-events:none;
    transform:translateY(12px);
    transition:opacity .5s ease,transform .55s cubic-bezier(.2,.7,.2,1),visibility .5s
  }
  .hmh-mob-sc.is-on{opacity:1;visibility:visible;pointer-events:none;transform:none}
  .hmh-mob-head{flex:none;display:flex;align-items:center;gap:12px;min-width:0}
  .hmh-mob-ic{
    flex:none;width:56px;height:56px;border-radius:16px;
    display:grid;place-items:center;color:#04202C;
    background:linear-gradient(135deg,var(--acc-hi,#8EE3FE),var(--acc,#13B8EE));
    box-shadow:0 10px 24px rgba(0,0,0,.28)
  }
  .hmh-mob-ic svg{width:26px;height:26px;display:block;stroke:currentColor;fill:none;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
  .hmh-mob-copy{flex:1;min-width:0}
  .hmh-mob-sc h3,.hmh-mob-sc .hmh-mob-t{
    margin:0 0 4px;font-size:20px;font-weight:750;letter-spacing:-.03em;line-height:1.15;color:#fff
  }
  .hmh-mob-fact{
    margin:0;font-size:14.5px;font-weight:650;line-height:1.3;color:var(--acc,#13B8EE)
  }
  .hmh-mob-grid{
    margin:0;padding:0;list-style:none;flex:1;min-height:0;
    display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    grid-template-rows:minmax(70px,1fr) minmax(70px,1fr);gap:8px
  }
  .hmh-mob-grid li{
    margin:0;padding:7px 8px;min-width:0;min-height:0;
    border-radius:12px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);
    display:flex;align-items:center;gap:6px;
    opacity:0;transform:translateY(8px);
    transition:opacity .35s ease,transform .4s cubic-bezier(.2,.7,.2,1)
  }
  .hmh-mob-sc.is-on .hmh-mob-grid li{opacity:1;transform:none}
  .hmh-mob-sc.is-on .hmh-mob-grid li:nth-child(1){transition-delay:.04s}
  .hmh-mob-sc.is-on .hmh-mob-grid li:nth-child(2){transition-delay:.1s}
  .hmh-mob-sc.is-on .hmh-mob-grid li:nth-child(3){transition-delay:.16s}
  .hmh-mob-sc.is-on .hmh-mob-grid li:nth-child(4){transition-delay:.22s}
  .hmh-mob-tic{
    flex:none;position:relative;width:26px;height:26px;border-radius:8px;
    display:grid;place-items:center;color:var(--acc,#13B8EE);
    background:var(--acc-soft,rgba(19,184,238,.15));
    border:1px solid var(--acc-bd,rgba(19,184,238,.4))
  }
  .hmh-mob-tic svg{width:15px;height:15px;display:block;stroke:currentColor;fill:none;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round}
  .hmh-mob-tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;justify-content:center}
  .hmh-mob-tx b{
    display:block;margin:0;
    font-size:12px;font-weight:750;line-height:1.2;color:#fff;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis
  }
  .hmh-mob-tx small{
    display:block;font-size:10.5px;font-weight:500;line-height:1.25;color:#9FB2BC;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis
  }
  .hmh-mob-grid li.is-live .hmh-mob-tic::after{
    content:"";position:absolute;top:-2px;right:-2px;width:7px;height:7px;border-radius:50%;
    background:#68E2B4;box-shadow:0 0 0 3px rgba(104,226,180,.22);pointer-events:none
  }
  .hmh-mob-live{display:none}
  .hmh-mob-dots{
    flex:none;display:flex;justify-content:center;align-items:center;gap:6px;
    padding:2px 16px 10px
  }
  .hmh-mob-dots i{
    display:block;width:6px;height:6px;border-radius:99px;
    background:rgba(255,255,255,.22);transition:width .35s,background .35s
  }
  .hmh-mob-dots i.is-on{width:16px;background:#13B8EE}
}

@media (max-width:360px){
  .hero-v3 .mk-screen{height:300px}
  .hmh-mob-top{padding:8px 12px}
  .hmh-mob-sc{gap:8px;padding:8px 10px 2px}
  .hmh-mob-head{gap:10px}
  .hmh-mob-ic{width:44px;height:44px;border-radius:13px}
  .hmh-mob-ic svg{width:20px;height:20px}
  .hmh-mob-sc h3,.hmh-mob-sc .hmh-mob-t{font-size:17px}
  .hmh-mob-fact{font-size:13px}
  .hmh-mob-grid{gap:6px;grid-template-rows:minmax(64px,1fr) minmax(64px,1fr)}
  .hmh-mob-grid li{padding:7px 8px;border-radius:11px}
  .hmh-mob-tic{width:24px;height:24px;border-radius:7px}
  .hmh-mob-tic svg{width:13px;height:13px}
  .hmh-mob-grid li{padding:6px 7px;gap:5px}
  .hmh-mob-tic{width:22px;height:22px}
  .hmh-mob-tic svg{width:12px;height:12px}
  .hmh-mob-tx b{font-size:11px}
  .hmh-mob-tx small{font-size:9.5px}
}

@media (min-width:640px) and (max-width:768px){
  .hmh-mob-top{padding:12px 20px}
  .hmh-mob-sc{gap:10px;padding:12px 20px 6px}
  .hmh-mob-head{gap:16px}
  .hmh-mob-ic{width:56px;height:56px;border-radius:16px}
  .hmh-mob-ic svg{width:26px;height:26px}
  .hmh-mob-sc h3,.hmh-mob-sc .hmh-mob-t{font-size:22px}
  .hmh-mob-fact{font-size:15px}
  .hmh-mob-grid{gap:10px}
  .hmh-mob-grid li{padding:10px 12px;border-radius:14px}
  .hmh-mob-tic{width:32px;height:32px;border-radius:9px}
  .hmh-mob-tic svg{width:16px;height:16px}
  .hmh-mob-tx b{font-size:14px}
  .hmh-mob-tx small{font-size:12px}
}

@media (prefers-reduced-motion:reduce){
  .hmh-mob-sc,.hmh-mob-dots i,.hmh-mob-grid li{transition:none;transform:none}
  .hmh-mob-grid li{opacity:1}
}
