/* =============================================================
   MemoryStore conversion homepage (v3)
   Clear hierarchy, download-first CTAs, fast paint.
   Extends styles.css tokens — does not replace the design system.
   ============================================================= */

.page-home-v3 {
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

/* ----- Hero ----- */
.cro-hero {
  padding: 40px var(--gutter) 28px;
  max-width: var(--container);
  margin: 0 auto;
}

.cro-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.cro-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fg-2);
}

.cro-kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--memory-400);
  box-shadow: 0 0 0 4px rgba(12, 140, 158, 0.15);
}

.cro-h1 {
  margin: 0 0 16px;
  font-family: var(--ff-display);
  font-size: clamp(2.15rem, 4.4vw, 3.35rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--fg);
}

.cro-h1 em {
  font-style: italic;
  color: var(--memory-400);
}

.cro-lead {
  margin: 0 0 28px;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--fg-2);
}

.cro-lead strong {
  color: var(--fg);
  font-weight: 600;
}

/* Store buttons — primary conversion surface */
.cro-store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.cro-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 16px;
  border-radius: 12px;
  background: #111;
  color: #fff !important;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.cro-store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.18);
  background: #1a1a1a;
  text-decoration: none !important;
}

.cro-store-btn .material-symbols-rounded {
  font-size: 1.5rem;
  color: #fff;
}

.cro-store-btn span span,
.cro-store-btn small {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.72;
  line-height: 1.1;
}

.cro-store-btn strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.cro-store-ios {
  background: linear-gradient(180deg, #2a2a2a 0%, #111 100%);
}

.cro-store-android {
  background: linear-gradient(180deg, #1b4332 0%, #0d2818 100%);
}

.cro-store-chrome {
  background: linear-gradient(180deg, #1a365d 0%, #0f2744 100%);
}

.cro-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--fg-2);
}

.cro-trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cro-trust-row .material-symbols-rounded {
  font-size: 1.05rem;
  color: var(--memory-400);
}

/* Phone visual */
.cro-hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.cro-phone-stack {
  position: relative;
  width: min(100%, 300px);
}

.cro-phone {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #0a0a0a;
  box-shadow:
    0 0 0 1px rgba(38, 30, 18, 0.12),
    0 28px 60px rgba(33, 28, 21, 0.18),
    0 8px 20px rgba(33, 28, 21, 0.08);
}

.cro-phone img {
  width: 100%;
  height: auto;
  display: block;
}

.cro-search-chip,
.cro-found-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(33, 28, 21, 0.1);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fg);
  backdrop-filter: blur(10px);
  max-width: calc(100% + 40px);
}

.cro-search-chip {
  top: 12%;
  left: -12%;
  animation: cro-float 5s ease-in-out infinite;
}

.cro-found-chip {
  bottom: 14%;
  right: -10%;
  color: #0a5c47;
  background: rgba(232, 255, 246, 0.96);
  border-color: rgba(10, 92, 71, 0.15);
  animation: cro-float 5.5s ease-in-out infinite reverse;
}

.cro-search-chip .material-symbols-rounded,
.cro-found-chip .material-symbols-rounded {
  font-size: 1.1rem;
  color: var(--memory-400);
}

.cro-found-chip .material-symbols-rounded {
  color: #0a8f6c;
}

@keyframes cro-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Platforms */
.cro-platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  padding: 18px var(--gutter) 28px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.45);
}

.cro-platforms-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
}

.cro-platforms-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cro-platforms-list li {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 550;
  color: var(--fg);
}

/* Definition block — AI/SEO extractable */
.cro-define {
  padding: 56px var(--gutter);
  background: var(--bg-2);
}

.cro-define-inner {
  max-width: 880px;
  margin: 0 auto;
}

.cro-define h2 {
  margin: 0 0 12px;
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cro-define-answer {
  margin: 0 0 28px;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--fg-2);
}

.cro-define-answer strong {
  color: var(--fg);
}

.cro-define-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.cro-define-grid > div {
  padding: 0 0 0 20px;
  background: none;
  border: none;
  border-left: 2px solid var(--border);
  border-radius: 0;
}

.cro-define-grid h3 {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--memory-400);
}

.cro-define-grid p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--fg-2);
}

/* Pain */
.cro-pain {
  padding: 64px var(--gutter);
}

.cro-pain-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.cro-pain h2 {
  margin: 0 0 12px;
  font-family: var(--ff-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cro-pain-lead {
  margin: 0 auto 32px;
  max-width: 40rem;
  font-size: 1.0625rem;
  color: var(--fg-2);
  line-height: 1.6;
}

.cro-pain-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: left;
  margin-bottom: 28px;
}

.cro-pain-cards article {
  padding: 0 0 0 20px;
  background: none;
  border: none;
  border-left: 2px solid var(--border);
  border-radius: 0;
}

.cro-pain-cards .material-symbols-rounded {
  font-size: 1.5rem;
  color: var(--ember-500);
  margin-bottom: 10px;
}

.cro-pain-cards h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 650;
}

.cro-pain-cards p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--fg-2);
  line-height: 1.5;
}

