/* Imagina't · apps, eines i automatitzacions a mida. Hereta ../style.css i ../mockups.css
   Color de la via: pissarra (--pissarra), al costat de l'arcilla (Mostra't) i l'oliva (Fidelitza't). */
.im { --ac: var(--pissarra-soft); }
/* Dins la pàgina, el verd de la via passa a pissarra (botons, destacats i dibuixos); la capçalera es queda igual */
.im main { --torna: var(--pissarra); --torna-deep: var(--pissarra-deep); --torna-soft: var(--pissarra-soft); --piedra-soft: var(--pissarra-soft); }
.im ::selection { background: var(--pissarra); color: var(--paper); }
.pn { display: block; color: var(--pissarra); }
.im main section[id] { scroll-margin-top: 68px; }
.im .sp-who { color: var(--ink-2); }

/* ---------- Hero: el panell del negoci a l'ordinador i, al davant, l'app del client ---------- */
.im .mk { --mk-ac: var(--ink); --mk-on: var(--paper); --mk-soft: var(--paper-2); }
.im-stage { width: min(100%, 470px); justify-items: start; padding: 0 0 30px; }
.im-win { display: block; width: 84%; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); overflow: hidden; }
.im-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 12px; border-bottom: 1px solid var(--line); background: var(--paper-2); font-size: 12px; color: var(--ink-2); }
.im-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--piedra); }
.im-bar span { margin-left: 8px; font-weight: 600; }
.im-tag { margin-left: 4px; padding: 1px 6px; border: 1px solid var(--piedra); border-radius: 3px; font: 600 11px/1.4 var(--f-body); font-style: normal; color: var(--ink-2); }
.im-win-in { display: grid; padding: 10px 14px 74px; }
.im-row { position: relative; display: grid; grid-template-columns: 48px max-content max-content; justify-content: start; gap: 12px; align-items: center; height: 38px; border-bottom: 1px dashed var(--line); font-size: 13px; }
.im-row > span:first-child { font-weight: 700; font-variant-numeric: tabular-nums; }
.im-row em { font-style: normal; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: var(--r-pill); background: var(--paper-2); }
.im-row em.is-wait { background: var(--vine-soft); color: var(--vine-ink); }
.im-new em { background: var(--pissarra); color: var(--paper); }
.im-new::before { content: ""; position: absolute; inset: 0 -14px; z-index: -1; background: var(--pissarra-soft); opacity: 0; }
.im-head { height: 28px; font-size: 12px; color: var(--ink-2); }
.im-head > span:first-child { font-weight: 600; }
.im-win-in { position: relative; z-index: 0; }
.im-phone { position: absolute; right: 0; bottom: 0; width: 186px; }

.im-app { display: flex; flex-direction: column; gap: 9px; padding: 8px 14px 16px; flex: 1; min-height: 0; }
.im-app-t { font: 400 22px/1.1 var(--f-head); letter-spacing: -0.015em; }
.im-app-k { font: 700 11px/1 var(--f-body); color: var(--ink-2); margin-top: 2px; }
.im-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.im-days span { display: grid; justify-items: center; gap: 2px; padding: 6px 0; border-radius: 10px; background: var(--paper-2); font-size: 11px; color: var(--ink-2); }
.im-days b { font-size: 15px; color: var(--ink); }
.im-days .is-on { background: var(--ink); color: var(--on-dark-2); }
.im-days .is-on b { color: var(--paper); }
.im-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.im-slots span { position: relative; display: grid; place-items: center; height: 30px; border-radius: 8px; border: 1.5px solid var(--piedra); font: 600 12.5px/1 var(--f-body); }
.im-slots .im-pick { background: var(--pissarra-soft); border-color: var(--pissarra); color: var(--pissarra-deep); }
.im-count { display: flex; align-items: center; justify-content: space-between; height: 32px; padding: 0 12px; border-radius: 8px; background: var(--paper-2); font-weight: 700; }
.im-cta { position: relative; display: grid; place-items: center; height: 36px; margin-top: auto; border-radius: 9px; background: var(--pissarra); color: var(--paper); font: 700 12.5px/1 var(--f-body); }
.im-cta > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 6px; }
.im-cta-a { opacity: 0; }
.im-cta svg, .ims-go svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* El dit: un cercle suau que surt on es toca */
.im-tap { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--ink); opacity: 0; pointer-events: none; }

