/* Cas MOOM (body.ts.tv.mo). Hereta ../../style.css i ../testimonis.css: mateix sistema que el cas de Taxis Velasco.
   És un cas de Fidelitza't, així que l'accent és l'oliva (Torna). Els colors del MOOM només surten a les fotos. */
.mo :focus-visible { outline-color: var(--torna); }
.mo .tv-hero .pn { color: var(--torna); }

/* ===== 1. Hero: text, targeta real al mòbil i fitxa ===== */
.mo-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); grid-template-areas: "copy shot" "file shot"; row-gap: 28px; }
.mo-hero-copy { grid-area: copy; }
.mo-shot { grid-area: shot; }
.mo-file { grid-area: file; align-self: start; }
.mo-file dl > div { grid-template-columns: 72px minmax(0, 1fr); }

.mo-state { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 5px 12px 5px 10px; border-radius: var(--r-pill); background: var(--torna); color: var(--on-color); font-weight: 600; font-size: 14px; line-height: 1.3; }
.mo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--stamp); }

/* La foto de la targeta, amb l'avís que hi cau a sobre */
.mo-shot { margin: 0; display: grid; gap: 4px; }
.mo-shot-frame { position: relative; border-radius: var(--r-block); overflow: hidden; background: var(--ink); box-shadow: 0 24px 48px -30px rgb(44 51 42 / .55); }
.mo-shot-frame img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 62%; }
.mo-note { position: absolute; top: 14px; left: 14px; right: 14px; margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--paper); color: var(--ink); box-shadow: 0 14px 28px -16px rgb(0 0 0 / .6); }
.mo-note-app { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--torna); color: var(--on-color); font: 700 16px/1 var(--f-body); }
.mo-note-txt { min-width: 0; display: grid; gap: 1px; font-size: 14px; line-height: 1.3; }
.mo-note-txt b { font-size: 13px; letter-spacing: .04em; }
.mo-note-time { align-self: start; font-size: 12px; color: var(--ink-2); }
.mo-shot .fine { margin-top: 8px; }

@media (max-width: 860px) {
  .mo-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "shot" "file"; }
  .mo-shot { max-width: 420px; }
}

/* ===== 2. Així funciona: cinc passos i la targeta que s'omple ===== */
.mo-steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: none; }
.mo-steps li { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; border-radius: var(--r-block); background: var(--paper-2); }
.mo-step-n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--torna); color: var(--on-color); font: 700 15px/1 var(--f-body); font-variant-numeric: tabular-nums; }
.mo-steps .ill { width: 40px; height: 40px; color: var(--ink-2); }
.mo .mo-steps h3 { font-size: 18px; line-height: 1.25; }
.mo-steps p { margin: 0; font-size: 15px; color: var(--ink-2); }
.mo-dots { display: flex; gap: 5px; margin-top: auto; padding-top: 6px; }
.mo-dots i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.mo-dots i.on { background: var(--torna); box-shadow: none; }
.mo-dots i.g { box-shadow: inset 0 0 0 2px var(--vine-ink); }
.mo-count { font-size: 13px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* El premi: l'únic pas en oliva */
.mo-steps li.is-prize { background: var(--torna); color: var(--on-color); }
.mo-steps li.is-prize .mo-step-n { background: var(--paper); color: var(--torna-deep); }
.mo-steps li.is-prize .ill { color: var(--on-color); }
.mo-steps li.is-prize p, .mo-steps li.is-prize .mo-count { color: var(--on-color); }
.mo-steps li.is-prize .mo-dots i.on { background: var(--stamp); }
.mo-steps li.is-prize .mo-dots i.g.on { background: var(--vine); }

/* Mòbil: en vertical, amb un fil que uneix els números */
@media (max-width: 900px) {
  .mo-steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .mo-steps li { display: grid; align-content: start; justify-items: start; grid-template-columns: 32px minmax(0, 1fr); column-gap: 16px; row-gap: 6px; padding: 0 0 24px; background: none; }
  .mo-steps li > :not(.mo-step-n) { grid-column: 2; }
  .mo-step-n { grid-row: 1 / span 4; }
  .mo-steps li::before { content: ""; position: absolute; left: 15px; top: 38px; bottom: 6px; width: 2px; border-radius: 1px; background: var(--line); }
  .mo-steps li:last-child::before { content: none; }
  .mo-steps .ill { display: none; }
  .mo-steps li.is-prize { padding: 18px 20px 20px; margin-left: -20px; margin-right: -4px; grid-template-columns: 32px minmax(0, 1fr); }
  .mo .mo-steps h3 { margin-top: 4px; }
}

/* ===== 3. Què estem fent ===== */
.mo-did-top { align-items: center; }
.mo-place { margin: 0; display: grid; gap: 4px; }
.mo-place img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-block); }
.mo-place .fine { margin-top: 8px; }

/* ===== 4 i 5. I després, potser, i la nota de resultats ===== */
.mo-later { padding-block: 0 clamp(24px, 4vw, 40px); }
.mo-later-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px clamp(24px, 4vw, 56px); padding: clamp(22px, 3vw, 36px); border-radius: var(--r-block); background: var(--paper-2); }
.mo-later h2 { font-size: clamp(22px, 2.4vw, 28px); }
.mo-later-in > div > p { margin: 10px 0 0; color: var(--ink-2); max-width: 46ch; }
.mo-maybe { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mo-maybe li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-2); }
.mo-maybe .ico { margin-top: 2px; color: var(--torna); }
.mo-maybe b { color: var(--ink); }
.mo-honest { display: flex; align-items: center; gap: 12px; margin: 12px 0 0; padding: 16px 20px; border: 1.5px dashed var(--ink-2); border-radius: var(--r-block); font-weight: 600; color: var(--ink); }
.mo-honest .ico { color: var(--torna); }
@media (max-width: 760px) { .mo-later-in { grid-template-columns: minmax(0, 1fr); } }

/* ===== Moviment: entra un cop, mai lligat al scroll (el script afegeix .mo-anim) ===== */
@media (prefers-reduced-motion: no-preference) {
  .mo-note { animation: mo-drop .7s var(--ease-out) .7s both; }
  @keyframes mo-drop { from { opacity: 0; translate: 0 -16px; } }

  /* Els passos pugen d'un en un (sense fosa: el text sempre té el seu contrast); els segells sí que s'encenen */
  .mo-anim .mo-steps li { transition: translate .6s var(--ease-out); transition-delay: calc(var(--i) * .16s); }
  .mo-anim .mo-steps:not(.is-in) li { translate: 0 14px; }
  .mo-dots i:nth-child(1) { --d: 0; } .mo-dots i:nth-child(2) { --d: 1; } .mo-dots i:nth-child(3) { --d: 2; } .mo-dots i:nth-child(4) { --d: 3; }
  .mo-dots i:nth-child(5) { --d: 4; } .mo-dots i:nth-child(6) { --d: 5; } .mo-dots i:nth-child(7) { --d: 6; } .mo-dots i:nth-child(8) { --d: 7; }
  .mo-anim .mo-dots i.on { transition: scale .35s var(--ease-out), opacity .25s ease-out; transition-delay: calc(var(--i) * .16s + .35s + var(--d) * 45ms); }
  .mo-anim .mo-steps:not(.is-in) .mo-dots i.on { scale: .3; opacity: 0; }
}
