body {
  height: 100vh;
  margin: 0;
  --accent: #0B2D4F;
  --accent-contrast: #ffffff;
  --accent-soft: #e4eef9;
}

.demo-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0px 24px;
  text-align: center;
  gap: 16px;
}

.demo-title {
  font-size: 4.2rem;
  font-family: Nunito;
  line-height: 1;
  color: var(--accent);
  margin: 0px;
  text-align: center;
}

.demo-logo {
  width: min(60vw, 280px);
  max-width: 280px;
  height: auto;
  display: block;
  margin: 0px auto;
}

@media (max-width: 1200px) {
  .demo-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .demo-title {
    font-size: 2.1rem;
  }
}

@media (max-width: 480px) {
  .demo-title {
    font-size: 1.7rem;
  }
}

@media (max-width: 768px) {
  .demo-logo {
    width: min(70vw, 220px);
    max-width: 220px;
  }
}

.demo-subtitle {
  max-width: 760px;
  font-family: Nunito;
  color: #2f3b46;
  font-size: 1.25rem;
  margin: 8px auto;
}

.demo-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 8px;
}

.demo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-family: Nunito;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.demo-button.primary {
  background: var(--accent);
  color: var(--accent-contrast);
}

.demo-button.ghost {
  border: 2px solid var(--accent);
  color: var(--accent);
}

.demo-steps {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 16px 0;
}

.demo-step {
  background: #f7f7f7;
  border-radius: 10px;
  padding: 12px 16px;
  font-family: Nunito;
  font-weight: 600;
  color: #1a2a3a;
}

.demo-page.dev-mode {
  --accent: #1f5fbf;
  --accent-soft: #e3eefc;
}

.demo-page.live-demo {
  --accent: #1e8f4e;
  --accent-soft: #e4f6ec;
}

@media (max-width: 768px) {
  .demo-subtitle {
    font-size: 1.05rem;
  }
}

/* Editor live-preview backdrop — a neutral, storefront-shaped page (header/hero/product grid)
   rather than the marketing hero above, so a merchant's own campaign preview isn't sitting on top
   of SpinX's own sales copy. Kept deliberately quiet (grayscale placeholders, small header) so it
   never competes with the widget being customized. */
.preview-page {
  background: #ffffff;
  font-family: Nunito, sans-serif;
  min-height: 100vh;
}

.preview-header {
  align-items: center;
  border-bottom: 1px solid #eef0f2;
  display: flex;
  justify-content: space-between;
  padding: 16px 32px;
}

.preview-header-logo {
  height: 26px;
  opacity: 0.85;
  width: auto;
}

.preview-header-nav a {
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.preview-hero {
  margin: 0 auto;
  max-width: 640px;
  padding: 56px 24px 40px;
  text-align: center;
}

.preview-hero h1 {
  color: #1a2a3a;
  font-size: 2.1rem;
  margin: 0 0 12px;
}

.preview-hero p {
  color: #6b7280;
  font-size: 1rem;
  margin: 0;
}

.preview-products {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 0 auto;
  max-width: 960px;
  padding: 0 32px 56px;
}

.preview-product-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preview-product-image {
  aspect-ratio: 1 / 1;
  background-color: #f1f2f4;
  background-position: center;
  background-size: cover;
  border-radius: 10px;
}

.preview-product-image.placeholder {
  background-color: #eef0f2;
}

.preview-product-name {
  color: #1a2a3a;
  font-size: 13px;
  font-weight: 600;
}

.preview-product-name.placeholder {
  background: #eef0f2;
  border-radius: 4px;
  height: 12px;
  width: 70%;
}

.preview-product-price {
  color: #6b7280;
  font-size: 13px;
}

.preview-product-price.placeholder {
  background: #f1f2f4;
  border-radius: 4px;
  height: 10px;
  width: 40%;
}

@media (max-width: 768px) {
  .preview-hero h1 {
    font-size: 1.6rem;
  }
}
