/* DupliFlow Lead Capture — Design System */
/* European sophistication + American conversion aggression */

:root {
  --df-black: #0a0a0f;
  --df-dark: #141420;
  --df-card: #1a1a2e;
  --df-purple: #6c3ce0;
  --df-purple-light: #8b5cf6;
  --df-purple-glow: rgba(108, 60, 224, 0.3);
  --df-blue: #3b82f6;
  --df-green: #10b981;
  --df-gold: #f59e0b;
  --df-white: #ffffff;
  --df-gray-100: #f1f5f9;
  --df-gray-200: #e2e8f0;
  --df-gray-400: #94a3b8;
  --df-gray-600: #475569;
  --df-radius: 16px;
  --df-radius-sm: 10px;
  --df-shadow: 0 20px 60px rgba(0,0,0,0.3);
  --df-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--df-black);
  color: var(--df-white);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* === LAYOUT === */
.lp-container {
  max-width: 440px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* === HERO SECTION === */
.lp-hero {
  padding-top: 48px;
  text-align: center;
}

.lp-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--df-purple);
  box-shadow: 0 0 20px var(--df-purple-glow);
  margin-bottom: 12px;
}

.lp-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--df-gray-400);
  letter-spacing: 0.02em;
}

.lp-title {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.15;
  margin-top: 24px;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--df-white) 0%, var(--df-gray-200) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lp-subtitle {
  font-size: 1rem;
  color: var(--df-gray-400);
  margin-top: 12px;
  line-height: 1.5;
}

/* === QUIZ SECTION === */
.lp-quiz {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 32px;
}

.lp-progress {
  display: flex;
  gap: 4px;
  margin-bottom: 28px;
}

.lp-progress-bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--df-card);
  transition: var(--df-transition);
}

.lp-progress-bar.active {
  background: var(--df-purple);
}

.lp-progress-bar.done {
  background: var(--df-green);
}

.lp-question-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.lp-question {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.lp-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lp-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--df-card);
  border: 1.5px solid transparent;
  border-radius: var(--df-radius-sm);
  cursor: pointer;
  transition: var(--df-transition);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--df-gray-200);
  -webkit-tap-highlight-color: transparent;
}

.lp-option:hover {
  border-color: var(--df-purple);
  background: rgba(108, 60, 224, 0.08);
}

.lp-option:active,
.lp-option.selected {
  border-color: var(--df-purple);
  background: rgba(108, 60, 224, 0.15);
  color: var(--df-white);
}

.lp-option-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(108, 60, 224, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* === CAPTURE FORM === */
.lp-capture {
  padding-top: 32px;
  text-align: center;
}

.lp-result-teaser {
  background: linear-gradient(135deg, var(--df-card) 0%, rgba(108, 60, 224, 0.1) 100%);
  border: 1px solid rgba(108, 60, 224, 0.2);
  border-radius: var(--df-radius);
  padding: 24px 20px;
  margin-bottom: 28px;
}

.lp-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--df-green);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lp-result-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.lp-result-preview {
  font-size: 0.9rem;
  color: var(--df-gray-400);
  line-height: 1.5;
}

.lp-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lp-input-group {
  position: relative;
}

.lp-input {
  width: 100%;
  padding: 16px 18px;
  background: var(--df-card);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: var(--df-radius-sm);
  color: var(--df-white);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--df-transition);
  outline: none;
}

.lp-input::placeholder {
  color: var(--df-gray-600);
}

.lp-input:focus {
  border-color: var(--df-purple);
  box-shadow: 0 0 0 3px var(--df-purple-glow);
}

.lp-phone-input {
  display: flex;
  gap: 10px;
  position: relative;
}

.lp-phone-prefix {
  width: 110px;
  padding: 16px 10px;
  background: var(--df-card);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: var(--df-radius-sm);
  color: var(--df-white);
  font-size: 0.9rem;
  font-family: inherit;
  text-align: center;
  outline: none;
  transition: var(--df-transition);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  user-select: none;
}

.lp-phone-prefix:focus,
.lp-phone-prefix.active {
  border-color: var(--df-purple);
}

.lp-phone-prefix .lp-chevron {
  font-size: 8px;
  opacity: 0.6;
  transition: transform 0.2s;
}

.lp-phone-prefix.active .lp-chevron {
  transform: rotate(180deg);
}

.lp-phone-number {
  flex: 1;
}

/* Country code dropdown */
.lp-country-dropdown {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 6px;
  width: 280px;
  max-height: 260px;
  background: var(--df-card);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: var(--df-radius-sm);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  z-index: 1000;
  overflow: hidden;
  display: none;
  flex-direction: column;
}

.lp-country-dropdown.open {
  display: flex;
}

.lp-country-search {
  padding: 10px 12px;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: transparent;
  color: var(--df-white);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
}

.lp-country-search::placeholder {
  color: rgba(255,255,255,0.4);
}

.lp-country-list {
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.lp-country-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.15s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  color: var(--df-white);
  font-family: inherit;
  font-size: 0.85rem;
}

.lp-country-item:hover,
.lp-country-item:focus {
  background: rgba(255,255,255,0.06);
}

.lp-country-item.selected {
  background: rgba(139, 92, 246, 0.15);
}

.lp-country-item .flag {
  font-size: 1.1rem;
}

.lp-country-item .name {
  flex: 1;
  opacity: 0.8;
}

.lp-country-item .code {
  opacity: 0.5;
  font-size: 0.8rem;
}

.lp-btn {
  width: 100%;
  padding: 18px 24px;
  background: linear-gradient(135deg, var(--df-purple) 0%, var(--df-purple-light) 100%);
  border: none;
  border-radius: var(--df-radius-sm);
  color: var(--df-white);
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: var(--df-transition);
  letter-spacing: -0.01em;
  box-shadow: 0 8px 30px rgba(108, 60, 224, 0.4);
}

.lp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(108, 60, 224, 0.5);
}

.lp-btn:active {
  transform: translateY(0);
}

.lp-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.lp-consent {
  font-size: 0.75rem;
  color: var(--df-gray-600);
  line-height: 1.5;
  margin-top: 4px;
}

.lp-consent a {
  color: var(--df-gray-400);
  text-decoration: underline;
}

/* === SUCCESS STATE === */
.lp-success {
  text-align: center;
  padding: 60px 20px;
}

.lp-success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2.5rem;
}

.lp-success-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.lp-success-text {
  font-size: 0.95rem;
  color: var(--df-gray-400);
  line-height: 1.6;
}

/* === TRUST SIGNALS === */
.lp-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 0 32px;
  margin-top: auto;
}

.lp-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--df-gray-600);
}

.lp-trust-icon {
  font-size: 0.9rem;
}

/* === SCREEN TRANSITIONS === */
.lp-screen {
  display: none;
  flex-direction: column;
  min-height: calc(100dvh - 48px);
  animation: fadeIn 0.4s ease;
}

.lp-screen.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* === BACKGROUND EFFECTS === */
.lp-bg-glow {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--df-purple-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* === RESPONSIVE === */
@media (max-width: 380px) {
  .lp-title {
    font-size: 1.5rem;
  }
  .lp-option {
    padding: 14px 16px;
    font-size: 0.9rem;
  }
}

@media (min-width: 768px) {
  .lp-container {
    justify-content: center;
    min-height: 100vh;
  }
}
