/* Homepage: Themes (shopper intent) in the hero demo, the platform → plugin flow strip,
   and the animated Themes section. Loaded by landing.html only, after styles.css. */

/* ---------- Platform → plugin → store flow strip (#products) ---------- */
.pl-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 28px;
  max-width: 880px;
}
.pl-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  box-shadow: var(--shadow-sm);
}
.pl-step.hi {
  color: #fff;
  background: var(--grad);
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}
.pl-step small {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.85;
}
.pl-arrow {
  color: var(--indigo-1);
  display: inline-flex;
}
@media (max-width: 560px) {
  .pl-flow {
    flex-direction: column;
  }
  .pl-arrow {
    transform: rotate(90deg);
  }
}

/* ---------- Hero demo: Themes scene ---------- */
.th-card {
  margin-top: 8px;
  background: var(--indigo-soft);
  border: 1px solid color-mix(in oklab, var(--indigo-1) 22%, transparent);
  border-radius: 14px;
  padding: 12px 14px;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}
.th-card.in {
  opacity: 1;
  transform: none;
}
.th-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.th-faces {
  display: inline-flex;
}
.th-faces img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 2px solid #fff;
  margin-left: -8px;
  box-shadow: 0 2px 6px rgba(30, 41, 59, 0.15);
}
.th-faces img:first-child {
  margin-left: 0;
}
.th-name {
  font-weight: 800;
  font-size: 15px;
  color: var(--indigo-2);
}
.th-for {
  font-size: 13px;
  color: var(--body);
  margin-top: 6px;
}
.th-card .demo-tags {
  margin-top: 8px;
  min-height: 0;
}
.th-card .tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  background: #fff;
}
.th-out {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

/* ---------- Animated Themes section (#themes-action) ---------- */
.tm-win .cv-body {
  padding: 18px 18px 20px;
}
.tm-prods {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.tm-prod {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px 6px 7px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--body);
  line-height: 1.2;
}
.tm-prod img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--bg-soft);
  border-radius: 8px;
  margin-bottom: 5px;
}
.tm-lines {
  display: block;
  width: 100%;
  height: 46px;
}
.tm-lines path {
  fill: none;
  stroke: color-mix(in oklab, var(--indigo-1) 45%, transparent);
  stroke-width: 1.6;
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
}
.tm-themes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.tm-theme {
  background: var(--indigo-soft);
  border: 1px solid color-mix(in oklab, var(--indigo-1) 25%, transparent);
  border-radius: 14px;
  padding: 12px 13px;
}
.tm-theme h3 {
  margin: 0;
  font-size: 15px;
  color: var(--indigo-2);
}
.tm-theme p {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--body);
}
.tm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}
.tm-tags span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--indigo-2);
  background: #fff;
  border: 1px solid color-mix(in oklab, var(--indigo-1) 22%, transparent);
  border-radius: 7px;
  padding: 3px 8px;
}
.tm-outs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

/* Build order once the stage scrolls into view (.reveal.in from home.js):
   products → lines → themes → tags → outputs. */
.tm-anim .tm-prod,
.tm-anim .tm-theme,
.tm-anim .tm-tags span,
.tm-anim .tm-outs .sc-badge {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}
.tm-anim.in .tm-prod,
.tm-anim.in .tm-theme,
.tm-anim.in .tm-tags span,
.tm-anim.in .tm-outs .sc-badge {
  opacity: 1;
  transform: none;
}
.tm-anim.in .tm-lines path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.9s ease 0.9s;
}
.tm-anim.in .tm-prod:nth-child(1) {
  transition-delay: 0.2s;
}
.tm-anim.in .tm-prod:nth-child(2) {
  transition-delay: 0.3s;
}
.tm-anim.in .tm-prod:nth-child(3) {
  transition-delay: 0.4s;
}
.tm-anim.in .tm-prod:nth-child(4) {
  transition-delay: 0.5s;
}
.tm-anim.in .tm-prod:nth-child(5) {
  transition-delay: 0.6s;
}
.tm-anim.in .tm-prod:nth-child(6) {
  transition-delay: 0.7s;
}
.tm-anim.in .tm-theme:nth-child(1) {
  transition-delay: 1.6s;
}
.tm-anim.in .tm-theme:nth-child(2) {
  transition-delay: 1.8s;
}
.tm-anim.in .tm-tags span {
  transition-delay: 2.2s;
}
.tm-anim.in .tm-tags span + span {
  transition-delay: 2.35s;
}
.tm-anim.in .tm-outs .sc-badge:nth-child(1) {
  transition-delay: 2.7s;
}
.tm-anim.in .tm-outs .sc-badge:nth-child(2) {
  transition-delay: 2.85s;
}
.tm-anim.in .tm-outs .sc-badge:nth-child(3) {
  transition-delay: 3s;
}
@media (max-width: 560px) {
  .tm-prods {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tm-lines {
    display: none;
  }
  .tm-themes {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tm-anim .tm-prod,
  .tm-anim .tm-theme,
  .tm-anim .tm-tags span,
  .tm-anim .tm-outs .sc-badge,
  .th-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .tm-lines path {
    stroke-dashoffset: 0;
  }
}