.cro-pain-payoff {
  margin: 0 auto;
  max-width: 36rem;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(12, 140, 158, 0.08);
  border: 1px solid rgba(12, 140, 158, 0.16);
  color: var(--fg);
  font-size: 1rem;
  line-height: 1.5;
}

/* How */
.cro-how {
  padding: 64px var(--gutter) 48px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(12, 140, 158, 0.07), transparent 70%),
    var(--bg);
}

.cro-how-head {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
}

.cro-how-head h2 {
  margin: 0 0 10px;
  font-family: var(--ff-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cro-how-head p:last-child {
  margin: 0;
  color: var(--fg-2);
  font-size: 1.05rem;
}

.cro-steps {
  list-style: none;
  margin: 0 auto 32px;
  padding: 0;
  max-width: 600px;
  position: relative;
  padding-left: 56px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.cro-steps::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--border);
}

.cro-steps li {
  position: relative;
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
}

.cro-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: var(--memory-400);
  position: absolute;
  left: -56px;
  top: 0;
  z-index: 2;
  box-shadow: 0 0 0 6px var(--bg);
}

.cro-steps h3 {
  margin: 0 0 4px;
  font-size: 1.08rem;
  font-weight: 650;
}

.cro-steps p {
  margin: 0;
  color: var(--fg-2);
  font-size: 0.95rem;
  line-height: 1.5;
}

.cro-how-cta {
  text-align: center;
}

/* Demo polish */
.cro-demo {
  padding-top: 24px;
}

/* Features */
.cro-features {
  padding: 64px var(--gutter);
}

.cro-features-head {
  max-width: 640px;
  margin: 0 auto 32px;
  text-align: center;
}

.cro-features-head h2 {
  margin: 0 0 10px;
  font-family: var(--ff-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cro-features-head p {
  margin: 0;
  color: var(--fg-2);
  font-size: 1.05rem;
}

.cro-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 40px;
  max-width: 900px;
  margin: 0 auto;
}

.cro-feature {
  padding: 0 0 0 20px;
  background: none;
  border: none;
  border-left: 2px solid var(--border);
  border-radius: 0;
  transition: none;
}

.cro-feature:hover {
  border-color: transparent;
  box-shadow: none;
}

.cro-feature .material-symbols-rounded {
  font-size: 1.6rem;
  color: var(--memory-400);
  margin-bottom: 12px;
  display: inline-block;
}

.cro-feature h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 650;
}

.cro-feature p {
  margin: 0;
  color: var(--fg-2);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Full capabilities gallery (Mux phone frames) */
.cro-gallery {
  padding-top: 48px;
  padding-bottom: 56px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(12, 140, 158, 0.06), transparent 65%),
    var(--bg);
}

.cro-gallery .gallery-media {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%),
    #0b0b0b;
}

.cro-gallery .gallery-media iframe.lazy-mux:not(.is-loaded) {
  background:
    linear-gradient(110deg, #121212 25%, #1c1c1c 37%, #121212 63%);
  background-size: 200% 100%;
  animation: cro-shimmer 1.4s ease-in-out infinite;
}

.cro-gallery .gallery-media iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
}

.cro-gallery-cta {
  margin-top: 36px;
  text-align: center;
}

@keyframes cro-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Pricing note */
.cro-pricing-more {
  text-align: center;
  margin: 20px 0 0;
  font-weight: 600;
}

.cro-pricing {
  padding-top: 48px;
}

.cro-compare,
.cro-testimonials,
.cro-faq {
  padding-top: 40px;
}

.cro-download .download-inner {
  padding-top: 24px;
}

/* Sticky mobile CTA */
.cro-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(245, 248, 247, 0.92);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateY(110%);
  transition: transform 0.28s var(--ease);
  display: none;
}

.cro-sticky-cta.is-visible {
  transform: translateY(0);
}

.cro-sticky-inner {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cro-sticky-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cro-sticky-text strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
}

.cro-sticky-text span {
  font-size: 0.75rem;
  color: var(--fg-2);
}

/* Responsive */
@media (max-width: 960px) {
  .cro-hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .cro-hero-copy {
    text-align: center;
  }

  .cro-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .cro-store-row {
    justify-content: center;
  }

  .cro-trust-row {
    justify-content: center;
  }

  .cro-search-chip {
    left: 0;
  }

  .cro-found-chip {
    right: 0;
  }

  .cro-define-grid,
  .cro-pain-cards,
  .cro-proof-grid {
    grid-template-columns: 1fr;
  }

  .cro-feature-grid {
    grid-template-columns: 1fr;
  }

  .cro-proof-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .cro-proof-grid img {
    border-radius: 14px;
  }

  .cro-sticky-cta {
    display: block;
  }

  .page-home-v3 {
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 560px) {
  .cro-hero {
    padding-top: 28px;
  }

  .cro-store-btn {
    flex: 1 1 calc(50% - 6px);
    min-width: 140px;
  }

  .cro-store-chrome {
    flex: 1 1 100%;
    justify-content: center;
  }

  .cro-proof-grid {
    grid-template-columns: 1fr;
    max-width: 240px;
  }

  .cro-search-chip,
  .cro-found-chip {
    font-size: 0.75rem;
    padding: 8px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cro-search-chip,
  .cro-found-chip,
  .cro-store-btn,
  .cro-sticky-cta {
    animation: none;
    transition: none;
  }
}

/* Know More Deep Dive Toggle */
.cro-define-more-container {
  margin-top: 32px;
  text-align: center;
}

.cro-define-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.cro-define-more-btn .icon-arrow {
  transition: transform 0.2s var(--ease);
}

.cro-define-more-btn.is-active .icon-arrow {
  transform: rotate(180deg);
}

.cro-deep-dive {
  margin-top: 32px;
  text-align: left;
  border-top: 1px solid var(--border);
  padding-top: 32px;
  animation: cro-fade-slide 0.35s var(--ease) forwards;
}

@keyframes cro-fade-slide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cro-deep-dive-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.cro-dive-card {
  padding-left: 20px;
  border-left: 2px solid var(--border);
}

.cro-dive-card h4 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--fg);
}

