/* ==========================================================================
   SAAS DEVELOPMENT (saas-development.html). Linked after css/service.css,
   whose hero shell (.sxh) and components (.sv-*, .sx-*) it reuses.
   Own look: a light lilac-blue panel with three stacked customer
   workspaces, one product serving many accounts.
   Motion: transform and opacity only, 768px+ with motion allowed. Phones
   and reduced motion get the finished state.
   ========================================================================== */

/* ---------- hero ---------- */
.sxh--saas .sxh__panel { background: #f3f5fe; box-shadow: inset 0 0 0 1px rgba(31, 79, 184, 0.12), var(--sh-2); }
.sxh--saas .sxh__bg {
  background:
    radial-gradient(48% 60% at 88% 18%, rgba(91, 143, 245, 0.3), rgba(91, 143, 245, 0) 70%),
    radial-gradient(36% 44% at 70% 100%, rgba(226, 173, 59, 0.2), rgba(226, 173, 59, 0) 70%),
    radial-gradient(rgba(31, 79, 184, 0.13) 1px, transparent 1.2px) 0 0 / 26px 26px;
}
.sxh--saas .wk-eyebrow { color: var(--royal); }

.ss-stack { position: relative; height: 470px; }
.ss-win {
  position: absolute; left: var(--x); top: var(--y); width: 84%;
  border-radius: 18px; overflow: hidden; background: #fff;
  box-shadow: var(--sh-3), inset 0 0 0 1px var(--line-2);
  transform: scale(var(--s, 1)); transform-origin: 0 0;
}
.ss-win--c { --x: 16%; --y: 0; --s: 0.9; }
.ss-win--b { --x: 8%; --y: 12%; --s: 0.95; }
.ss-win--a { --x: 0; --y: 25%; }
.ss-win__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #f4f6fa; box-shadow: inset 0 -1px 0 var(--line); }
.ss-win__bar i { width: 9px; height: 9px; border-radius: 50%; background: #d5dae4; }
.ss-win__bar span { margin-left: 10px; padding: 3px 10px; border-radius: 6px; font-size: 11.5px; color: #5b6779; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.ss-ws { display: flex; align-items: center; gap: 10px; padding: 14px 18px; box-shadow: inset 0 -1px 0 var(--line); }
.ss-ws__logo { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-size: 12px; font-weight: 700; color: #fff; background: var(--c, #1f4fb8); }
.ss-ws b { font-size: 14.5px; color: var(--ink); letter-spacing: -0.01em; }
.ss-plan { margin-left: auto; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 650; color: #8f6210; background: #fbf1da; box-shadow: inset 0 0 0 1px rgba(192, 138, 30, 0.3); }
.ss-win__body { display: grid; grid-template-columns: 128px minmax(0, 1fr); }
.ss-side { padding: 12px 10px; box-shadow: inset -1px 0 0 var(--line); }
.ss-side li { padding: 7px 10px; border-radius: 8px; font-size: 12.5px; color: #5b6779; }
.ss-side li.is-on { color: var(--royal); font-weight: 650; background: #eef3fc; }
.ss-main { display: grid; gap: 12px; align-content: start; padding: 16px 18px 20px; }
.ss-k { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: #5b6779; }
.ss-k b { color: var(--ink); font-weight: 650; }
.ss-meter { display: block; height: 8px; border-radius: 999px; background: #eef1f6; overflow: hidden; }
.ss-meter i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #2a5fd0, #5b8ff5); transform: scaleX(var(--w, 0.5)); transform-origin: 0 50%; }
.ss-team { display: flex; margin-top: 2px; }
.ss-team span { display: grid; place-items: center; width: 28px; height: 28px; margin-right: -6px; border-radius: 50%; font-size: 10.5px; font-weight: 700; color: #fff; background: #12347a; box-shadow: 0 0 0 2px #fff; }
.ss-team span:nth-child(2) { background: #2a5fd0; } .ss-team span:nth-child(3) { background: #8f6210; }
.ss-team span:last-child { color: #3b475b; background: #e8ecf4; }
.ss-toast {
  position: absolute; right: 0; bottom: 30px; display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px; border-radius: 14px; font-size: 13px; font-weight: 600; color: #1d1404;
  background: var(--gold-grad); background-size: 220% 100%; box-shadow: var(--sh-gold);
}
.ss-tag { position: absolute; left: 0; bottom: 0; font-size: 11.5px; color: #5b6779; }

@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .ss-win { animation: ssFloat 9s ease-in-out infinite; animation-delay: calc(var(--k) * -3s); }
  .ss-meter i { animation: ssFill 9s var(--ease) infinite; }
  .ss-toast { animation: ssToast 9s var(--ease) infinite; }
  .sxh .ss-stack { animation: wkRiseFar 1.4s var(--ease) 0.75s both; }
}
@keyframes ssFloat { 0%, 100% { transform: translateY(0) scale(var(--s, 1)); } 50% { transform: translateY(-8px) scale(var(--s, 1)); } }
@keyframes ssFill { 0%, 12% { transform: scaleX(calc(var(--w) - 0.12)); } 40%, 100% { transform: scaleX(var(--w)); } }
@keyframes ssToast { 0%, 30% { opacity: 0; transform: translateY(14px); } 38%, 82% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: translateY(-6px); } }

/* ---------- the parts of a SaaS product (tiles) ---------- */
.ss-parts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ss-parts li { display: grid; align-content: start; gap: 10px; padding: 26px 24px 28px; border-radius: 22px; background: #fff; box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); }
.ss-parts__n { font-size: 13px; font-weight: 650; letter-spacing: 0.08em; color: var(--gold-text); }
.ss-parts h3 { font-size: 19px; letter-spacing: -0.02em; color: var(--ink); }
.ss-parts p { font-size: 15.5px; line-height: 1.6; }

/* ---------- roadmap on the dark band ---------- */
.ss-road { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: ss; }
.ss-road li { position: relative; padding: 30px 24px 28px; border-radius: 22px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.ss-road li::after { content: ''; position: absolute; top: 44px; right: -14px; width: 8px; height: 8px; border-top: 2px solid #f3d891; border-right: 2px solid #f3d891; transform: rotate(45deg); }
.ss-road li:last-child::after { display: none; }
.ss-road__n { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 16px; border-radius: 50%; font-size: 14px; font-weight: 700; color: #1d1404; background: var(--gold-grad); background-size: 220% 100%; box-shadow: var(--sh-gold); }
.ss-road h3 { font-size: 19px; margin-bottom: 8px; }
.ss-road p { font-size: 15.5px; line-height: 1.6; }

/* ---------- shared vs separate ---------- */
.ss-vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ss-vs__card { padding: 34px 32px; border-radius: 26px; background: #fff; box-shadow: var(--sh-2), inset 0 0 0 1px var(--line); }
.ss-vs__card h3 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 6px; color: var(--ink); }
.ss-vs__sub { font-size: 14px; font-weight: 600; color: var(--gold-text); margin-bottom: 16px; }
.ss-vs__card p { font-size: 16.5px; line-height: 1.6; }
.ss-vs__card p + p { margin-top: 12px; }
.ss-vs__pic { display: flex; gap: 8px; margin-bottom: 22px; }
.ss-vs__pic i { flex: 1; height: 44px; border-radius: 10px; background: #eef3fc; box-shadow: inset 0 0 0 1px rgba(31, 79, 184, 0.18); }
.ss-vs__pic--shared { position: relative; padding-bottom: 18px; }
.ss-vs__pic--shared::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; border-radius: 6px; background: linear-gradient(90deg, #2a5fd0, #5b8ff5); }
.ss-vs__pic--apart i { position: relative; margin-bottom: 18px; }
.ss-vs__pic--apart i::after { content: ''; position: absolute; left: 0; right: 0; bottom: -18px; height: 10px; border-radius: 6px; background: linear-gradient(90deg, #2a5fd0, #5b8ff5); }
.ss-note { margin-top: 24px; font-size: 16.5px; line-height: 1.6; color: var(--text); max-width: 46em; }

/* ---------- tablet / phone ---------- */
@media (max-width: 1100px) {
  .ss-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ss-road { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ss-road li::after { display: none; }
}
@media (max-width: 767px) {
  .ss-stack { height: 380px; }
  .ss-win { width: 94%; }
  .ss-win--c { display: none; }
  .ss-win--b { --x: 6%; --y: 0; }
  .ss-win--a { --y: 15%; }
  .ss-win__body { grid-template-columns: minmax(0, 1fr); }
  .ss-side { display: none; }
  .ss-toast { bottom: 26px; font-size: 12.5px; }
  .ss-parts, .ss-road, .ss-vs { grid-template-columns: minmax(0, 1fr); }
  .ss-vs__card { padding: 28px 22px; }
  .ss-parts p, .ss-road p { font-size: 16px; }
}
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .sxh .ss-stack { animation: wkRiseLite 0.8s var(--ease) 0.3s both; }
}
