/* Shared lab landing layout — demo header lives in brand.css; this covers previews */

.demo-page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw, 1100px);
  margin: 0 auto;
  padding: 0 var(--gut, 24px) clamp(56px, 8vw, 96px);
  box-sizing: border-box;
}

.demo-preview {
  display: grid;
  gap: clamp(28px, 4vw, 40px);
  align-items: start;
}

@media (min-width: 900px) {
  .demo-preview.has-aside {
    grid-template-columns: minmax(280px, 440px) minmax(0, 1fr);
  }
}

.plugin-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  aspect-ratio: 440 / 560;
  max-height: min(72vh, 640px);
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 32px 64px color-mix(in srgb, var(--bg) 35%, transparent);
  overflow: hidden;
}

.plugin-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.preview-label {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--bg);
  pointer-events: none;
}

.demo-aside {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.demo-aside h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.demo-aside p,
.demo-aside li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.demo-aside ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.demo-aside li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 10px;
}

.demo-aside li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.demo-stage {
  margin-top: clamp(8px, 2vw, 16px);
}

.demo-stage--viewer {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: color-mix(in srgb, var(--bg2) 55%, transparent);
}

.demo-callout {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, #e9c46a 35%, transparent);
  background: color-mix(in srgb, #e9c46a 8%, transparent);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.demo-callout strong {
  color: #e9c46a;
  font-weight: 600;
}
