/* Store page, built in the same language as the Scener page: a textured hero
   panel under a transparent navbar, rounded feature panels with textured
   stages for the showcases, and a large closing call to action. */
.store-body.public-page-body {
  --navbar-scroll-threshold: 24px;
  background: var(--color-bg);
  padding-top: var(--space-6);
  overflow-x: clip;
  overflow-y: visible;
}

/* Keep the shared navbar over the hero, then let it stick without changing width. */
.store-body .site-navbar {
  position: sticky;
  top: 0;
  left: auto;
  right: auto;
  width: 100%;
  flex-shrink: 0;
  margin: 0 auto var(--space-neg-navbar-offset);
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.store-body .site-navbar.is-scrolled {
  position: fixed;
  left: 0;
  right: 0;
}

.store-body .site-navbar::before {
  top: -2px;
  transition: opacity var(--duration-base) var(--ease-out);
}

.store-body .site-navbar .container {
  width: min(100% - 48px, 1280px);
  padding-inline: var(--space-12);
}

.store-body.mobile-menu-open { overflow: visible; }
.store-body.mobile-menu-open .site-navbar {
  position: fixed;
  left: 0;
  right: 0;
}

.store-body .nav-link::after { display: none; }
.store-body .nav-link.active { color: var(--color-text-on-solid); }

.store-page {
  width: 100%;
  padding: 0;
  color: var(--color-text);
}

.store-page h1,
.store-page h2,
.store-page h3 {
  color: var(--color-text);
  font-family: inherit;
}

.store-page :is(a, button, summary):focus-visible {
  outline: 2px solid var(--color-text-on-solid);
  outline-offset: 4px;
}

/* ---------- Buttons ---------- */
.store-primary,
.store-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-ui);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--duration-fast), border-color var(--duration-fast);
}

.store-primary {
  background: var(--color-brand);
  color: var(--color-text-on-solid);
}

.store-primary:hover {
  background: var(--color-brand-active);
  color: var(--color-text-on-solid);
}

.store-primary:disabled {
  opacity: 0.5;
  cursor: wait;
}

.store-secondary {
  border-color: var(--color-border);
  background: var(--color-bg-elevated);
  color: var(--color-text-on-solid);
}

.store-secondary:hover {
  background: var(--color-bg-hover);
  border-color: var(--color-border-strong);
  color: var(--color-text-on-solid);
}

.store-page .purchase-form { margin: 0; }

/* ---------- Hero ---------- */
.store-hero {
  position: relative;
  isolation: isolate;
  width: min(100% - 48px, 1280px);
  margin: 0 auto;
  padding-top: var(--space-20);
  border-radius: var(--radius-ui);
  overflow: hidden;
  text-align: center;
}

.store-hero-background,
.store-hero-background img,
.store-hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -2;
}

.store-hero-background img { object-fit: cover; }

.store-hero::after {
  content: "";
  z-index: -1;
  background: var(--color-scener-hero-vignette);
}

.store-intro { padding: var(--space-8) var(--space-6) var(--space-6); }

.store-intro h1 {
  margin: 0;
  font-size: clamp(var(--font-size-4xl), 5.1vw, var(--font-size-7xl));
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-tight);
  letter-spacing: var(--tracking-tight);
}

.store-intro p {
  margin: var(--space-5) auto 0;
  max-width: 620px;
  font-size: var(--font-size-lg);
  line-height: var(--line-height-loose);
  color: var(--color-text-secondary);
}

.store-intro .store-price {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
}

.store-intro .store-price .price {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-on-solid);
}

.store-intro .store-alert {
  display: inline-flex;
  margin-bottom: var(--space-5);
}

.store-hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-3);
  padding: 0 var(--space-4) var(--space-20);
}

/* ---------- Panels and features ---------- */
.store-page > section {
  width: min(100% - 48px, 1280px);
  margin-inline: auto;
}

.store-panel,
.store-feature,
.store-details {
  margin-top: var(--space-6);
  padding: var(--space-8);
  border-radius: var(--radius-ui);
  background: var(--color-bg-elevated);
  overflow: hidden;
}

.store-hero + .store-panel { margin-top: var(--space-16); }

.store-panel .store-section-head {
  margin-bottom: var(--space-6);
  text-align: left;
}

.store-panel .store-section-head h2,
.store-feature-copy h2,
.store-details__copy h2 {
  margin: 0 0 var(--space-4);
  font-size: clamp(var(--font-size-2xl), 2.7vw, var(--font-size-4xl));
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-tight);
  letter-spacing: var(--tracking-tight);
  white-space: normal;
}

.store-panel .store-section-head p,
.store-feature-copy p,
.store-details__copy p {
  margin: 0;
  max-width: 410px;
  font-size: var(--font-size-md);
  line-height: var(--line-height-loose);
  color: var(--color-text-muted);
}

.store-feature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
  padding: var(--space-6);
}

.store-feature--reverse { flex-direction: row-reverse; }

.store-feature-copy {
  flex: 1;
  min-width: 0;
  padding: var(--space-8) var(--space-6);
}

