/* Support page. See support-page.js. The strip reuses the Implement strip styles in service-page.css.
   Pastel status colours match the team portraits: green for running, peach for a problem, lilac for testing. */
.service-page[data-service="support"] { --ok: #D5ECCD; --ok-ink: #2E8B57; --alert: #F7D6C6; --alert-ink: #D0603F; --test: #E6D9F5; --change: #CDE0F5; --guide: #F8E7A8; }

/* Built around your work: four parts, each with a small looping animation */
.sp-stages-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.sp-stages-4 .sp-stage h3 { font-size: 21px; }
.sp-stages-4 .sp-stage > p:last-child { font-size: 14.5px; }
.sp-stages-4 .sp-stage-art { height: 140px; padding: 0 12px; }
.sp-stages-4 .sp-stage-art > * { font-size: 11px; }
.sp-stages-4 .sp-stage:not(:last-child)::after { right: -13px; top: 78px; width: 7px; height: 7px; }
@keyframes su-pop { 0%, 30% { transform: scale(0); } 40%, 90% { transform: none; } 100% { transform: none; opacity: 0; } }
@keyframes su-in { 0% { opacity: 0; transform: translateY(6px); } 10%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes su-tick { 0%, 20% { transform: scale(0); } 30%, 92% { transform: none; } 100% { transform: scale(0); } }
.sp-face { flex: none; display: inline-block; width: 26px; height: 26px; border-radius: 50%; }
/* Agreed cover: three workflows ticked as covered */
.sp-cover { display: grid; gap: 5px; width: 100%; max-width: 190px; padding: 9px 11px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px #e1e3df, 0 8px 18px -12px #1e222055; }
.sp-cover small { color: var(--muted); font-size: 10px; }
.sp-cover i { display: flex; align-items: center; gap: 7px; font-style: normal; font-weight: 500; }
.sp-cover i::before { content: "✓"; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 5px; background: var(--ok); color: var(--ok-ink); font-size: 9px; font-weight: 700; animation: su-tick 5s cubic-bezier(.34, 1.5, .64, 1) infinite both; animation-delay: calc(.3s + var(--i) * .35s); }
/* One way to ask: a message from the office manager, then "Received" */
.sp-art-ask { align-content: center; justify-items: start; gap: 8px; }
.sp-msg { display: flex; align-items: flex-end; gap: 6px; animation: su-in 5s ease infinite both; }
.sp-msg > span:last-child { padding: 6px 9px; border-radius: 10px 10px 10px 3px; background: #fff; box-shadow: 0 0 0 1px #e1e3df; }
.sp-got { display: inline-flex; align-items: center; gap: 5px; margin-left: 32px; padding: 3px 9px 3px 4px; border-radius: 6px; background: var(--ok); color: var(--ok-ink); font-weight: 500; animation: su-pop 5s cubic-bezier(.34, 1.5, .64, 1) infinite both; }
.sp-got::before { content: "✓"; display: grid; place-items: center; width: 13px; height: 13px; border-radius: 4px; background: var(--ok-ink); color: #fff; font-size: 8px; }
/* Find the cause: the log is read, the broken step is found and then fixed */
.sp-art-cause { align-content: center; justify-items: center; gap: 8px; }
.sp-log { display: grid; gap: 3px; width: 100%; max-width: 180px; padding: 7px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px #e1e3df; }
.sp-log i { padding: 3px 7px; border-radius: 5px; color: var(--muted); font-style: normal; }
.sp-log .sp-bad { background: var(--ok); color: var(--ink); font-weight: 500; animation: su-bad 5s ease infinite both; }
@keyframes su-bad { 0%, 20% { background: transparent; color: var(--muted); } 30%, 55% { background: var(--alert); color: var(--alert-ink); } 65%, 100% { background: var(--ok); color: var(--ink); } }
.sp-fixed { padding: 3px 9px; border-radius: 6px; background: var(--ink); color: #fff; animation: su-pop-late 5s cubic-bezier(.34, 1.5, .64, 1) infinite both; }
@keyframes su-pop-late { 0%, 58% { transform: scale(0); } 66%, 92% { transform: none; } 100% { transform: none; opacity: 0; } }
/* Adjust over time: v1 becomes v2 and the change is written in */
.sp-art-adjust { align-content: center; justify-items: center; gap: 8px; }
.sp-ver { display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 11px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px #e1e3df; }
.sp-ver small { color: var(--muted); }
.sp-vers { display: grid; overflow: hidden; height: 20px; }
.sp-vers b { grid-area: 1 / 1; display: grid; place-items: center; padding: 0 8px; border-radius: 6px; background: #eceeeb; font-weight: 500; line-height: 20px; }
.sp-vers b:first-child { transform: translateY(-120%); animation: su-out 5s cubic-bezier(.65, 0, .35, 1) infinite both; }
.sp-vers b:last-child { background: var(--change); animation: su-up 5s cubic-bezier(.65, 0, .35, 1) infinite both; }
@keyframes su-out { 0%, 30% { transform: none; } 42%, 100% { transform: translateY(-120%); } }
@keyframes su-up { 0%, 30% { transform: translateY(120%); } 42%, 100% { transform: none; } }
.sp-change { padding: 4px 9px; border-radius: 6px; background: var(--ink); color: #fff; white-space: nowrap; animation: su-type 5s steps(22) infinite both; }
@keyframes su-type { 0%, 44% { clip-path: inset(0 100% 0 0); } 70%, 94% { clip-path: inset(0); } 100% { clip-path: inset(0); opacity: 0; } }
.motion-paused .sp-stages-4 *, .motion-paused .sp-stages-4 *::before { animation: none !important; }
@media (max-width: 1200px) {
  .sp-stages-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-stages-4 .sp-stage:nth-child(2)::after { display: none; }
}
@media (max-width: 760px) {
  .sp-stages-4 { grid-template-columns: 1fr; }
  .sp-stages-4 .sp-stage:nth-child(2)::after { display: block; }
}

/* Hero: workflow health */
.sp-hero-art.has-sh { container-type: inline-size; }
.sh { --ease: cubic-bezier(.16, 1, .3, 1); --spring: cubic-bezier(.34, 1.5, .64, 1); position: absolute; inset: 0; color: var(--ink); font-size: clamp(8.5px, 2.25cqw, 13.5px); line-height: 1.3; }
.sh-window { position: absolute; inset: 2% 0; display: flex; flex-direction: column; overflow: hidden; border-radius: 1.3em; background: #fbfbfa; box-shadow: 0 2.6em 5em -2em rgba(30, 34, 32, .35), 0 0 0 1px rgba(30, 34, 32, .06); }
.sh-bar { display: flex; align-items: center; gap: .9em; padding: .95em 1.2em; border-bottom: 1px solid #e8e9e6; background: #fff; }
.sh-bar strong { overflow: hidden; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.sh-dots { display: flex; gap: .35em; }
.sh-dots i { width: .62em; height: .62em; border-radius: 50%; background: #dcdedb; }
.sh-chip { flex: none; display: inline-flex; align-items: center; gap: .45em; margin-left: auto; padding: .3em .7em; border-radius: .5em; background: #eceeeb; font-size: .82em; transition: background .4s; }
.sh-chip b { font-weight: 500; }
.sh-body { flex: 1; display: flex; flex-direction: column; gap: 1em; padding: 1.1em 1.2em; background: radial-gradient(circle, #e1e3df 1px, transparent 1.3px) 0 0 / 1.35em 1.35em; }
.sh-app { flex: none; display: grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: .65em; background: #fff; box-shadow: 0 0 0 1px #e4e6e2; }
.sh-app svg { width: 62%; height: 62%; }
.sh-face { flex: none; display: inline-block; width: 2em; height: 2em; border-radius: 50%; }
.sh-us { flex: none; display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; background: var(--ink); color: #fff; }
.sh-us svg { width: 55%; height: 55%; }
.sh-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55em; margin-top: auto; }
.sh-stats > div { padding: .7em .85em; border-radius: .8em; background: #fff; box-shadow: 0 0 0 1px #e8e9e6; }
.sh-stats small { display: block; overflow: hidden; color: #8b8e8c; font-size: .76em; white-space: nowrap; text-overflow: ellipsis; }
.sh-stats b { display: inline-block; margin-top: .15em; font-size: 1.6em; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sh .is-bumped { animation: sh-bump .5s var(--spring); }
@keyframes sh-bump { 0% { transform: scale(.7); opacity: .3; } }
.motion-paused .sh *, .motion-paused .sh *::before, .motion-paused .sh *::after, .sh.is-still *, .sh.is-reset * { transition: none !important; }
.motion-paused .sh *, .motion-paused .sh *::before, .motion-paused .sh *::after, .sh.is-still * { animation: none !important; }

.sh-health .sh-chip { background: var(--ok); color: var(--ok-ink); }
.sh-health .sh-chip i { width: .55em; height: .55em; border-radius: 50%; background: currentColor; animation: sh-blip 1.6s ease-in-out infinite; }
.sh-health .sh-chip.is-alert { background: var(--alert); color: var(--alert-ink); }
@keyframes sh-blip { 50% { opacity: .35; } }
.sh-flows { display: grid; gap: .55em; }
.sh-flow { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(3em, 6.5em) 6.4em; gap: .8em; align-items: center; padding: .65em .75em; border-radius: .85em; background: #fff; box-shadow: 0 0 0 1px #e8e9e6; transition: box-shadow .3s; }
.sh-name { min-width: 0; }
.sh-name b { display: block; overflow: hidden; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.sh-name small { display: flex; align-items: center; gap: .4em; margin-top: .2em; overflow: hidden; color: #8b8e8c; font-size: .78em; white-space: nowrap; }
.sh-name .sh-face { width: 1.7em; height: 1.7em; }
.sh-pulse { width: 100%; height: 2em; overflow: hidden; }
.sh-pulse path { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: opacity .3s; }
.sh-beat { stroke: var(--ok-ink); animation: sh-scroll 1.6s linear infinite; animation-delay: var(--d); }
.sh-flat { stroke: var(--alert-ink); stroke-dasharray: 3 3; opacity: 0; }
@keyframes sh-scroll { to { transform: translateX(-40px); } }
.sh-state { justify-self: end; padding: .3em .65em; border-radius: .45em; background: var(--ok); color: var(--ok-ink); font-size: .8em; font-style: normal; font-weight: 500; white-space: nowrap; transition: background .3s, color .3s; }
.sh-flow.is-down { box-shadow: 0 0 0 1.5px var(--alert-ink), 0 .8em 1.6em -1em rgba(208, 96, 63, .5); }
.sh-flow.is-down .sh-beat { opacity: 0; }
.sh-flow.is-down .sh-flat { opacity: 1; }
.sh-flow.is-down .sh-state { background: var(--alert); color: var(--alert-ink); }
.sh-flow.is-testing .sh-beat { stroke: #7B5EA7; opacity: .7; animation-duration: 3.2s; }
.sh-flow.is-testing .sh-state { background: var(--test); color: #5b4384; }
.sh-flow.is-checked { animation: sh-check .6s var(--ease); }
@keyframes sh-check { 30% { box-shadow: 0 0 0 1.5px var(--ink), 0 .6em 1.4em -.8em rgba(30, 34, 32, .35); } }
.sh-feed { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: .7em .8em; border-radius: .85em; background: #fff; box-shadow: 0 0 0 1px #e8e9e6; }
.sh-feed header { margin-bottom: .45em; color: #8b8e8c; font-size: .78em; }
.sh-feed ol { display: grid; align-content: start; gap: .2em; margin: 0; padding: 0; list-style: none; overflow: hidden; }
.sh-feed li { display: flex; align-items: center; gap: .6em; padding: .3em 0; font-size: .9em; }
.sh-feed li + li { border-top: 1px solid #f0f1ee; }
.sh-feed-text { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sh-feed li time { color: #9a9d9b; font-size: .85em; font-variant-numeric: tabular-nums; }
.sh-feed .sh-face, .sh-feed .sh-us { width: 1.7em; height: 1.7em; }
.sh-feed li.is-new { animation: sh-feed .55s var(--spring) both; }
@keyframes sh-feed { from { opacity: 0; transform: translateY(-.6em); } }

/* Example: when something stops working */
.sp-alt[data-example] { --ease: cubic-bezier(.16, 1, .3, 1); --spring: cubic-bezier(.34, 1.5, .64, 1); color: var(--ink); font-size: clamp(11px, 1.1vw, 14px); line-height: 1.35; }
.st { padding: 1.4em; border-radius: 1em; background: #e8e9e6; }
.st-head { display: flex; justify-content: space-between; align-items: center; gap: 1em; }
.st-title small { display: block; color: var(--muted); font-size: .8em; }
.st-title strong { font-size: 1.1em; font-weight: 500; }
.st-status { display: grid; }
.st-status b { grid-area: 1 / 1; padding: .35em .85em; border-radius: .5em; font-size: .88em; font-weight: 500; text-align: center; transition: opacity .4s, transform .5s var(--spring); }
.st-status b:first-child { background: var(--alert); color: var(--alert-ink); }
.st-status b:last-child { background: var(--ok); color: var(--ok-ink); opacity: 0; transform: scale(.85); }
.st.is-fixed .st-status b:first-child { opacity: 0; }
.st.is-fixed .st-status b:last-child { opacity: 1; transform: none; }
.st-thread { display: grid; gap: .7em; margin: 1.2em 0; }
.st-msg { display: flex; align-items: flex-end; gap: .6em; opacity: 0; transform: translateY(.6em); transition: opacity .35s, transform .5s var(--spring); }
.st-msg.is-on { opacity: 1; transform: none; }
.st-msg.st-us { flex-direction: row-reverse; }
.st-face { flex: none; width: 2.4em; height: 2.4em; border-radius: 50%; }
.st-face.st-us { display: grid; place-items: center; background: var(--ink); color: #fff; box-shadow: 0 0 0 1.5px #fff; }
.st-face.st-us svg { width: 52%; height: 52%; }
.st-bubble { display: grid; max-width: 78%; padding: .65em .85em; border-radius: .9em .9em .9em .25em; background: #fff; box-shadow: 0 .6em 1.4em -1em rgba(30, 34, 32, .35); }
.st-us .st-bubble { border-radius: .9em .9em .25em .9em; background: var(--ink); color: #f4f4f2; }
.st-bubble small { color: var(--muted); font-size: .76em; }
.st-us .st-bubble small { color: #a9aca9; }
.st-text { margin-top: .15em; }
.st-typing { display: none; gap: .25em; padding: .45em 0 .2em; }
.st-typing i { width: .4em; height: .4em; border-radius: 50%; background: currentColor; opacity: .4; animation: st-dot 1s ease-in-out infinite; }
.st-typing i:nth-child(2) { animation-delay: .15s; }
.st-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes st-dot { 40% { opacity: 1; transform: translateY(-.2em); } }
.st-msg.is-typing .st-text { display: none; }
.st-msg.is-typing .st-typing { display: flex; }
.st-guide { display: flex; align-items: center; gap: .75em; padding: .75em .9em; border-radius: .85em; background: var(--guide); opacity: 0; transform: translateY(.5em) scale(.97); transition: opacity .4s, transform .55s var(--spring); }
.st.is-guide .st-guide { opacity: 1; transform: none; }
.st-guide small { display: block; color: #7a6a2c; font-size: .78em; }
.st-guide b { font-weight: 500; }
.motion-paused .sp-alt[data-example] *, .motion-paused .sp-alt[data-example] *::before { transition: none !important; animation: none !important; }