.cro-dive-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--fg-2);
}

/* Redesigned Download Cards and Badges Section */
.dl-card {
  background: var(--bg) !important;
  border: 1px solid var(--border) !important;
  border-radius: 16px !important;
  padding: 16px 20px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.015) !important;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease) !important;
}

.dl-card:hover {
  background: var(--bg) !important;
  border-color: var(--memory-400) !important;
  box-shadow: 0 8px 24px rgba(12, 140, 158, 0.08) !important;
  transform: translateY(-2px) !important;
}

/* Styled Icon Wrapper inside dl-card */
.dl-card .material-symbols-rounded {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(12, 140, 158, 0.08); /* 8% of memory-400 */
  color: var(--memory-400) !important;
  font-size: 22px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(12, 140, 158, 0.15);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease) !important;
}

.dl-card:hover .material-symbols-rounded {
  background: var(--memory-400) !important;
  color: #ffffff !important;
  border-color: var(--memory-400) !important;
}

.dl-card > div {
  gap: 3px !important;
}

.dl-card strong {
  font-size: 15px !important;
  font-weight: 600 !important;
}

.dl-card span {
  font-size: 12px !important;
  color: var(--fg-3) !important;
}

/* Featured On Redesign */
.featured-on {
  border-top: 1px solid var(--border);
  padding: 56px var(--gutter) 48px !important;
}

.featured-on-grid {
  gap: 20px 24px !important;
}

.featured-on-card {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  min-height: auto !important;
  padding: 6px 12px !important;
  opacity: 0.7;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease) !important;
}

.featured-on-card:hover {
  opacity: 1;
  transform: scale(1.05) !important;
}

.featured-on-card img {
  max-height: 38px !important; /* Slightly smaller, more elegant */
}

/* Make text badge look like a clean, custom pill */
.featured-on-card--text {
  background: var(--bg-2) !important;
  border: 1px solid var(--border) !important;
  border-radius: 30px !important;
  padding: 8px 18px !important;
  min-height: 38px !important;
  gap: 8px !important;
  color: var(--fg-2) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  opacity: 0.8;
}

.featured-on-card--text img {
  max-height: 18px !important;
}

.featured-on-card--text:hover {
  border-color: var(--border-strong) !important;
  color: var(--memory-400) !important;
  opacity: 1;
}

/* Mobile Adjustments for horizontal swipe list of badges */
@media (max-width: 640px) {
  .featured-on {
    padding: 36px var(--gutter) 28px !important;
  }
  .featured-on-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    padding: 8px var(--gutter) 16px !important;
    margin: 0 calc(-1 * var(--gutter)) !important;
    gap: 16px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none !important;
  }
  .featured-on-grid::-webkit-scrollbar {
    display: none !important;
  }
  .featured-on-card {
    flex-shrink: 0 !important;
    scroll-snap-align: center !important;
    padding: 4px 8px !important;
  }
}

/* Redesigned Download Showcase Grid */
.cro-download-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 44px auto 36px;
  max-width: 1140px;
  text-align: left;
}

.cro-dl-showcase-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 44px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left !important;
  gap: 12px;
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  box-shadow: 0 8px 30px rgba(33, 28, 21, 0.02);
}

.cro-dl-showcase-card:hover {
  transform: translateY(-6px);
  border-color: var(--memory-200);
  box-shadow: 0 20px 40px rgba(12, 140, 158, 0.08);
}

.showcase-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(12, 140, 158, 0.08); /* 8% teal */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  color: var(--memory-400);
  transition: transform 0.25s var(--ease);
}

.cro-dl-showcase-card:hover .showcase-icon-circle {
  transform: scale(1.08);
}

.showcase-icon-circle svg {
  display: block;
}

.showcase-subtitle {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg-3);
  margin-top: 8px;
}

.showcase-title {
  font-size: 28px;
  font-weight: 750;
  margin: 2px 0 6px;
  color: var(--fg);
  line-height: 1.15;
}

.showcase-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0 0 28px;
}

.showcase-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.showcase-actions .cro-store-btn {
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
}

/* Highlighted Primary Card Style */
.cro-dl-showcase-card.showcase-card-primary {
  background: linear-gradient(135deg, var(--memory-500) 0%, var(--memory-400) 100%);
  border-color: var(--memory-400);
  color: #ffffff;
}

