/* ============================================================
   BilFotografen Landing Page — Interactive Features
   Live Demo, Showroom Explorer, ROI Calculator,
   Platform Preview, Trust Ticker

   Apple Light system: white bg, #0071e3 accent, Inter font
   Matches landing-premium.css design tokens
   ============================================================ */


/* ==========================================================
   TRUST TICKER — Fixed bottom bar with scrolling social proof
   ========================================================== */
.trust-ticker {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-default);
  padding: 10px 0;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(.25,.46,.45,.94);
  overflow: hidden;
}
.trust-ticker.visible {
  transform: translateY(0);
}
.trust-ticker-track {
  display: flex;
  gap: var(--space-12);
  animation: tickerScroll 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.trust-ticker-track:hover {
  animation-play-state: paused;
}
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.trust-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  flex-shrink: 0;
}
.trust-ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--semantic-success);
  flex-shrink: 0;
  animation: tickerPulse 2s ease-in-out infinite;
}
.trust-ticker-item:nth-child(even) .trust-ticker-dot {
  animation-delay: 1s;
}
@keyframes tickerPulse {
  0%, 100% { opacity: 0.5; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}
.trust-ticker-num {
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.trust-ticker-time {
  color: var(--text-tertiary);
  font-size: 12px;
}
@media (max-width: 767px) {
  .trust-ticker { padding: 8px 0; }
  .trust-ticker-item { font-size: 12px; }
}


/* ==========================================================
   LIVE DEMO WIDGET — Drop zone + processing + result
   ========================================================== */
.demo-widget {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}

.demo-dropzone {
  position: relative;
  border: 2px dashed var(--border-hover);
  border-radius: var(--radius-xl, 20px);
  padding: var(--space-16) var(--space-8);
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(.25,.46,.45,.94);
  background: var(--bg-page);
  overflow: hidden;
}
.demo-dropzone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 113, 227, 0.03) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.demo-dropzone:hover,
.demo-dropzone.drag-over {
  border-color: var(--accent-400);
  background: rgba(0, 113, 227, 0.02);
}
.demo-dropzone:hover::before,
.demo-dropzone.drag-over::before {
  opacity: 1;
}
.demo-dropzone.drag-over {
  transform: scale(1.01);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}
.demo-drop-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-5);
  border-radius: 50%;
  background: rgba(0, 113, 227, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(.25,.46,.45,.94), background 0.3s ease;
}
.demo-dropzone:hover .demo-drop-icon,
.demo-dropzone.drag-over .demo-drop-icon {
  transform: scale(1.1);
  background: rgba(0, 113, 227, 0.10);
}
.demo-drop-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent-400);
}
.demo-drop-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}
.demo-drop-subtitle {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-bottom: var(--space-4);
}
.demo-drop-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--accent-400);
  transition: color 0.2s ease;
}
.demo-drop-cta svg {
  width: 16px;
  height: 16px;
}
.demo-drop-formats {
  margin-top: var(--space-4);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}
.demo-drop-input {
  display: none;
}

/* Demo Processing State */
.demo-processing {
  display: none;
  text-align: center;
  padding: var(--space-12) var(--space-8);
}
.demo-processing.active { display: block; }
.demo-processing-preview {
  position: relative;
  max-width: 480px;
  margin: 0 auto var(--space-8);
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
}
.demo-processing-preview img {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg, 16px);
}
.demo-processing-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}
.demo-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border-default);
  border-top-color: var(--accent-400);
  border-radius: 50%;
  animation: demoSpin 0.8s linear infinite;
}
@keyframes demoSpin {
  to { transform: rotate(360deg); }
}
.demo-processing-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.demo-step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  transition: color 0.3s ease;
}
.demo-step.active {
  color: var(--text-primary);
}
.demo-step.done {
  color: var(--semantic-success);
}
.demo-step-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Demo Result State */
.demo-result {
  display: none;
}
.demo-result.active { display: block; }

