/* Shopify apps ecosystem: product cards, hero, journey and screenshots */

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px 18px;
  border-radius: 18px;
  border: 1px solid var(--tbd-2, var(--border-subtle, rgba(148, 163, 184, 0.2)));
  background: var(--tbg-6, var(--bg-soft, rgba(11, 16, 32, 0.8)));
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

a.app-card:hover,
.app-card:focus-within {
  border-color: rgba(99, 102, 241, 0.5);
}

a.app-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.35);
}

.app-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-card__icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  object-fit: cover;
}

.app-card__name {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--ttx-2, var(--text-primary));
}

.app-card__cat {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong, #6366f1);
  font-weight: 600;
}

.app-card__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary, #9ca3af);
}

.app-card__list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary, #9ca3af);
}

.app-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: auto;
  padding-top: 6px;
}

.app-card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-strong, #6366f1);
  text-decoration: none;
}

.app-card__link:hover { text-decoration: underline; }

.app-card__link--muted {
  font-weight: 500;
  font-size: 13px;
  color: var(--text-secondary, #9ca3af);
}

.feature-band .why-text a { color: var(--accent-strong, #6366f1); }

.app-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--text-secondary, #9ca3af);
}

/* Product landing hero */
.app-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 32px;
  align-items: center;
}

.app-hero__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.app-hero__brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.app-hero__brand span {
  font-size: 18px;
  font-weight: 700;
}

.app-hero .cta-band__actions {
  justify-content: flex-start;
  margin-top: 1.25rem;
}

.app-hero__fine {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--text-secondary, #9ca3af);
}

/* Screenshots */
.app-shot {
  margin: 0;
}

.app-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--tbd-2, var(--border-subtle, rgba(148, 163, 184, 0.2)));
  background: var(--tbg-6, #0b1020);
}

.app-shot figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-secondary, #9ca3af);
}

.app-shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

/* Operational journey */
.app-flow {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 26px;
  counter-reset: flow;
}

.app-flow__step {
  position: relative;
  padding: 14px 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--tbd-2, var(--border-subtle, rgba(148, 163, 184, 0.2)));
  background: var(--tbg-6, var(--bg-soft));
}

.app-flow__step + .app-flow__step::before {
  content: "→";
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-strong, #6366f1);
  font-weight: 700;
}

.app-flow__stage {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary, #9ca3af);
}

.app-flow__tool {
  display: block;
  margin-top: 4px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ttx-2, var(--text-primary));
}

a.app-flow__tool { color: var(--accent-strong, #6366f1); text-decoration: none; }
a.app-flow__tool:hover { text-decoration: underline; }

.app-flow__text {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary, #9ca3af);
}

@media (max-width: 960px) {
  .app-hero { grid-template-columns: 1fr; gap: 22px; }
  .app-flow { grid-template-columns: 1fr; gap: 22px; }
  .app-flow__step + .app-flow__step::before {
    content: "↓";
    left: 50%;
    top: -19px;
    transform: translateX(-50%);
  }
}