.showcase-card-primary .showcase-title {
  color: #ffffff;
}

.showcase-card-primary .showcase-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.showcase-card-primary .showcase-desc {
  color: rgba(255, 255, 255, 0.9);
}

.showcase-card-primary .showcase-icon-circle {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.showcase-card-primary .cro-store-btn {
  background: #ffffff !important;
  color: var(--memory-500) !important;
  border-color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(12, 140, 158, 0.1) !important;
}

.showcase-card-primary .cro-store-btn .material-symbols-rounded {
  color: var(--memory-500) !important;
}

.showcase-card-primary .cro-store-btn small {
  color: var(--memory-400) !important;
  opacity: 0.8;
}

.showcase-card-primary .cro-store-btn strong {
  color: var(--memory-500) !important;
}

.showcase-card-primary .cro-store-btn:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2) !important;
}

@media (max-width: 900px) {
  .cro-download {
    padding-left: var(--gutter) !important;
    padding-right: var(--gutter) !important;
  }
  .cro-download .download-inner {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .cro-download-showcase {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 !important;
    margin: 32px 0 24px;
    width: 100% !important;
  }
  .cro-dl-showcase-card {
    padding: 32px 24px !important;
    border-radius: 24px !important;
    width: 100% !important;
  }
  .showcase-actions .cro-store-btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* Fix for thin download cards and sticky header overlap */
.download {
  scroll-margin-top: 90px !important;
}

.download-inner {
  max-width: 1200px !important;
}

.download .section-lead {
  max-width: 600px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* =============================================================
   VISUAL PLUGIN SHOWCASE (Below Hero) & 5-6s LOOPING UI DEMOS
   ============================================================= */

.plugin-showcase-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px var(--gutter) 44px;
  scroll-margin-top: 84px;
}

.plugin-showcase-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}

.plugin-showcase-head .section-title {
  margin-bottom: 10px;
}

.plugin-showcase-head .section-lead {
  margin: 0 auto;
  font-size: 16px;
}

.plugin-visual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.plugin-visual-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  box-shadow: 0 10px 30px rgba(33, 28, 21, 0.04);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  overflow: hidden;
}

.plugin-visual-card:hover {
  transform: translateY(-3px);
  border-color: rgba(12, 140, 158, 0.35);
  box-shadow: 0 16px 38px rgba(12, 140, 158, 0.08);
}

.plugin-visual-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plugin-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.plugin-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--memory-400);
  background: rgba(12, 140, 158, 0.1);
  border: 1px solid rgba(12, 140, 158, 0.22);
  padding: 4px 10px;
  border-radius: 999px;
}

.plugin-step-pill .material-symbols-rounded {
  font-size: 14px;
}

.plugin-time-tag {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--fg-3);
}

.plugin-visual-copy h3 {
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--fg);
}

.plugin-visual-copy p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--fg-2);
}

/* --- Stage Container for 5.5s - 6s Visual Loops --- */
.plugin-stage {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  min-height: 196px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

/* Stage 1: Download Plugin (Reel Catcher) 6s Loop */
.stage-source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg);
}

.stage-source-platforms {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stage-source-platforms .material-symbols-rounded {
  font-size: 16px;
  color: #e1306c;
}

.stage-public-pill {
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #065f46;
}

.stage-plugin-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg);
  animation: animPluginToggleCard 5.8s ease-in-out infinite;
}

.stage-plugin-toggle-left {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.stage-plugin-toggle-left .material-symbols-rounded {
  font-size: 17px;
  color: var(--memory-400);
}

.stage-switch {
  width: 34px;
  height: 19px;
  border-radius: 999px;
  background: rgba(38, 30, 18, 0.18);
  position: relative;
  animation: animSwitchBg 5.8s ease-in-out infinite;
}

.stage-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  animation: animSwitchKnob 5.8s ease-in-out infinite;
}

.stage-cache-progress {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stage-cache-bar-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(38, 30, 18, 0.08);
  overflow: hidden;
}

.stage-cache-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--memory-400), #10b981);
  animation: animCacheBar 5.8s ease-in-out infinite;
}

.stage-drive-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #065f46;
  font-size: 11.5px;
  font-weight: 600;
  animation: animDriveSaved 5.8s ease-in-out infinite;
}

.stage-drive-result .material-symbols-rounded {
  font-size: 16px;
  color: #059669;
}

@keyframes animPluginToggleCard {
  0%, 12% { border-color: var(--border); background: var(--bg-2); }
  20%, 85% { border-color: var(--memory-400); background: rgba(12, 140, 158, 0.07); }
  95%, 100% { border-color: var(--border); background: var(--bg-2); }
}

@keyframes animSwitchBg {
  0%, 12% { background: rgba(38, 30, 18, 0.18); }
  20%, 85% { background: var(--memory-400); }
  95%, 100% { background: rgba(38, 30, 18, 0.18); }
}

@keyframes animSwitchKnob {
  0%, 12% { transform: translateX(0); }
  20%, 85% { transform: translateX(15px); }
  95%, 100% { transform: translateX(0); }
}

@keyframes animCacheBar {
  0%, 18% { width: 0%; opacity: 0.4; }
  48%, 85% { width: 100%; opacity: 1; }
  95%, 100% { width: 0%; opacity: 0.4; }
}