.demo-result-compare {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  border-radius: var(--radius-xl, 20px);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.demo-result-compare img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.demo-result-after {
  position: relative;
}
.demo-result-before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  width: 50%;
}
.demo-result-before img {
  width: 100%;
  min-width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  /* Width is set via the parent container logic */
}
.demo-result-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: white;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
}
.demo-result-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15), 0 0 0 2px rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 11;
  pointer-events: none;
  transition: transform 0.2s ease;
}
.demo-result-compare:active .demo-result-handle {
  transform: translate(-50%, -50%) scale(1.1);
}
.demo-result-handle svg {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
}
.demo-result-label {
  position: absolute;
  bottom: var(--space-4);
  font-size: 11px;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: var(--radius-full, 999px);
  z-index: 12;
  pointer-events: none;
}
.demo-result-label--before { left: var(--space-4); }
.demo-result-label--after { right: var(--space-4); }

.demo-result-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.demo-result-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 32px;
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: white;
  background: var(--accent-400);
  border: none;
  border-radius: var(--radius-full, 999px);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(.25,.46,.45,.94);
  text-decoration: none;
}
.demo-result-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,113,227,0.3);
}
.demo-result-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}
.demo-result-cta:hover svg {
  transform: translateX(3px);
}
.demo-try-again {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 24px;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  background: var(--bg-section-alt);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full, 999px);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.demo-try-again:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-hover);
}

.demo-result-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}
.demo-result-badge svg {
  width: 14px;
  height: 14px;
  color: var(--semantic-success);
}

@media (max-width: 767px) {
  .demo-dropzone { padding: var(--space-10) var(--space-4); }
  .demo-drop-title { font-size: var(--text-lg); }
  .demo-result-actions { flex-direction: column; gap: var(--space-3); }
  .demo-result-cta, .demo-try-again { width: 100%; justify-content: center; }
}


/* ==========================================================
   INTERACTIVE SHOWROOM EXPLORER
   ========================================================== */
.showroom-explorer {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  margin-top: var(--space-10);
}

.showroom-explorer-display {
  position: relative;
  border-radius: var(--radius-xl, 20px);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 16 / 10;
  background: var(--bg-section-alt);
}
.showroom-explorer-display img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.6s cubic-bezier(.25,.46,.45,.94);
}
.showroom-explorer-display img.fading {
  opacity: 0;
}

.showroom-explorer-badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  font-size: 11px;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6px 14px;
  border-radius: var(--radius-full, 999px);
  z-index: 3;
  transition: opacity 0.3s ease;
}

.showroom-explorer-name {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 3;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.showroom-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-5);
  max-width: 100%;
}
.showroom-picker-item {
  position: relative;
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(.25,.46,.45,.94);
  aspect-ratio: 16 / 10;
  background: var(--bg-section-alt);
}
.showroom-picker-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.showroom-picker-item.active {
  border-color: var(--accent-400);
  box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.2);
}
.showroom-picker-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.showroom-picker-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  font-size: 9px;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: white;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  padding: 12px 6px 4px;
  text-align: center;
}

@media (max-width: 767px) {
  .showroom-picker {
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
    gap: var(--space-2);
  }
  .showroom-picker-label { font-size: 8px; }
}


/* ==========================================================
   ROI CALCULATOR
   ========================================================== */
.roi-calculator {
  max-width: 800px;
  margin: 0 auto;
  margin-top: var(--space-10);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl, 20px);
  padding: var(--space-10) var(--space-8);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.roi-calculator::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.roi-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

.roi-input-group {
  position: relative;
}
.roi-input-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}
.roi-input-label-text {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
}
.roi-input-value {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.roi-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border-default);
  outline: none;
  cursor: pointer;
  position: relative;
}
.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--accent-400);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.roi-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 12px rgba(0,113,227,0.3);
}
.roi-slider::-webkit-slider-thumb:active {
  transform: scale(1.2);
}
.roi-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--accent-400);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  cursor: pointer;
}
.roi-slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-1);
  font-size: 11px;
  color: var(--text-tertiary);
}

/* Results area */
.roi-divider {
  height: 1px;
  background: var(--border-default);
  margin: var(--space-8) 0;
}

