/* Copied from frontend/app/PersonaPopover.css — keep in step with the app. */
/* ── Landing page "What brings you here?" card ───────── */
.pp-card {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1050;
  width: 380px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 22px 22px 18px;
  background: #fff;
  border: 1px solid var(--purple-100, #e8d5ff);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.2), 0 4px 14px rgba(136, 0, 255, 0.08);
  font-family: 'Inter', system-ui, sans-serif;
  color: #111827;
  text-align: left;
  animation: ppIn 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}
@keyframes ppIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.pp-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  padding: 6px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
}
.pp-close:hover { background: #f3f4f6; color: #374151; }

.pp-eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--purple, #8800ff);
}

.pp-title {
  margin: 6px 28px 4px 0;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.pp-text {
  margin: 0 0 14px;
  font-size: 14px;
  color: #6b7280;
}

/* Persona choices */
.pp-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pp-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.pp-option:hover {
  border-color: var(--purple, #8800ff);
  background: var(--purple-50, #f5eeff);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(136, 0, 255, 0.1);
}
.pp-option:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--purple-100, #e8d5ff); }
.pp-option.selected { border-color: var(--purple, #8800ff); background: var(--purple-50, #f5eeff); }
.pp-option-emoji { font-size: 22px; line-height: 1.2; }
.pp-option-label { font-size: 14px; font-weight: 700; color: #111827; }
.pp-option-hint { font-size: 12px; line-height: 1.35; color: #6b7280; }

/* Pitch */
.pp-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  border: none;
  border-radius: 999px;
  background: var(--purple-50, #f5eeff);
  color: var(--purple, #8800ff);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.pp-back:hover { background: var(--purple-100, #e8d5ff); }

.pp-benefits {
  list-style: none;
  margin: 12px 0 16px;
  padding: 0;
}
.pp-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.45;
  color: #374151;
}
.pp-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: #d1fae5;
  color: #059669;
}

.pp-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pp-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 11px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pp-form input:focus {
  border-color: var(--purple, #8800ff);
  box-shadow: 0 0 0 3px var(--purple-50, #f5eeff);
}
.pp-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 14px;
  border: none;
  border-radius: 11px;
  background: var(--purple, #8800ff);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.pp-form button:hover:not(:disabled) { background: var(--purple-dark, #6600cc); }
.pp-form button:active:not(:disabled) { transform: scale(0.99); }
.pp-form button:disabled { opacity: 0.7; cursor: wait; }

.pp-error {
  margin: 8px 0 0;
  font-size: 13px;
  color: #dc2626;
}
.pp-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
}

.pp-done { text-align: center; padding: 8px 0; }
.pp-done-icon { font-size: 40px; }
.pp-done .pp-title { margin-right: 0; }

/* Hero copy swaps softly when a persona is chosen */
.lp-hero-copy-swap { animation: ppSwap 0.45s ease-out; }
@keyframes ppSwap {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.lp-persona-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: -24px auto 32px;
  padding: 4px 6px 4px 12px;
  border: 1px solid var(--purple-100, #e8d5ff);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  color: #6b7280;
}
.lp-persona-chip button {
  border: none;
  border-radius: 999px;
  background: var(--purple-50, #f5eeff);
  color: var(--purple, #8800ff);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  cursor: pointer;
}
.lp-persona-chip button:hover { background: var(--purple-100, #e8d5ff); }

/* Phones: bottom sheet */
@media (max-width: 520px) {
  .pp-card {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    border-radius: 20px 20px 0 0;
    padding: 20px 18px calc(18px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .pp-card, .lp-hero-copy-swap { animation: none; }
  .pp-option:hover { transform: none; }
}

/* The list building form in the pitch step (styled inside its own Shadow DOM) */
.pp-signup { margin-top: 4px; }