/* La confirmació que rep el client, com un missatge de WhatsApp */
.im-msg { position: absolute; left: 14px; bottom: 0; z-index: 2; display: grid; gap: 4px; width: 222px; padding: 10px 12px 8px; border-radius: 12px 12px 12px 4px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 1px 2px rgb(44 51 42 / .08), 0 14px 30px -14px rgb(44 51 42 / .3); font-size: 12.5px; line-height: 1.35; }
.im-msg small { display: inline-flex; align-items: center; gap: 5px; font: 700 11px/1 var(--f-body); color: var(--pissarra-deep); }
.im-msg small svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.im-msg-t { justify-self: end; display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: var(--ink-2); }
.im-msg-t svg { width: 17px; height: 10px; fill: none; stroke: var(--pissarra); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) {
  /* Al mòbil, el telèfon baixa i el missatge queda al seu costat */
  .im-stage { padding-bottom: 300px; }
  .im-win { width: 100%; }
  .im-win-in { padding-bottom: 44px; }
  .im-phone { width: 172px; right: 8px; }
  .im-msg { left: 0; bottom: 96px; width: calc(100% - 196px); min-width: 140px; font-size: 12px; }
}

/* ---------- Què podem fer: dues targetes grans i tres de petites, cadascuna amb una maqueta ---------- */
.im-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.im-card { grid-column: span 2; display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.6vw, 30px); border: 1.5px solid var(--line); border-radius: var(--r-block); background: var(--paper); }
.im-card.is-big { grid-column: span 3; background: var(--paper-2); border-color: var(--paper-2); }
.im-card h3 { font-size: clamp(20px, 2vw, 23px); margin-top: 6px; }
.im-card p { margin: 0; color: var(--ink-2); font-size: 16px; }
@media (max-width: 960px) { .im-card, .im-card.is-big { grid-column: span 3; } .im-card:nth-child(5) { grid-column: 1 / -1; } }
@media (max-width: 640px) { .im-grid { grid-template-columns: minmax(0, 1fr); } .im-card, .im-card.is-big, .im-card:nth-child(5), .im-card.is-wide { grid-column: auto; } }
/* Idea (no feta): accés al gimnàs amb el QR del Wallet. Fitxa ampla, amb el dibuix a l'esquerra */
.im-card.is-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 40px); align-items: center; border-style: dashed; }
.im-wide-txt { display: grid; gap: 10px; }
.im-idea { justify-self: start; padding: 4px 10px; border-radius: var(--r-pill, 999px); background: var(--vine-soft); color: var(--vine-ink); font-size: 13px; font-weight: 700; }
.im-idea-note { font-size: 14px !important; color: var(--ink-2); }
@media (max-width: 760px) { .im-card.is-wide { grid-template-columns: minmax(0, 1fr); } }
.im-mini { display: grid; gap: 8px; align-content: start; min-height: 150px; padding: 14px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); font-size: 13px; }
.im-card:not(.is-big) .im-mini { background: var(--paper-2); border-color: var(--paper-2); }
.im-mini svg { overflow: visible; }