.roi-results {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-6);
}
.roi-result-card {
  text-align: center;
  padding: var(--space-5);
  border-radius: var(--radius-lg, 16px);
  background: var(--bg-section-alt);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.roi-result-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.roi-result-number {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--accent-400);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-1);
}
.roi-result-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Comparison bar */
.roi-comparison {
  margin-top: var(--space-6);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-lg, 16px);
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.04) 0%, rgba(0, 113, 227, 0.02) 100%);
  border: 1px solid rgba(0, 113, 227, 0.08);
}
.roi-compare-header {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  text-align: center;
}
.roi-compare-bars {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.roi-bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 80px;
  align-items: center;
  gap: var(--space-3);
}
.roi-bar-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
}
.roi-bar-track {
  height: 28px;
  background: var(--border-default);
  border-radius: var(--radius-full, 999px);
  overflow: hidden;
  position: relative;
}
.roi-bar-fill {
  height: 100%;
  border-radius: var(--radius-full, 999px);
  transition: width 0.8s cubic-bezier(.25,.46,.45,.94);
  display: flex;
  align-items: center;
  padding: 0 var(--space-3);
}
.roi-bar-fill--them {
  background: linear-gradient(90deg, #ff6b6b, #ee5a24);
}
.roi-bar-fill--us {
  background: linear-gradient(90deg, var(--accent-400), var(--accent-300));
}
.roi-bar-amount {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.roi-bar-amount--savings {
  color: var(--semantic-success);
}

@media (max-width: 767px) {
  .roi-calculator { padding: var(--space-6) var(--space-4); }
  .roi-inputs { grid-template-columns: 1fr; gap: var(--space-6); }
  .roi-results { grid-template-columns: 1fr; gap: var(--space-3); }
  .roi-result-card {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    text-align: left;
    padding: var(--space-4);
  }
  .roi-result-number { font-size: var(--text-2xl); margin-bottom: 0; }
  .roi-bar-row { grid-template-columns: 100px 1fr 70px; gap: var(--space-2); }
  .roi-bar-label { font-size: 12px; }
  .roi-bar-amount { font-size: 12px; }
}


/* ==========================================================
   PLATFORM PREVIEW — BilBasen listing mockup
   ========================================================== */
.platform-preview {
  max-width: 960px;
  margin: 0 auto;
  margin-top: var(--space-10);
}
.platform-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}
.platform-card {
  border-radius: var(--radius-xl, 20px);
  overflow: hidden;
  border: 1px solid var(--border-default);
  background: var(--bg-card);
  transition: transform 0.4s cubic-bezier(.25,.46,.45,.94), box-shadow 0.4s cubic-bezier(.25,.46,.45,.94);
}
.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}
.platform-card--before {
  opacity: 0.85;
}
.platform-card--before:hover {
  opacity: 1;
}
.platform-card--after {
  border-color: rgba(0, 113, 227, 0.2);
  box-shadow: 0 0 0 1px rgba(0, 113, 227, 0.08);
}

.platform-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: var(--radius-full, 999px);
  margin: var(--space-4) var(--space-4) 0;
}
.platform-card-badge--before {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-tertiary);
}
.platform-card-badge--after {
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent-400);
}
.platform-card-badge svg {
  width: 12px;
  height: 12px;
}

.platform-card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  margin: var(--space-3) var(--space-4) 0;
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  background: var(--bg-section-alt);
}
.platform-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.platform-card-image--before img {
  filter: brightness(0.9) contrast(0.95);
}

/* Fake BilBasen listing UI */
.platform-listing {
  padding: var(--space-4);
}
.platform-listing-title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}
.platform-listing-price {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--accent-400);
  margin-bottom: var(--space-3);
}
.platform-listing-meta {
  display: flex;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}
.platform-listing-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Views counter animation */
.platform-views {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--border-default);
  font-size: var(--text-sm);
}
.platform-views-label {
  color: var(--text-tertiary);
}
.platform-views-num {
  font-weight: var(--weight-bold);
  font-variant-numeric: tabular-nums;
}
.platform-views-num--low {
  color: var(--semantic-error);
}
.platform-views-num--high {
  color: var(--semantic-success);
}
.platform-views-change {
  font-size: 12px;
  font-weight: var(--weight-semibold);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: var(--space-2);
}
.platform-views-change--up {
  color: var(--semantic-success);
}

@media (max-width: 767px) {
  .platform-compare-grid { grid-template-columns: 1fr; gap: var(--space-4); }
}