@keyframes animDriveSaved {
  0%, 42% { opacity: 0.25; transform: translateY(4px) scale(0.98); }
  52%, 86% { opacity: 1; transform: translateY(0) scale(1); }
  95%, 100% { opacity: 0.25; transform: translateY(4px) scale(0.98); }
}

/* Stage 2: Astrology — "set it up once, get a report on every share" (12s Loop) */
/* PAST (Initial): three static chips ("Save Reel" → "Birth Chart Profile" → "Astrology Plugin") with colour-only
   animation plus one fixed output card.
   ISSUE (Founder 2026-10-27): the card read like a chart recalculated on every save — it never separated the
   one-time DOB entry from the automatic repeat ("showing putting the dob one time and share video to app and get
   the kundli report every time no need to do manual calculations now").
   PRESENT: a three-beat crossfade (DOB saved once → share a Reel → Kundli report) synchronised with a stepper and
   a "Set up once · runs on every share" footer, so the repeat is visible rather than described.
   RATIONALE: the promise is "set it up once, then forget it" — a demo that only lists features cannot prove the
   second and third share are free. Pure CSS (no JS timeline) so the stage can never desync or sit blank on error. */
.plugin-stage--kundli {
  gap: 10px;
  padding: 14px;
  justify-content: flex-start;
  min-height: 206px;
}

.kundli-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 20px;
}

.kundli-step {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--fg-3);
  white-space: nowrap;
}

.kundli-step b {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  color: var(--fg-2);
  flex: 0 0 auto;
}

.k-step-1 { animation: kStep1Label 12s ease-in-out infinite; }
.k-step-1 b { animation: kStep1Ring 12s ease-in-out infinite; }
.k-step-2 { animation: kStep2Label 12s ease-in-out infinite; }
.k-step-2 b { animation: kStep2Ring 12s ease-in-out infinite; }
.k-step-3 { animation: kStep3Label 12s ease-in-out infinite; }
.k-step-3 b { animation: kStep3Ring 12s ease-in-out infinite; }

.kundli-rail {
  position: relative;
  flex: 1;
  min-width: 8px;
  height: 2px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.kundli-rail i {
  position: absolute;
  inset: 0;
  width: 0;
  border-radius: inherit;
  background: var(--memory-400);
}

.k-rail-1 { animation: kRail1 12s ease-in-out infinite; }
.k-rail-2 { animation: kRail2 12s ease-in-out infinite; }

.kundli-beats {
  position: relative;
  height: 118px;
}

.kundli-beat {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  opacity: 0;
  will-change: opacity, transform;
}

.k-beat-1 { animation: kBeat1 12s ease-in-out infinite; }
.k-beat-2 { animation: kBeat2 12s ease-in-out infinite; }
.k-beat-3 { animation: kBeat3 12s ease-in-out infinite; }

.kundli-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.kundli-field {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--fg);
}

.kundli-field .material-symbols-rounded {
  font-size: 15px;
  color: var(--memory-400);
  flex: 0 0 auto;
}

.kundli-field-text {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  animation: kType 12s steps(24, end) infinite;
}

.kundli-saved {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 600;
  color: #065f46;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  animation: kSavedPop 12s ease-in-out infinite;
}

.kundli-saved::before {
  content: "✓";
  font-size: 9px;
}

.kundli-caption {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--fg-3);
}

.kundli-reel {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  min-width: 0;
}

.kundli-reel > .material-symbols-rounded {
  font-size: 15px;
  color: #e1306c;
  flex: 0 0 auto;
}

.kundli-reel-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.kundli-reel-meta b {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
}

.kundli-reel-meta small {
  font-size: 9.5px;
  color: var(--fg-3);
}

.kundli-share-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--memory-400);
  background: rgba(12, 140, 158, 0.1);
  border: 1px solid rgba(12, 140, 158, 0.3);
  animation: kShareNudge 12s ease-in-out infinite;
}

.kundli-share-pill .material-symbols-rounded {
  font-size: 14px;
}

.kundli-report {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid rgba(12, 140, 158, 0.28);
  animation: kReportPop 12s ease-in-out infinite;
}

.kundli-report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--memory-400);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.kundli-report-head > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.kundli-report-head .material-symbols-rounded {
  font-size: 14px;
}

.kundli-report-badge {
  font-family: var(--ff-mono);
  font-size: 9px;
  font-weight: 600;
  color: #065f46;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.32);
  border-radius: 999px;
  padding: 2px 6px;
  white-space: nowrap;
}

.kundli-report-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.kundli-report-tags span {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 6px;
  color: var(--fg);
  background: rgba(12, 140, 158, 0.08);
}

.kundli-loop-note {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  font-size: 10px;
  font-weight: 600;
  color: var(--fg-3);
}

.kundli-loop-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #059669;
  flex: 0 0 auto;
  animation: kLoopDot 2.4s ease-in-out infinite;
}

.kundli-loop-badge {
  margin-left: auto;
  font-family: var(--ff-mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--memory-400);
  background: rgba(12, 140, 158, 0.1);
  border: 1px solid rgba(12, 140, 158, 0.25);
  border-radius: 999px;
  padding: 2px 6px;
  white-space: nowrap;
}