/* Comanda: el client marca, envia, i el tiquet surt per la impressora de la cuina */
.im-shop { grid-template-columns: minmax(0, 290px) 124px; justify-content: start; align-items: start; gap: 14px; padding: 0; background: none !important; border: 0 !important; }
.ims-order { display: grid; gap: 8px; padding: 14px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 14px 30px -20px rgb(44 51 42 / .45); }
.ims-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.ims-head small { color: var(--ink-2); font-size: 12px; }
.ims-item { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.ims-item b { display: grid; place-items: center; min-width: 26px; height: 22px; border-radius: 6px; background: var(--paper-2); font-size: 12px; }
.ims-ck { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--pissarra); background: var(--pissarra); }
.ims-ck svg { width: 12px; height: 12px; fill: none; stroke: var(--paper); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 12; stroke-dashoffset: 0; }
.ims-go { position: relative; display: grid; place-items: center; height: 32px; margin-top: 4px; border-radius: 8px; background: var(--pissarra); color: var(--paper); font-weight: 700; font-size: 12.5px; }
.ims-go > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 6px; }
.ims-go-a { opacity: 0; }
.ims-kitchen { display: grid; justify-items: center; padding-top: 10px; }
.ims-printer { position: relative; z-index: 1; width: 100%; height: 12px; border-radius: 4px; background: var(--ink); }
.ims-printer::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; border-radius: 1px; background: #141812; }
.ims-paper { width: calc(100% - 16px); margin-top: -3px; overflow: hidden; }
.ims-ticket { display: grid; gap: 3px; padding: 10px 10px 12px; background: #FBF7F0; border: 1px solid var(--line); border-top: 0; font-size: 11px; line-height: 1.3; color: var(--ink); }
.ims-ticket b { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.ims-ticket small { padding-bottom: 5px; margin-bottom: 2px; border-bottom: 1px dashed var(--piedra); font-size: 10.5px; color: var(--ink-2); }
@media (max-width: 420px) { .im-shop { grid-template-columns: minmax(0, 1fr) 112px; gap: 10px; } .ims-order { padding: 12px; } }

/* Equip: estoc amb mínim; quan la farina hi baixa, surt «Demanar» i una tasca per a la Pau */
.imp-tabs { display: flex; gap: 6px; margin-bottom: 4px; }
.imp-tabs span { padding: 3px 10px; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.imp-tabs .is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.imp-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 64px; gap: 10px; align-items: center; min-height: 30px; border-bottom: 1px dashed var(--line); }
.imp-st { display: grid; justify-items: end; font-size: 12px; color: var(--ink-2); }
.imp-st > * { grid-area: 1 / 1; }
.imp-st em { font-style: normal; font-weight: 700; color: #A0472F; }
.imp-low .imp-st > span { opacity: 0; }
.imp-bar { position: relative; }
.imp-fill { display: block; height: 8px; border-radius: 4px; background: var(--paper-2); overflow: hidden; }
.imp-fill i { display: block; height: 100%; border-radius: 4px; background: var(--pissarra); transform: translateX(calc((var(--w) - 1) * 100%)); }
.imp-low .imp-fill i { background: var(--vine-ink); }
.imp-bar u { position: absolute; left: 30%; top: -3px; width: 1.5px; height: 14px; background: var(--ink-2); opacity: .55; }
.imp-task { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 4px; padding: 8px 10px; border-radius: 8px; background: var(--paper-2); }
.imp-task > span { display: grid; gap: 1px; line-height: 1.25; }
.imp-task > span b { font-size: 12.5px; }
.imp-task > span small { font-size: 11px; color: var(--ink-2); }
.imp-av { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--vine); color: var(--on-vine); font-size: 12px; }
.imp-new { padding: 2px 7px; border-radius: 3px; background: var(--pissarra); color: var(--paper); font-size: 11px; font-weight: 700; }

/* Programa per vendre: una plantilla, tres negocis */
.im-saas { position: relative; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; padding-top: 44px; }
.imz-tpl { position: absolute; left: 50%; top: 8px; z-index: 3; translate: -50% 0; padding: 2px 8px; border: 1px dashed var(--ink-2); border-radius: 3px; font-size: 11px; font-weight: 700; color: var(--ink-2); background: var(--paper-2); opacity: 0; }
.imz { position: relative; display: grid; gap: 5px; padding: 0 0 8px; border-radius: 7px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; font-size: 12px; font-weight: 600; }
.imz:nth-child(3) { z-index: 1; translate: 0 -10px; }
.imz-top { display: flex; align-items: center; height: 30px; padding: 0 7px; background: var(--c); }
.imz-top b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); color: var(--ink); font: 400 12px/1 var(--f-head); }
.imz > i { height: 5px; margin: 0 8px; border-radius: 3px; background: var(--paper-2); }
.imz > i + i { width: 55%; }
.imz small { margin: 3px 8px 0; font-size: 11.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Connectar: el que entra pel WhatsApp arriba al full i a les factures */
.im-link { place-content: center; }
.iml { display: block; width: 100%; height: auto; font-family: var(--f-body); }
.iml text { font-size: 13px; font-weight: 600; fill: var(--ink); text-anchor: middle; }
.iml-line { fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 3 4; opacity: .7; }
.iml-run { fill: none; stroke: var(--pissarra); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 34 160; stroke-dashoffset: -104; }
.iml-nd rect { fill: var(--paper); stroke: var(--piedra); stroke-width: 1; }
.iml-full rect, .iml-fac rect { stroke: var(--pissarra); stroke-width: 1.5; }
.iml-hub rect { fill: var(--ink); }
.iml-hub text { fill: var(--paper); font-size: 14px; }
.iml-ring { fill: none; stroke: var(--pissarra); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.iml-msg rect { fill: var(--pissarra-soft); }
.iml-msg text { font-size: 11.5px; font-weight: 700; fill: var(--pissarra-deep); }
.iml-badge { transform-box: fill-box; transform-origin: center; }
.iml-badge rect, .iml-badge circle { fill: var(--pissarra); }
.iml-badge text { font-size: 11.5px; font-weight: 700; fill: var(--paper); }
.iml-badge path { fill: none; stroke: var(--paper); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Automatització: quan, què fa i on t'arriba */
.imr { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 70px; column-gap: 8px; align-items: end; padding: 7px 10px; border-radius: 8px; background: var(--paper); border: 1.5px solid var(--pissarra); font-weight: 600; font-size: 12.5px; line-height: 1.3; }
.imr small { grid-column: 1 / -1; font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.imr + .imr::before { content: ""; position: absolute; left: 18px; top: -10px; height: 10px; width: 2px; background: var(--pissarra); transform-origin: top; }
.imr-v { justify-self: end; padding: 2px 6px; border-radius: 4px; background: var(--pissarra); color: var(--paper); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.imr-msg { justify-self: start; display: grid; gap: 2px; max-width: 92%; margin-top: 4px; padding: 8px 11px 6px; border-radius: 12px 12px 12px 4px; background: var(--pissarra-soft); font-size: 12px; line-height: 1.35; }
.imr-msg small { justify-self: end; font-size: 10.5px; color: var(--pissarra-deep); }

/* Gimnàs: QR → torn → endavant → un més a dins */
.im-gym { grid-template-columns: auto auto auto auto auto; grid-template-rows: auto auto; justify-content: center; align-items: center; column-gap: 10px; row-gap: 16px; min-height: 0; padding: 22px 14px; }
.img-step { display: grid; justify-items: center; gap: 6px; }
.img-step small, .img-live small { font-size: 12px; color: var(--ink-2); }
.img-phone { display: block; padding: 10px 6px 12px; border-radius: 10px; background: var(--ink); }
.img-qr-box { position: relative; display: block; width: 46px; height: 46px; padding: 4px; border-radius: 3px; background: #FBF7F0; overflow: hidden; }
.img-qr-box svg { display: block; width: 100%; height: 100%; fill: var(--ink); }
.img-scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--pissarra); box-shadow: 0 0 0 1px rgb(78 100 114 / .25); opacity: 0; }
.img-arrow { width: 30px; height: 12px; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.img-arrow-base { stroke: var(--piedra); }
.img-arrow-run { stroke: var(--pissarra); stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.img-arrow-head { stroke: var(--pissarra); }
.img-gate { width: 56px; height: 56px; fill: none; stroke-linecap: round; }
.img-gate-ring { stroke: var(--pissarra); stroke-width: 2; fill: var(--paper); }
.img-arms { stroke: var(--ink); stroke-width: 3.2; transform-box: view-box; transform-origin: 28px 28px; transform: rotate(120deg); }
.img-gate-hub { fill: var(--ink); }
.img-okc { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--pissarra); background: var(--pissarra); }
.img-okc svg { width: 26px; height: 26px; fill: none; stroke: var(--paper); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.img-live { grid-column: 1 / -1; justify-self: center; display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); }
.img-live > i { width: 7px; height: 7px; border-radius: 50%; background: var(--pissarra); }
.img-roll { display: inline-block; height: 24px; overflow: hidden; font: 600 22px/24px var(--f-body); color: var(--ink); font-variant-numeric: tabular-nums; }
.img-roll span { display: block; transform: translateY(-100%); }
@media (max-width: 380px) { .im-gym { column-gap: 6px; } .img-arrow { width: 22px; } }

/* ---------- Tancament: la banda fosca de sempre (oliva profund) ---------- */
.im .contact .lead { max-width: 56ch; }

/* ---------- Moviment: cada maqueta és una escena (imaginat.js) ----------
   Per defecte (sense JS o amb moviment reduït) es veu l'estat final.
   .sc-live = l'escena està a punt; s1, s2... són els passos; .sc-out esvaeix el resultat abans de tornar a començar;
   .sc-snap fa saltar sense transició el que ha de tornar a lloc (.sn). */
@keyframes im-tap { 0% { opacity: .22; transform: scale(.35); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes im-flash { 0%, 30% { opacity: 1; } 100% { opacity: 0; } }
@keyframes im-ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.12, 1.3); } }
@keyframes im-scan { 0% { opacity: 0; transform: translateY(2px); } 15%, 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(44px); } }
@keyframes im-press { 50% { transform: scale(.96); } }
@media (prefers-reduced-motion: no-preference) {
  .sc-snap .sn, .sc-snap .sn * { transition: none !important; }

  /* Hero */
  .im-slots .im-pick, .im-cta { transition: background-color .25s ease-out, border-color .25s ease-out, color .25s ease-out; }
  .im-cta > span { transition: opacity .25s ease-out, transform .35s var(--ease-out); }
  .sc-live:not(.s1) .im-pick { background: transparent; border-color: var(--piedra); color: var(--ink); }
  .sc-live:not(.s3) .im-cta { background: var(--ink); }
  .sc-live:not(.s3) .im-cta-a { opacity: 1; }
  .sc-live:not(.s3) .im-cta-b { opacity: 0; transform: translateY(6px); }
  .s1 .im-pick .im-tap, .s2 .im-cta .im-tap { animation: im-tap .6s ease-out; }
  .s2 .im-cta { animation: im-press .3s ease-out; }
  .im-row:not(.im-head) { transition: transform .6s var(--ease-out), opacity .45s ease-out; }
  .sc-live:not(.s3) .im-after { transform: translateY(-38px); }
  .sc-live:not(.s3) .im-new { opacity: 0; transform: translateX(18px); }
  .s3 .im-new::before { animation: im-flash 2.6s .2s ease-out; }
  .im-msg { transition: opacity .4s ease-out, transform .6s var(--ease-out); }
  .sc-live:not(.s4) .im-msg, .sc-out .im-msg { opacity: 0; transform: translateY(12px); }
  /* Abans de tornar a començar: la reserva nova i el «Reserva feta» s'esvaeixen, i després la llista es recol·loca */
  .sc-out .im-new { opacity: 0; transform: none; }
  .sc-out .im-cta-b { opacity: 0; }
  .sc-out .im-cta { background: var(--ink); }

  /* Comanda */
  .ims-ck { transition: background-color .2s ease-out; }
  .ims-ck svg { transition: stroke-dashoffset .3s ease-out .08s; }
  .sc-live:not(.s1) .ims-item:nth-of-type(2) .ims-ck,
  .sc-live:not(.s2) .ims-item:nth-of-type(3) .ims-ck,
  .sc-live:not(.s3) .ims-item:nth-of-type(4) .ims-ck { background: transparent; }
  .sc-live:not(.s1) .ims-item:nth-of-type(2) .ims-ck svg,
  .sc-live:not(.s2) .ims-item:nth-of-type(3) .ims-ck svg,
  .sc-live:not(.s3) .ims-item:nth-of-type(4) .ims-ck svg { stroke-dashoffset: 12; }
  .ims-go { transition: background-color .25s ease-out; }
  .ims-go > span { transition: opacity .25s ease-out, transform .35s var(--ease-out); }
  .sc-live:not(.s5) .ims-go { background: var(--ink); }
  .sc-live:not(.s5) .ims-go-a { opacity: 1; }
  .sc-live:not(.s5) .ims-go-b { opacity: 0; transform: translateY(6px); }
  .s4 .ims-go { animation: im-press .3s ease-out; }
  .ims-ticket { transition: transform 1.1s cubic-bezier(.3, .6, .35, 1), opacity .4s ease-out; }
  .sc-live:not(.s6) .ims-ticket { transform: translateY(-101%); }
  .sc-out .ims-ticket { opacity: 0; }

  /* Equip */
  .imp-low .imp-fill i { transition: transform 1.3s cubic-bezier(.45, 0, .3, 1), background-color .3s ease-out; }
  .sc-live:not(.s1) .imp-low .imp-fill i { transform: translateX(-42%); }
  .sc-live:not(.s2) .imp-low .imp-fill i { background: var(--pissarra); }
  .imp-low .imp-st > * { transition: opacity .25s ease-out, transform .35s var(--ease-out); }
  .sc-live:not(.s2) .imp-low .imp-st > span { opacity: 1; }
  .sc-live:not(.s2) .imp-low .imp-st em { opacity: 0; transform: translateY(5px); }
  .imp-task { transition: opacity .4s ease-out, transform .6s var(--ease-out); }
  .sc-live:not(.s3) .imp-task, .sc-out .imp-task { opacity: 0; transform: translateY(8px); }

  /* Programa per vendre */
  .imz { transition: transform .8s var(--ease-out); }
  .imz:nth-child(4) { transition-delay: .08s; }
  .imz-top { transition: background-color .4s ease-out; }
  .imz-top b, .imz small { transition: opacity .3s ease-out, transform .45s var(--ease-out); }
  .imz-tpl { transition: opacity .3s ease-out; }
  .sc-live:not(.s1) .imz:nth-child(2) { transform: translate(calc(100% + 8px), -4px) rotate(-5deg); }
  .sc-live:not(.s1) .imz:nth-child(4) { transform: translate(calc(-100% - 8px), -4px) rotate(5deg); }
  .sc-live:not(.s1) .imz-tpl { opacity: 1; }
  .sc-live:not(.s2) .imz-top { background: var(--piedra-soft); }
  .sc-live:not(.s2) .imz-top b, .sc-live:not(.s2) .imz small { opacity: 0; transform: scale(.7); }
  .sc-live:not(.s2) .imz small { transform: translateY(4px); }
  .imz:nth-child(3) .imz-top, .imz:nth-child(3) .imz-top b, .imz:nth-child(3) small { transition-delay: .12s; }
  .imz:nth-child(4) .imz-top, .imz:nth-child(4) .imz-top b, .imz:nth-child(4) small { transition-delay: .24s; }

  /* Connectar */
  .iml-run { transition: stroke-dashoffset .9s cubic-bezier(.45, 0, .3, 1); }
  .sc-live:not(.s2) .iml-run-a, .sc-live:not(.s3) :is(.iml-run-b, .iml-run-c) { stroke-dashoffset: 38; }
  .iml-msg { transition: opacity .35s ease-out, transform .5s var(--ease-out); }
  .sc-live:not(.s1) .iml-msg, .sc-out .iml-msg { opacity: 0; transform: translateY(6px); }
  .s3 .iml-ring { animation: im-ring .8s ease-out; }
  .iml-full rect, .iml-fac rect { transition: stroke .3s ease-out; }
  .sc-live:not(.s4) :is(.iml-full, .iml-fac) rect { stroke: var(--piedra); stroke-width: 1; }
  .iml-badge { transition: opacity .3s ease-out, transform .45s var(--ease-out); }
  .iml-badge-c { transition-delay: .12s; }
  .sc-live:not(.s4) .iml-badge, .sc-out .iml-badge { opacity: 0; transform: scale(.6); }

  /* Automatització */
  .imr { transition: border-color .3s ease-out; }
  .imr + .imr::before { transition: transform .45s var(--ease-out); }
  .imr-v { transition: background-color .3s ease-out, color .3s ease-out; }
  .sc-live:not(.s1) .imr-1, .sc-live:not(.s2) .imr-2, .sc-live:not(.s3) .imr-3 { border-color: var(--line); }
  .sc-live:not(.s1) .imr-clock, .sc-live:not(.s2) .imr-sum { background: var(--paper-2); color: var(--ink); }
  .sc-live:not(.s2) .imr-2::before, .sc-live:not(.s3) .imr-3::before { transform: scaleY(0); }
  .imr-msg { transition: opacity .4s ease-out, transform .6s var(--ease-out); }
  .sc-live:not(.s4) .imr-msg, .sc-out .imr-msg { opacity: 0; transform: translateY(10px); }

  /* Gimnàs */
  .s1 .img-scan { animation: im-scan .9s ease-in-out; }
  .img-arms { transition: transform .9s var(--ease-out); }
  .sc-live:not(.s2) .img-arms { transform: rotate(0deg); }
  .img-gate-ring { transition: stroke .3s ease-out; }
  .sc-live:not(.s2) .img-gate-ring { stroke: var(--ink-2); }
  .img-arrow-run { transition: stroke-dashoffset .4s ease-out; }
  .img-arrow-head { transition: stroke .2s ease-out .3s; }
  .sc-live:not(.s2) .img-arrow-1 .img-arrow-run, .sc-live:not(.s3) .img-arrow-2 .img-arrow-run { stroke-dashoffset: 1; }
  .sc-live:not(.s2) .img-arrow-1 .img-arrow-head, .sc-live:not(.s3) .img-arrow-2 .img-arrow-head { stroke: var(--piedra); }
  .img-okc { transition: background-color .3s ease-out .25s, border-color .3s ease-out .25s; }
  .img-okc svg { transition: stroke-dashoffset .35s ease-out .45s; }
  .sc-live:not(.s3) .img-okc { background: var(--paper-2); border-color: var(--piedra); }
  .sc-live:not(.s3) .img-okc svg { stroke-dashoffset: 1; }
  .img-roll span { transition: transform .5s var(--ease-out); }
  .sc-live:not(.s4) .img-roll span { transform: translateY(0); }
}

/* Botó per aturar i reprendre les escenes (el mateix .pause que la conversa d'Automatitzacions); el JS el mostra només amb moviment */
.im-pause { justify-self: start; margin-left: -12px; }
.ex-txt .im-pause { margin-top: 12px; }
.is-held [data-scene] *, .is-held [data-scene] *::before, .is-held [data-scene] *::after { animation-play-state: paused !important; }

/* Polit: a cada fila, la maqueta ocupa el mateix alt i els títols de les fitxes queden alineats */
.im-card > .im-mini { flex: 1 0 auto; align-content: center; }
.im-card > .im-shop { align-items: center; }
