html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0.3;
  pointer-events: none;
  filter: url(#grainy);
  z-index: -1;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease-out forwards;
}

@media print {
  body {
    background: white !important;
  }

  header,
  .no-print {
    display: none !important;
  }

  main {
    padding: 0;
    margin: 0;
  }

  .printable-area {
    box-shadow: none;
    border: none;
    background: transparent;
  }
}

.grain-filter-defs {
  display: none;
}

#webview-fallback {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 999999;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 24px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#webview-fallback.js-hidden {
  display: none;
}

.wv-content {
  max-width: 380px;
  width: 100%;
  background: white;
  border-radius: 24px;
  padding: 40px 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.wv-mollie {
  width: 100px;
  height: 100px;
  margin: 0 auto 16px;
  border-radius: 50%;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.3);
  border: 3px solid white;
}

.wv-pitch {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0 0 20px 0;
  line-height: 1.5;
  font-style: italic;
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  padding: 12px 16px;
  border-radius: 12px;
  border-left: 3px solid #a855f7;
}

.wv-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 12px 0;
  line-height: 1.2;
}

.wv-explanation {
  font-size: 1rem;
  color: #64748b;
  margin: 0 0 28px 0;
  line-height: 1.5;
}

.wv-instructions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.wv-step {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  background: #f8fafc;
  border-radius: 12px;
  padding: 14px 16px;
}

.wv-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}

.wv-step-text {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.4;
}

.wv-step-text strong {
  color: #1e293b;
  font-weight: 600;
}

.wv-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: #94a3b8;
  font-size: 0.875rem;
}

.wv-divider::before,
.wv-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.wv-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 15px -3px rgba(139, 92, 246, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wv-copy-btn:active {
  transform: scale(0.98);
}

.wv-copy-btn.copied {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 4px 15px -3px rgba(16, 185, 129, 0.4);
}

.wv-copy-btn svg {
  width: 20px;
  height: 20px;
}

.wv-hint {
  margin-top: 12px;
  font-size: 0.875rem;
  color: #94a3b8;
}

.wv-copy-buffer {
  position: fixed;
  left: -9999px;
  top: -9999px;
}