/* Beat windows: 0–4s DOB · 4–8s share · 8–12s report (12s loop) */
@keyframes kBeat1 {
  0% { opacity: 1; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(0); }
  35% { opacity: 0; transform: translateY(-6px); }
  96% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes kBeat2 {
  0%, 31% { opacity: 0; transform: translateY(6px); }
  37%, 62% { opacity: 1; transform: translateY(0); }
  68%, 100% { opacity: 0; transform: translateY(-6px); }
}

@keyframes kBeat3 {
  0%, 63% { opacity: 0; transform: translateY(6px); }
  69%, 93% { opacity: 1; transform: translateY(0); }
  99%, 100% { opacity: 0; transform: translateY(-6px); }
}

@keyframes kStep1Label {
  0%, 30% { color: var(--memory-400); }
  36%, 96% { color: var(--fg-2); }
  100% { color: var(--memory-400); }
}

@keyframes kStep1Ring {
  0%, 30% { background: var(--memory-400); border-color: var(--memory-400); color: #fff; }
  36%, 96% { background: rgba(12, 140, 158, 0.12); border-color: rgba(12, 140, 158, 0.4); color: var(--memory-400); }
  100% { background: var(--memory-400); border-color: var(--memory-400); color: #fff; }
}

@keyframes kStep2Label {
  0%, 33% { color: var(--fg-3); }
  38%, 64% { color: var(--memory-400); }
  70%, 96% { color: var(--fg-2); }
  100% { color: var(--fg-3); }
}

@keyframes kStep2Ring {
  0%, 33% { background: var(--bg-2); border-color: var(--border); color: var(--fg-2); }
  38%, 64% { background: var(--memory-400); border-color: var(--memory-400); color: #fff; }
  70%, 96% { background: rgba(12, 140, 158, 0.12); border-color: rgba(12, 140, 158, 0.4); color: var(--memory-400); }
  100% { background: var(--bg-2); border-color: var(--border); color: var(--fg-2); }
}

@keyframes kStep3Label {
  0%, 66% { color: var(--fg-3); }
  71%, 96% { color: var(--memory-400); }
  100% { color: var(--fg-3); }
}

@keyframes kStep3Ring {
  0%, 66% { background: var(--bg-2); border-color: var(--border); color: var(--fg-2); }
  71%, 96% { background: var(--memory-400); border-color: var(--memory-400); color: #fff; }
  100% { background: var(--bg-2); border-color: var(--border); color: var(--fg-2); }
}

@keyframes kRail1 {
  0% { width: 0; }
  32% { width: 100%; }
  96% { width: 100%; }
  100% { width: 0; }
}

@keyframes kRail2 {
  0%, 33% { width: 0; }
  66% { width: 100%; }
  96% { width: 100%; }
  100% { width: 0; }
}

@keyframes kType {
  0%, 7% { max-width: 0; }
  24% { max-width: 100%; }
  96% { max-width: 100%; }
  100% { max-width: 0; }
}

@keyframes kSavedPop {
  0%, 22% { opacity: 0; transform: scale(0.9); }
  27%, 96% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.9); }
}

@keyframes kShareNudge {
  0%, 36% { transform: translateX(0); box-shadow: none; }
  46% { transform: translateX(2px); box-shadow: 0 4px 12px rgba(12, 140, 158, 0.18); }
  56%, 96% { transform: translateX(0); box-shadow: none; }
  100% { transform: translateX(0); }
}

@keyframes kReportPop {
  0%, 66% { transform: scale(0.98); }
  72%, 94% { transform: scale(1); }
  100% { transform: scale(0.98); }
}

@keyframes kLoopDot {
  0%, 100% { opacity: 0.45; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* Scroll reveal: cards fade/slide in once. `.reveal-ready` is added by main.js only when
   IntersectionObserver exists and reduced motion is off, so content is never hidden without a reveal path. */
[data-reveal] {
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
}

.reveal-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

.reveal-ready .plugin-visual-card[data-reveal].is-revealed:hover {
  transform: translateY(-3px);
}

/* Viewport playback gate (paired with initStagePlaybackGate in main.js).
   PAST: the 5.8s and 12s stage loops ran from page load, so visitors arrived mid-cycle and the timelines
   were each offset from the others.
   PRESENT: while the section lacks `.stage-live`, every animation inside a stage freezes at its idle first
   frame; entering the viewport releases all three at frame 0 together.
   RATIONALE: paused-at-frame-0 is the same visual as `animation: none` for these keyframes, so a page
   without JS still shows a complete, readable static mock — the gate costs motion, never content. */
.plugin-showcase-section:not(.stage-live) .plugin-stage,
.plugin-showcase-section:not(.stage-live) .plugin-stage * {
  animation-play-state: paused;
}

/* Responsive: the Kundli stage is the tightest of the three (three stepper labels + three beats).
   ISSUE: at <=560px the stepper labels and the two rails no longer fit on one line, and the fixed
   118px beat box clipped the taller wrapped rows on a 320px screen.
   PRESENT: rails drop out first (the numbered rings still convey order), then labels tighten; the beat
   box grows slightly so wrapped rows keep their captions inside the stage. */
@media (max-width: 560px) {
  .plugin-stage--kundli {
    min-height: 0;
    padding: 13px 12px;
    gap: 9px;
  }

  .kundli-stepper {
    gap: 5px;
  }

  .kundli-step {
    font-size: 9.5px;
    gap: 4px;
  }

  .kundli-step b {
    width: 16px;
    height: 16px;
    font-size: 8.5px;
  }

  .kundli-rail {
    display: none;
  }

  .kundli-beats {
    height: 126px;
  }

  .kundli-caption {
    font-size: 10px;
  }

  /* Footer note + badge compete for a ~260px line: shrink both, and let the badge drop to its own line
     instead of squeezing the sentence into two ragged lines. */
  .kundli-loop-note {
    flex-wrap: wrap;
    gap: 5px;
    font-size: 9.5px;
  }

  .kundli-loop-badge {
    font-size: 8.5px;
    padding: 2px 5px;
  }
}

@media (max-width: 380px) {
  .kundli-step {
    font-size: 8.5px;
    letter-spacing: 0;
  }

  .kundli-step b {
    width: 15px;
    height: 15px;
    font-size: 8px;
  }

  .kundli-field,
  .kundli-reel {
    font-size: 10.5px;
    padding: 7px 8px;
  }

  .kundli-field-text {
    max-width: none;
    overflow: visible;
    white-space: normal;
    line-height: 1.25;
  }

  .kundli-report {
    padding: 8px 9px;
  }

  /* At 320px the "Every share" badge leaves only ~100px for the title, which then breaks over three lines.
     Let the badge wrap under the title instead. */
  .kundli-report-head {
    flex-wrap: wrap;
    row-gap: 5px;
  }

  .kundli-report-head > span:first-child {
    flex: 1 1 100%;
  }

  /* Second line of the footer is the first thing to go: the badge is decorative, the sentence is not. */
  .kundli-loop-badge {
    display: none;
  }
}

/* Reduced motion: no looping timeline. All three beats stack as a static, readable three-step story
   (DOB once -> share -> report), which is the same information the animation carries. */
@media (prefers-reduced-motion: reduce) {
  .reveal-ready [data-reveal],
  .reveal-ready [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .kundli-stepper *,
  .kundli-beat,
  .kundli-field-text,
  .kundli-saved,
  .kundli-share-pill,
  .kundli-report,
  .kundli-loop-dot,
  .plugin-stage,
  .plugin-stage * {
    animation: none !important;
    transition: none !important;
  }

  /* Without the timelines, cards 1 and 3 fall back to their default (pre-loop) styles — pin the one spot
     where the keyframes carried the resting state so the static mock still reads as a finished state. */
  .stage-cache-bar-fill {
    width: 100%;
    opacity: 1;
  }

  .kundli-step {
    color: var(--fg-2);
  }

  .kundli-step b {
    background: rgba(12, 140, 158, 0.12);
    border-color: rgba(12, 140, 158, 0.4);
    color: var(--memory-400);
  }

  .kundli-rail i {
    width: 100%;
  }

  .kundli-beats {
    position: static;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .kundli-beat {
    position: static;
    inset: auto;
    opacity: 1;
    transform: none;
  }

  /* The stacked story makes this card the tallest in the row. Anchor every card's content to the top so the
     extra space lands at the card bottom instead of opening a hole between copy and stage on the other two. */
  .plugin-visual-card {
    justify-content: flex-start;
  }

  .kundli-field-text {
    max-width: none;
    overflow: visible;
    white-space: normal;
  }
}


/* Stage 3: Build or Request Custom Plugins (5.8s Loop) */
.stage-builder-prompt {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 11px;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 7px;
}

.stage-builder-prompt .material-symbols-rounded {
  font-size: 15px;
  color: var(--memory-400);
}

.stage-builder-typing {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  animation: animBuilderType 5.8s steps(32, end) infinite;
}

.stage-builder-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  color: var(--fg-3);
}

.stage-custom-attached {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(12, 140, 158, 0.09);
  border: 1px solid rgba(12, 140, 158, 0.32);
  font-size: 12px;
  font-weight: 600;
  color: var(--fg);
  animation: animCustomPluginPop 5.8s ease-in-out infinite;
}

.stage-custom-attached-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stage-custom-attached-left .material-symbols-rounded {
  font-size: 16px;
  color: var(--memory-400);
}

.stage-attached-badge {
  font-family: var(--ff-mono);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--memory-400);
  color: #fff;
}

.plugin-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px dashed var(--border);
  font-size: 12.5px;
  font-weight: 600;
}

.plugin-card-actions a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--memory-400);
  text-decoration: none;
}

.plugin-card-actions a:hover {
  text-decoration: underline;
}

.plugin-card-actions .material-symbols-rounded {
  font-size: 15px;
}

@keyframes animBuilderType {
  0%, 10% { max-width: 0; }
  45%, 88% { max-width: 100%; }
  96%, 100% { max-width: 0; }
}

@keyframes animCustomPluginPop {
  0%, 40% { opacity: 0.25; transform: scale(0.96); }
  52%, 88% { opacity: 1; transform: scale(1); }
  96%, 100% { opacity: 0.25; transform: scale(0.96); }
}

/* =============================================================
   POSITIONING CARDS: 5-6s VISUAL MICRO-ANIMATIONS (Replacing Text)
   ============================================================= */

.pos-visual-loop {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pos-loop-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
}

.pos-loop-row.row-bad {
  background: rgba(224, 90, 71, 0.08);
  color: #b93829;
  border: 1px solid rgba(224, 90, 71, 0.2);
  animation: animPosFadeProblem 5.6s ease-in-out infinite;
}

.pos-loop-row.row-good {
  background: rgba(16, 185, 129, 0.1);
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, 0.26);
  animation: animPosPulseGood 5.6s ease-in-out infinite;
}

.pos-loop-row .material-symbols-rounded {
  font-size: 15px;
}

.pos-tags-stream {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.pos-stream-pill {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--fg);
  animation: animTagStream 5.6s ease-in-out infinite;
}

.pos-stream-pill:nth-child(2) { animation-delay: 0.6s; }
.pos-stream-pill:nth-child(3) { animation-delay: 1.2s; }

.pos-chat-mini {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11.5px;
}

.pos-chat-q {
  align-self: flex-end;
  background: var(--memory-400);
  color: #fff;
  padding: 5px 10px;
  border-radius: 10px 10px 2px 10px;
  font-weight: 500;
}

.pos-chat-a {
  align-self: flex-start;
  background: var(--bg-2);
  border: 1px solid rgba(12, 140, 158, 0.28);
  color: var(--fg);
  padding: 6px 10px;
  border-radius: 10px 10px 10px 2px;
  font-weight: 600;
  animation: animChatReplyPop 5.6s ease-in-out infinite;
}

.pos-chat-a code {
  font-family: var(--ff-mono);
  color: var(--memory-400);
  background: rgba(12, 140, 158, 0.1);
  padding: 1px 5px;
  border-radius: 4px;
}

@keyframes animPosFadeProblem {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.95; }
}

