/* Construction Banner Pros — Preview tool
   Extends /styles.css tokens; keeps everything scoped under .preview-page. */

.preview-page main { padding-bottom: 4rem; }

.preview-hero {
  padding: 3rem 0 1.5rem;
  background: linear-gradient(180deg, #F7F6F1 0%, #EFEEE7 100%);
  border-bottom: 1px solid rgba(14,23,22,0.08);
}
.preview-hero .eyebrow {
  color: #6B7B79;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 0.5rem;
}
.preview-h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.1;
  color: #0E1716;
  margin: 0 0 0.75rem;
  max-width: 22ch;
}
.preview-sub {
  color: #384846;
  font-size: 1.05rem;
  max-width: 58ch;
  margin: 0;
}

/* ---- App layout ---- */
.preview-app-section { padding: 2rem 0; }
.preview-app {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.75rem;
  align-items: start;
}
@media (max-width: 900px) {
  .preview-app { grid-template-columns: 1fr; }
}

/* ---- Controls (left) ---- */
.preview-controls {
  background: #FFFFFF;
  border: 1px solid rgba(14,23,22,0.10);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  position: sticky;
  top: 1rem;
}
@media (max-width: 900px) { .preview-controls { position: static; } }

.ctl-block { margin-bottom: 1.25rem; }
.ctl-block:last-child { margin-bottom: 0; }
.ctl-label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: #0E1716;
  margin: 0 0 0.55rem;
}

/* Dropzone */
.dropzone {
  border: 2px dashed rgba(14,23,22,0.25);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  background: #FAFAF7;
  transition: border-color 120ms ease, background 120ms ease;
}
.dropzone:hover, .dropzone.dz-hover {
  border-color: #0E1716;
  background: #F2F1EB;
}
.dropzone-cta strong { display: block; font-size: 0.98rem; color: #0E1716; }
.dropzone-cta span { display: block; color: #4A5A58; font-size: 0.9rem; margin: 0.15rem 0 0.35rem; }
.dropzone-cta small { display: block; color: #6B7B79; font-size: 0.78rem; }
.link-btn {
  background: none; border: none; padding: 0; color: #0E1716;
  text-decoration: underline; cursor: pointer; font: inherit;
}

.upload-status {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: #384846;
  padding: 0.5rem 0.7rem;
  background: #F2F1EB;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.upload-status.error { background: #FCECEA; color: #7A1D0F; }

/* Scene grid */
.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.scene-tile {
  position: relative;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: #EEE;
  aspect-ratio: 16 / 9;
}
.scene-tile img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
}
.scene-tile .scene-name {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.2rem 0.4rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.75), rgba(0,0,0,0));
  color: white;
  font-size: 0.68rem;
  text-align: left;
  line-height: 1.2;
}
.scene-tile.selected { border-color: #0E1716; box-shadow: 0 0 0 2px rgba(14,23,22,0.15); }

/* Size inputs */
.size-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }
.size-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem;
  align-items: center;
  background: #FAFAF7;
  border: 1px solid rgba(14,23,22,0.15);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
}
.size-input span {
  grid-column: 1 / -1;
  font-size: 0.72rem;
  color: #6B7B79;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.size-input input {
  border: none; background: transparent; padding: 0;
  font: inherit; color: #0E1716; width: 100%;
  outline: none;
  font-weight: 600;
}
.size-input em { font-style: normal; color: #6B7B79; font-size: 0.85rem; }

/* DPI badge */
.dpi-badge {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  line-height: 1.35;
}
.dpi-great { background: #E4F3E7; color: #14532D; }
.dpi-good  { background: #E7EEF7; color: #1F3B66; }
.dpi-okay  { background: #FDF2D8; color: #6B4E00; }
.dpi-bad   { background: #FCECEA; color: #7A1D0F; }

/* Action buttons */
.ctl-actions .btn { margin-bottom: 0.5rem; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.fine-print { color: #6B7B79; font-size: 0.75rem; line-height: 1.4; margin: 0.4rem 0 0; }

/* ---- Stage (right) ---- */
.preview-stage {
  background: #0E1716;
  border-radius: 14px;
  padding: 0.75rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.stage-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #1A2422;
}
.stage-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.stage-banner {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  transform-origin: 0 0;
  pointer-events: none;
}
.stage-banner-img {
  position: absolute;
  top: 0; left: 0;
  transform-origin: 0 0;
  filter: drop-shadow(4px 6px 10px rgba(0,0,0,0.35));
  -webkit-user-drag: none;
}
.stage-banner-tint {
  position: absolute;
  top: 0; left: 0;
  transform-origin: 0 0;
  mix-blend-mode: multiply;
  background: rgba(20,25,25,0);
  pointer-events: none;
}
.stage-overlay {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.stage-empty {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  text-align: center;
  padding: 1rem;
}
.stage-empty p { max-width: 30ch; }

.stage-caption {
  color: rgba(255,255,255,0.65);
  font-size: 0.82rem;
  margin: 0.55rem 0 0.15rem;
  text-align: center;
}

/* ---- Why section ---- */
.preview-why { padding: 2.5rem 0 1rem; }
.preview-why h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: #0E1716;
  margin: 0 0 1.25rem;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 780px) { .why-grid { grid-template-columns: 1fr; } }
.why-grid h3 {
  font-size: 1.05rem;
  color: #0E1716;
  margin: 0 0 0.4rem;
}
.why-grid p { color: #384846; margin: 0; }