.store-feature-stage {
  position: relative;
  isolation: isolate;
  flex: 0 1 640px;
  width: 52%;
  min-width: 0;
  padding: var(--space-8);
  overflow: hidden;
  border-radius: var(--radius-ui);
  background: var(--color-brand-deep);
}

.store-feature-texture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}

.store-feature-stage .twixtor-preview-grid,
.store-feature-stage .topaz-compare-section {
  margin: 0;
}

.store-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: var(--space-12);
  padding: var(--space-8) var(--space-8);
}

.store-details__copy p { margin-bottom: var(--space-5); }

.store-details__lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
}

.store-details__lists h3 {
  margin: 0 0 var(--space-3);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
}

.store-details__lists ul {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--color-text);
  font-size: var(--font-size-base);
  line-height: var(--line-height-snug);
}

/* ---------- Closing call to action ---------- */
.store-page .store-bottom-cta {
  display: block;
  max-width: 820px;
  margin-top: 0;
  padding: var(--space-24) 0 var(--space-22);
  border: 0;
  border-radius: 0;
  background: none;
  text-align: center;
}

.store-page .store-bottom-cta h2 {
  margin: 0;
  font-size: clamp(var(--font-size-4xl), 4.5vw, var(--font-size-5xl));
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-loose);
  letter-spacing: var(--tracking-tight);
  white-space: normal;
}

.store-bottom-cta > p {
  margin: var(--space-3) 0 0;
  font-size: var(--font-size-lg);
  line-height: var(--line-height-loose);
  color: var(--color-text-muted);
}

.store-bottom-cta__action {
  display: flex;
  justify-content: center;
  margin-top: var(--space-6);
}

.store-files {
  margin-top: var(--space-10);
  text-align: left;
}

.store-files > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  cursor: pointer;
  list-style: none;
  color: var(--color-text-secondary);
  font-size: var(--font-size-base);
}

.store-files > summary::-webkit-details-marker { display: none; }

.store-files[open] > summary .lucide-icon { transform: rotate(180deg); }

.store-files .store-file-tree {
  display: block;
  width: 100%;
  margin-top: var(--space-4);
  text-align: left;
}

/* File tree: the chevron marks folders, so row icons stay hidden. */
.store-file-tree__folder summary > .lucide-icon,
.store-file-tree__file > .lucide-icon {
  display: none;
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .store-body .site-navbar .container { padding-inline: var(--space-4); }

  .store-feature,
  .store-feature--reverse {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
    padding: var(--space-4);
  }

  .store-feature-copy { padding: var(--space-4) var(--space-2) 0; }

  .store-feature-stage {
    flex: none;
    width: 100%;
    padding: var(--space-4);
  }

  .store-panel,
  .store-details { padding: var(--space-5) var(--space-4); }

  .store-details {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

@media (max-width: 600px) {
  .store-hero,
  .store-page > section { width: min(100% - 32px, 1280px); }

  .store-hero { padding-top: var(--space-16); }

  .store-intro { padding-inline: var(--space-4); }

  .store-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }


  .store-details__lists {
    gap: var(--space-5);
  }

  .store-details__lists ul { font-size: var(--font-size-sm); }

  .store-hero-actions [data-store-purchase-action],
  .store-hero-actions .purchase-form,
  .store-hero-actions .store-purchase-btn {
    width: 100%;
  }
}

/* Closing call to action stays centered; only the file tree text reads left to right. */
.store-page .store-bottom-cta {
  max-width: 820px;
  text-align: center;
  justify-items: center;
  place-items: center;
}

.store-page .store-bottom-cta > h2,
.store-page .store-bottom-cta > p {
  margin-inline: auto;
  text-align: center;
}

.store-page .store-bottom-cta h2 {
  line-height: var(--line-height-tight);
}

.store-page .store-bottom-cta .store-bottom-cta__action {
  justify-content: center;
  margin-top: var(--space-5);
}

.store-files {
  width: 100%;
  max-width: 46rem;
  margin-inline: auto;
}

.store-files > summary {
  justify-content: center;
}

.store-files .store-file-tree {
  width: 100%;
}

.store-files .store-file-tree,
.store-files .store-file-tree * {
  text-align: left;
}

@media (max-width: 600px) {
  .store-page .store-bottom-cta {
    padding: var(--space-10) var(--space-4) var(--space-16);
  }

  .store-bottom-cta__action .store-purchase-btn { width: 100%; }
}

.store-feature-stage .topaz-compare {
  aspect-ratio: 16 / 9;
}


/* Twixtor: the effect that's playing, centered over the clip. */
.twixtor-caption {
  position: absolute;
  left: 50%;
  bottom: var(--space-4);
  z-index: 3;
  max-width: calc(100% - var(--space-8));
  margin: 0;
  padding: var(--space-1) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  corner-shape: round;
  background: var(--color-bg-overlay);
  backdrop-filter: blur(8px);
  color: var(--color-text-on-solid);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-align: center;
  transform: translateX(-50%);
}
