/* Shared demo chrome only. Each demo keeps its own look in styles.css. */

.demo-banner {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 8px 16px;
  background: #1A1916;
  color: #F3EFE6;
  font-family: Figtree, system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.3;
}

.demo-banner a {
  color: inherit;
  text-decoration: none;
}

.demo-banner-brand {
  font-weight: 650;
  white-space: nowrap;
}

.demo-banner-note {
  color: rgba(243, 239, 230, 0.72);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-banner-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #F3EFE6;
  color: #1A1916 !important;
  font-weight: 650;
  font-size: 12px;
}

.demo-banner-cta:hover {
  background: #fff;
}

.demo-footer-note {
  font-size: 12px;
  opacity: 0.7;
}

.sticky-action {
  display: none;
}

.demo-form-status {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

@media (max-width: 720px) {
  .demo-banner-note {
    display: none;
  }

  .sticky-action {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: inherit;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
  }

  .sticky-action a {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
  }

  body {
    padding-bottom: 76px;
  }
}

.compare {
  position: relative;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

.compare-base img,
.compare-overlay img {
  display: block;
  max-width: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-base,
.compare-overlay {
  position: absolute;
  inset: 0;
}

.compare-overlay {
  width: 50%;
  overflow: hidden;
  border-right: 3px solid #fff;
}

.compare input[type="range"] {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  width: calc(100% - 24px);
  margin: 0 12px;
  z-index: 2;
  accent-color: #fff;
}

.compare-label {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compare-label.is-before { left: 12px; }
.compare-label.is-after { right: 12px; }
