/* ==========================================================================
   TechAid — Projects hero picture (software tiles)
   Shared by the page hero and the homepage. Loaded after global.css; uses the tokens from global.css :root only.
   ========================================================================== */

.pj-bento { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.pj-t { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 14px; background: var(--color-card); border: 1px solid var(--color-line); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); animation: pj-rise .6s cubic-bezier(.22, 1, .36, 1) both; }
.pj-t:nth-child(1) { animation-delay: .05s; }
.pj-t:nth-child(2) { animation-delay: .15s; }
.pj-t:nth-child(3) { animation-delay: .25s; }
.pj-t:nth-child(4) { animation-delay: .35s; }
.pj-t:nth-child(5) { animation-delay: .45s; }
.pj-t:nth-child(6) { animation-delay: .55s; }
.pj-t-dash { grid-column: span 4; }
.pj-t-flow { grid-column: span 2; }
.pj-t-mgmt { grid-column: span 3; }
.pj-t-saas { grid-column: span 3; }
.pj-t-api  { grid-column: span 3; }
.pj-t-new  { grid-column: span 3; }

.pj-tag { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 3px 10px 3px 7px; border-radius: var(--radius-pill); background: var(--color-brand-tint-strong); font-size: 11px; /* lint-ok: tiny category label inside artwork */ font-weight: 700; line-height: 1.3; color: var(--color-brand); white-space: nowrap; }
.pj-tag svg { flex: none; width: 13px; height: 13px; }

/* Dashboards */
.pj-dash { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 14px; }
.pj-big b { display: block; font-size: var(--card-title); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--color-ink); }
.pj-big small { display: block; margin-top: 2px; font-size: 11px; /* lint-ok: tiny label inside artwork */ color: var(--color-muted); }
.pj-big u { display: block; margin-top: 6px; font-size: 11px; /* lint-ok: tiny delta inside artwork */ font-weight: 700; text-decoration: none; color: var(--color-success); }
.pj-spark { display: block; width: 100%; height: 64px; overflow: visible; }
.pj-grid-line { fill: none; stroke: var(--color-line); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.pj-area-a { stop-color: var(--color-brand); stop-opacity: .22; }
.pj-area-b { stop-color: var(--color-brand); stop-opacity: 0; }
.pj-area { animation: pj-fade .9s ease-out .9s both; }
.pj-line { fill: none; stroke: var(--color-brand); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: pj-draw 1.4s cubic-bezier(.45, .05, .3, 1) .4s forwards; }

/* Automation */
.pj-flow { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 2px 0; }
.pj-flow::before { content: ""; position: absolute; left: 14px; right: 14px; top: 50%; border-top: 2px dashed var(--color-line-strong); }
.pj-flow i { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--radius-sm); background: var(--color-card); border: 1.5px solid var(--color-line-strong); color: var(--color-ink); }
.pj-flow i svg { width: 14px; height: 14px; }
.pj-flow i.is-done { background: var(--color-success-tint); border-color: var(--color-success); color: var(--color-success); }
.pj-flow-dot { position: absolute; z-index: 2; top: calc(50% - 3px); left: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--color-brand); animation: pj-travel 2.6s ease-in-out 1.2s infinite; }
.pj-cap { font-size: 11px; /* lint-ok: tiny caption inside artwork */ color: var(--color-muted); }

/* Management systems */
.pj-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pj-rows li { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border: 1px solid var(--color-line); border-radius: var(--radius-sm); }
.pj-av { flex: none; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--color-brand-tint-strong); font-size: 9px; /* lint-ok: initials inside artwork */ font-weight: 800; color: var(--color-brand); }
.pj-av-2 { background: var(--color-dark-1); color: var(--color-white); }
.pj-av-3 { background: var(--color-line-soft); color: var(--color-ink); }
.pj-rows li b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-xs); font-weight: 700; color: var(--color-ink); }
.pj-rows li em { flex: none; padding: 1px 8px; border-radius: var(--radius-pill); font-size: 10px; /* lint-ok: tiny status pill inside artwork */ font-style: normal; font-weight: 700; }
.pj-rows li em.is-ok { background: var(--color-success-tint); color: var(--color-success); }
.pj-rows li em.is-wait { background: var(--color-brand-tint-strong); color: var(--color-brand); }

/* SaaS platforms */
.pj-plan { display: flex; flex-direction: column; gap: 6px; }
.pj-plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pj-plan-top b { font-size: var(--text-xs); font-weight: 700; color: var(--color-ink); }
.pj-plan-top u { padding: 1px 8px; border-radius: var(--radius-pill); background: var(--color-dark-1); font-size: 10px; /* lint-ok: tiny badge inside artwork */ font-weight: 700; text-decoration: none; color: var(--color-white); }
.pj-price { display: flex; align-items: baseline; gap: 4px; }
.pj-price b { font-size: var(--card-title); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--color-ink); }
.pj-price small { font-size: 11px; /* lint-ok: tiny label inside artwork */ color: var(--color-muted); }
.pj-plan-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.pj-plan-list li { display: flex; align-items: center; gap: 6px; font-size: 11px; /* lint-ok: tiny list inside artwork */ color: var(--color-muted); white-space: nowrap; }
.pj-plan-list svg { flex: none; width: 11px; height: 11px; color: var(--color-success); }

/* APIs and integrations */
.pj-t-api { background: var(--color-dark-1); border-color: var(--color-dark-line); gap: 8px; }
.pj-t-api .pj-tag { background: var(--color-dark-2); color: var(--color-brand-light); }
.pj-t-api code { display: flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; /* lint-ok: code line inside artwork */ line-height: 1.4; color: var(--color-on-dark); white-space: nowrap; }
.pj-t-api code i { font-style: normal; font-weight: 700; color: var(--color-brand-light); }
.pj-t-api code em { margin-left: auto; font-style: normal; color: var(--color-online); }

/* Open tile: whatever comes next */
.pj-t-new { align-items: center; justify-content: center; text-align: center; gap: 2px; background: var(--color-bg); border: 1.5px dashed var(--color-line-strong); box-shadow: none; }
.pj-plus { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-bottom: 4px; border-radius: 50%; background: var(--color-brand); color: var(--color-white); animation: pj-pulse 2.4s ease-out 1.5s infinite; }
.pj-plus svg { width: 14px; height: 14px; }
.pj-t-new b { font-size: var(--text-sm); font-weight: 700; color: var(--color-ink); }
.pj-t-new small { font-size: 11px; /* lint-ok: tiny caption inside artwork */ color: var(--color-muted); }

.pj-foot { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; margin: var(--space-4) 4px 0; font-size: var(--text-xs); color: var(--color-muted); }
.pj-foot span { width: 7px; height: 7px; border-radius: 50%; background: var(--color-online); }

@keyframes pj-rise   { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pj-fade   { from { opacity: 0; } to { opacity: 1; } }
@keyframes pj-draw   { to { stroke-dashoffset: 0; } }
@keyframes pj-travel { 0% { left: 14px; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: calc(100% - 20px); opacity: 0; } }
@keyframes pj-pulse  { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-brand) 35%, transparent); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }
