/* ============================================
   WRENNON — Dedicated Demo Page
   ============================================ */

.demo-page-hero {
  padding: 80px 0 100px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.demo-ambient {
  position: absolute;
  z-index: -2;
  inset: -20% -10%;
  pointer-events: none;
  filter: blur(80px);
  background:
    radial-gradient(500px circle at 15% 30%, rgba(198,140,83,0.25), transparent 70%),
    radial-gradient(480px circle at 85% 70%, rgba(156,74,31,0.20), transparent 70%);
  animation: ambientDrift 20s ease-in-out infinite;
}

.demo-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}
@media (max-width: 960px) {
  .demo-options-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.demo-col-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.demo-flex-col:not([hidden]) {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.trust-signals {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15.5px;
  color: var(--text);
  font-weight: 500;
}
.trust-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--bg-raised-2);
  color: var(--accent);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(42,24,16,0.05);
}

/* ---------- DEMO CARD ---------- */
.demo-form-container {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  perspective: 1000px;
}
.demo-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow: 0 32px 64px -16px rgba(42,24,16,0.25);
  position: relative;
  z-index: 5;
}
@media (max-width: 640px) {
  .demo-card {
    padding: 32px 24px;
  }
}

.demo-card-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.1;
}
.demo-card-sub, .demo-card-desc {
  font-size: 15px;
  color: var(--text-dim);
  margin-top: -12px;
  margin-bottom: 32px;
  line-height: 1.5;
}

/* ---------- TWO OPTION CARDS ---------- */
.demo-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.demo-option-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  text-align: left;
  width: 100%;
  cursor: pointer;
  appearance: none;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 28px;
  font-family: var(--sans);
  color: var(--text);
  transition: border-color .2s, background .2s, transform .22s ease, box-shadow .22s ease;
  position: relative;
}
.demo-option-card:hover, .demo-option-card:focus-visible {
  transform: translateY(-4px);
  background: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 16px 32px -12px rgba(24,19,15,0.14);
  outline: none;
}
.demo-option-card:active {
  transform: translateY(-1px);
}

.demo-option-card .feature-icon {
  margin-bottom: 0;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.demo-option-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-option-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}
.demo-option-desc {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.5;
}

.demo-option-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  border-radius: 20px;
  padding: 4px 10px;
}
@media (max-width: 560px) {
  .demo-option-card {
    flex-direction: column;
    padding: 24px 20px;
    gap: 16px;
  }
  .demo-option-badge {
    position: static;
    display: inline-block;
    align-self: flex-start;
  }
}

/* ---------- BACK BUTTON ---------- */
.demo-back-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  padding: 0;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .2s;
}
.demo-back-btn:hover {
  color: var(--accent);
}

/* ---------- UPLOAD FIELD + ERROR ---------- */
.file-upload-wrapper {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 6px 12px 6px 6px;
  transition: border-color .2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.file-upload-wrapper:focus-within {
  border-color: var(--accent);
}
.file-upload-wrapper input[type="file"] {
  border: none;
  background: transparent;
  padding: 8px 10px;
  width: 100%;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14px;
}
.file-upload-wrapper input[type="file"]:focus {
  outline: none;
}
.clear-file-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dim);
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
.clear-file-btn:hover {
  background: var(--redline-dim);
  color: var(--redline);
}
.form-note-outside {
  font-size: 10.5px;
  color: var(--redline);
  margin-top: 6px;
}

.demo-form-error {
  border: 1px solid var(--redline);
  background: var(--redline-dim);
  color: var(--redline);
  border-radius: 9px;
  padding: 12px 16px;
  font-size: 14px;
  font-family: var(--sans);
  margin-bottom: 12px;
}

.w-full {
  width: 100%;
}

#demoFormSuccess {
  margin-top: 24px;
  padding: 20px;
  font-size: 15px;
}
