/* === DEMO PAGE === */
.demo-page {
  min-height: calc(100vh - 73px);
  padding: 3rem 2rem 5rem;
}

.demo-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Form Panel */
.demo-form-panel {
  position: sticky;
  top: 90px;
}

.demo-header {
  margin-bottom: 2.5rem;
}

.demo-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
}

.demo-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.demo-sub {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* Form */
.demo-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.form-group input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  background: var(--white);
  color: var(--fg);
  transition: border-color 0.15s;
}

.form-group input[type="text"]:focus {
  outline: none;
  border-color: var(--green);
}

/* Vertical Grid */
.vertical-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.vertical-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.75rem 0.5rem;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.vertical-btn:hover {
  border-color: var(--green-light);
  color: var(--fg);
}

.vertical-btn.selected {
  border-color: var(--green);
  background: var(--green);
  color: var(--bg);
}

.vertical-btn.selected .v-icon { opacity: 0.85; }

.v-icon {
  font-size: 18px;
  line-height: 1;
}

/* Generate Button */
.btn-generate {
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-generate:hover:not(:disabled) { background: var(--green-light); }
.btn-generate:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Result */
.demo-result {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: #E8F4EC;
  border: 1px solid #A8D4B8;
  border-radius: 10px;
}

.result-success {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 14px;
  color: var(--green);
  margin-bottom: 1rem;
}

.result-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.result-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  cursor: pointer;
  font-family: 'DM Sans', system-ui, sans-serif;
  transition: all 0.15s;
}

.result-link:hover {
  border-color: var(--green);
  background: var(--bg);
}

/* Preview Panel */
.demo-preview-panel {}

.preview-sticky {
  position: sticky;
  top: 90px;
}

.preview-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
}

#previewFrame {
  width: 100%;
  height: 600px;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(28, 58, 42, 0.08);
  background: var(--white);
}

/* Responsive */
@media (max-width: 900px) {
  .demo-container { grid-template-columns: 1fr; gap: 3rem; }
  .demo-form-panel { position: static; }
  .preview-sticky { position: static; }
  .vertical-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 480px) {
  .demo-page { padding: 2rem 1rem 4rem; }
  .form-row { grid-template-columns: 1fr; }
  .vertical-grid { grid-template-columns: repeat(2, 1fr); }
}