@keyframes animPosPulseGood {
  0%, 25% { transform: scale(0.98); opacity: 0.6; }
  45%, 85% { transform: scale(1); opacity: 1; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.12); }
  95%, 100% { transform: scale(0.98); opacity: 0.6; }
}

@keyframes animTagStream {
  0%, 20% { opacity: 0.3; transform: translateY(3px); }
  40%, 85% { opacity: 1; transform: translateY(0); border-color: var(--memory-400); color: var(--memory-400); }
  95%, 100% { opacity: 0.3; transform: translateY(3px); }
}

@keyframes animChatReplyPop {
  0%, 30% { opacity: 0.25; transform: translateY(4px); }
  48%, 88% { opacity: 1; transform: translateY(0); }
  96%, 100% { opacity: 0.25; transform: translateY(4px); }
}

/* =============================================================
   SHIELD SECTION: 6-SECOND VISUAL COMPARISON STAGE
   ============================================================= */

.shield-visual-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}

.shield-visual-col {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.shield-visual-col.col-protected {
  border-color: rgba(12, 140, 158, 0.35);
  box-shadow: 0 12px 32px rgba(12, 140, 158, 0.07);
}

.shield-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.shield-col-header h3 {
  margin: 0;
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 600;
}

.shield-live-sim {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shield-sim-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
}

.shield-sim-item .sim-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.shield-sim-item .material-symbols-rounded {
  font-size: 17px;
}

.shield-sim-item.sim-dead {
  animation: animSimDead 5.8s ease-in-out infinite;
}

.shield-sim-item.sim-alive {
  animation: animSimAlive 5.8s ease-in-out infinite;
}

.sim-status-tag {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 999px;
}

.sim-status-tag.tag-dead {
  background: rgba(224, 90, 71, 0.12);
  color: #b93829;
}

.sim-status-tag.tag-alive {
  background: rgba(16, 185, 129, 0.14);
  color: #065f46;
}

@keyframes animSimDead {
  0%, 20% { opacity: 1; }
  45%, 85% { opacity: 0.45; border-color: rgba(224, 90, 71, 0.35); background: rgba(224, 90, 71, 0.04); }
  95%, 100% { opacity: 1; }
}

@keyframes animSimAlive {
  0%, 20% { border-color: var(--border); }
  40%, 88% { border-color: rgba(16, 185, 129, 0.45); background: rgba(16, 185, 129, 0.06); transform: translateY(-1px); }
  95%, 100% { border-color: var(--border); }
}

/* Bento subtle 5.8s looping highlights */
.bento-card-demo .demo-result {
  animation: animBentoResultPulse 5.8s ease-in-out infinite;
}
.bento-card-demo .demo-result:nth-child(2) {
  animation-delay: 1.2s;
}
.bento-card-demo .demo-plugin-chip.active {
  animation: animPipeChip1 5.8s ease-in-out infinite;
}

@keyframes animBentoResultPulse {
  0%, 100% { border-color: var(--border); }
  50% { border-color: rgba(12, 140, 158, 0.4); box-shadow: 0 4px 14px rgba(12, 140, 158, 0.07); }
}

@media (max-width: 960px) {
  .plugin-visual-grid,
  .shield-visual-board {
    grid-template-columns: 1fr;
  }
}

