/* Web apps and online stores section. Uses the colour variables from style.css. */
.fs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.4rem; }
.fs-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s; }
.fs-card:hover { transform: translateY(-6px); border-color: rgba(43, 212, 138, 0.5); box-shadow: 0 24px 50px -24px var(--green-glow); }
.fs-thumb { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #140d10; }
.fs-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.9s var(--ease); }
.fs-card:hover .fs-thumb img { transform: scale(1.05); }
.fs-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem; text-align: center; font: 700 1.3rem var(--font-display); background: radial-gradient(circle at 30% 20%, rgba(215,38,61,0.35), transparent 60%), #140d10; }
.fs-body { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; padding: 1.3rem 1.4rem 1.5rem; flex: 1; }
.fs-body h3 { font-size: 1.3rem; }
.fs-body p { color: var(--muted); font-size: 0.95rem; }
.fs-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.fs-tags li { padding: 0.25rem 0.7rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; border: 1px solid var(--line); background: var(--surface-strong); }
.fs-body .btn { margin-top: auto; padding: 0.6rem 1.1rem; font-size: 0.88rem; }
@media (max-width: 520px) { .fs-grid { grid-template-columns: 1fr; } }

/* Four pricing cards: 4 across on desktop, 2 x 2 on tablets, 1 on phones (3 cards keep the normal layout). */
@media (min-width: 1100px) {
  .pricing-grid:has(> :nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
  .pricing-grid:has(> :nth-child(4)) .price-card { padding: 1.7rem 1.4rem; }
  .pricing-grid:has(> :nth-child(4)) .price { font-size: 1.6rem; line-height: 1.25; }
  .pricing-grid:has(> :nth-child(4)) .price small { display: block; margin: 0.25rem 0 0; }
}
@media (min-width: 640px) and (max-width: 1099px) {
  .pricing-grid:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
