@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

.sfpsy-app { max-width: 640px; margin: 0 auto; font-family: 'Poppins', sans-serif; }
.sfpsy-shell { border-radius: 18px; overflow: hidden; box-shadow: 0 8px 30px rgba(19,26,56,0.14); }
.sfpsy-loading { text-align: center; padding: 40px 20px; color: #6d6d6d; font-family: 'Poppins', sans-serif; }

/* ---------- Banner (theme variants) ---------- */
.sfpsy-banner { padding: 34px 28px 40px; color: #fff; position: relative; }
.sfpsy-banner-title { font-size: 1.5em; font-weight: 800; margin-bottom: 4px; }
.sfpsy-banner-sub { opacity: 0.88; font-size: 0.95em; }
.sfpsy-badge { position: absolute; top: 20px; right: 24px; background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.35); padding: 5px 14px; border-radius: 999px; font-size: 0.78em; font-weight: 600; backdrop-filter: blur(4px); }

.sfpsy-theme-navy-ember .sfpsy-banner { background: linear-gradient(120deg, #131a38 0%, #d9622b 130%); }
.sfpsy-theme-ocean      .sfpsy-banner { background: linear-gradient(120deg, #0e2a3d 0%, #1f8a8c 130%); }
.sfpsy-theme-teal       .sfpsy-banner { background: linear-gradient(120deg, #0b5354 0%, #d9a441 130%); }
.sfpsy-theme-midnight   .sfpsy-banner { background: linear-gradient(120deg, #10131f 0%, #1e2b52 130%); }

/* ---------- Card ---------- */
.sfpsy-card { background: #fff; padding: 30px 26px; }
.sfpsy-shell .sfpsy-card { border-radius: 0 0 18px 18px; }
.sfpsy-card h2 { margin: 0 0 8px; font-size: 1.4em; color: #131a38; font-weight: 800; }
.sfpsy-card h3 { margin: 22px 0 10px; font-size: 1.05em; color: #131a38; font-weight: 700; }
.sfpsy-sub { color: #666; margin-bottom: 4px; font-size: 0.95em; line-height: 1.5; }

/* ---------- Intro screen ---------- */
.sfpsy-measures-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.sfpsy-measure-pill { background: #f4f6fb; border: 1px solid #e6e9f2; border-radius: 8px; padding: 9px 12px; font-size: 0.85em; color: #131a38; font-weight: 500; }
.sfpsy-details-list, .sfpsy-instructions-list { margin: 0; padding-left: 20px; color: #444; font-size: 0.92em; line-height: 1.8; }
.sfpsy-details-list li strong, .sfpsy-instructions-list li strong { color: #131a38; }
.sfpsy-intro-card .sfpsy-btn { margin-top: 26px; }

/* ---------- Buttons ---------- */
.sfpsy-btn { background: linear-gradient(120deg, #131a38, #d9622b); color: #fff; border: none; border-radius: 999px; padding: 14px 28px; font-size: 1em; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; text-align: center; font-family: inherit; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.sfpsy-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(217,98,43,0.35); color: #fff; }
.sfpsy-btn-block { display: block; width: 100%; }
.sfpsy-btn-whatsapp { background: #25d366; }
.sfpsy-btn-whatsapp:hover { box-shadow: 0 6px 18px rgba(37,211,102,0.35); }
.sfpsy-btn-link { background: none; border: none; color: #d9622b; cursor: pointer; font-weight: 700; padding: 8px 0; font-family: inherit; }

/* ---------- Lead form ---------- */
.sfpsy-form label { display: block; margin-bottom: 14px; font-size: 0.88em; color: #131a38; font-weight: 600; }
.sfpsy-form input { display: block; width: 100%; margin-top: 6px; padding: 12px 13px; border: 1px solid #dde1ec; border-radius: 9px; font-size: 1em; font-weight: normal; font-family: inherit; box-sizing: border-box; }
.sfpsy-form input:focus { outline: none; border-color: #d9622b; }
.sfpsy-row { display: flex; gap: 12px; }
.sfpsy-row label { flex: 1; }
.sfpsy-error { color: #c62828; margin-top: 10px; font-size: 0.88em; }

/* ---------- Quiz ---------- */
.sfpsy-progress-track { height: 6px; background: #eef0f6; border-radius: 3px; overflow: hidden; margin-bottom: 16px; }
.sfpsy-progress-fill { height: 100%; background: linear-gradient(90deg, #131a38, #d9622b); transition: width 0.25s ease; }
.sfpsy-quiz-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sfpsy-qcount { font-size: 0.78em; color: #999; text-transform: uppercase; letter-spacing: 0.6px; font-weight: 600; }
.sfpsy-timer { font-size: 0.85em; font-weight: 800; color: #131a38; background: #f4f6fb; border: 1px solid #e6e9f2; border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.sfpsy-timer.sfpsy-timer-warning { color: #c62828; background: #fdeaea; border-color: #f6c9c9; animation: sfpsy-pulse 1s infinite; }
@keyframes sfpsy-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.sfpsy-timeout-note { background: #fff3e0; color: #b5690a; border-radius: 10px; padding: 10px 14px; font-size: 0.88em; margin-bottom: 16px; font-weight: 600; }
.sfpsy-qtext { font-size: 1.22em; font-weight: 700; color: #131a38; margin-bottom: 24px; line-height: 1.45; }

.sfpsy-scale { display: flex; flex-direction: column; gap: 9px; }
.sfpsy-scale-btn { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1.5px solid #e6e9f2; border-radius: 11px; background: #fafbfd; cursor: pointer; font-weight: 800; color: #131a38; font-size: 1em; text-align: left; font-family: inherit; transition: all 0.15s ease; }
.sfpsy-scale-btn span { font-weight: 500; color: #555; font-size: 0.9em; }
.sfpsy-scale-btn:hover { border-color: #d9622b; background: #fff6f0; }
.sfpsy-scale-btn.sfpsy-selected { background: #131a38; border-color: #131a38; color: #fff; }
.sfpsy-scale-btn.sfpsy-selected span { color: #cfd6e6; }

.sfpsy-nav { margin-top: 18px; }
.sfpsy-loading-card { text-align: center; padding: 50px 20px; color: #6d6d6d; }

/* ---------- Results ---------- */
.sfpsy-consistency { font-weight: 800; color: #131a38; margin-bottom: 22px; font-size: 1.1em; }
.sfpsy-result-row { border-top: 1px solid #eef0f6; padding: 14px 0; }
.sfpsy-result-cat { font-weight: 700; color: #131a38; }
.sfpsy-result-band { display: inline-block; margin: 5px 0; padding: 3px 11px; border-radius: 999px; font-size: 0.78em; font-weight: 800; }
.sfpsy-band-StrongFit { background: #e3f6e8; color: #1e7d3a; }
.sfpsy-band-DevelopingFit { background: #fff3e0; color: #b5690a; }
.sfpsy-band-NeedsAttention { background: #fdeaea; color: #c62828; }
.sfpsy-result-note { color: #666; font-size: 0.87em; line-height: 1.5; }
.sfpsy-actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Disclaimer ---------- */
.sfpsy-disclaimer { background: #fff8ec; border: 1px solid #f0dfb8; color: #7a5a1e; border-radius: 10px; padding: 12px 14px; font-size: 0.82em; line-height: 1.5; margin-bottom: 18px; }
.sfpsy-disclaimer-sm { font-size: 0.78em; padding: 10px 12px; }

/* ---------- Weak areas / contradictions ---------- */
.sfpsy-weak-card { background: #fff7f2; border: 1px solid #f6ddc9; border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.sfpsy-weak-title { font-weight: 800; color: #131a38; margin-bottom: 4px; }
.sfpsy-weak-rationale { color: #666; font-size: 0.87em; line-height: 1.5; }
.sfpsy-contradiction-card { background: #f7f8fc; border: 1px solid #e6e9f2; border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.sfpsy-contradiction-item { font-size: 0.87em; color: #444; margin-top: 6px; line-height: 1.5; }

/* ---------- Friend comparison / challenge ---------- */
.sfpsy-vs-card { background: #131a38; color: #fff; border-radius: 12px; padding: 16px; margin-bottom: 18px; text-align: center; font-weight: 700; }
.sfpsy-vs-verdict { margin-top: 6px; font-weight: 800; color: #ffb27a; }
.sfpsy-challenge-card { text-align: center; }
.sfpsy-challenge-emoji { font-size: 2.4em; margin-bottom: 8px; }
.sfpsy-modal-overlay { position: fixed; inset: 0; background: rgba(10,14,30,0.55); display: flex; align-items: center; justify-content: center; z-index: 9999; padding: 20px; }
.sfpsy-modal-box { background: #fff; border-radius: 16px; padding: 26px; max-width: 420px; width: 100%; font-family: 'Poppins', sans-serif; }
.sfpsy-modal-box h3 { margin: 0 0 8px; color: #131a38; }
.sfpsy-challenge-link { width: 100%; padding: 10px 12px; border: 1px solid #dde1ec; border-radius: 8px; margin-bottom: 14px; font-size: 0.85em; box-sizing: border-box; }

/* ---------- Brand block ---------- */
.sfpsy-brand-block { background: linear-gradient(120deg, #131a38, #d9622b); color: #fff; border-radius: 12px; padding: 16px 18px; margin: 22px 0; font-weight: 700; font-size: 0.95em; line-height: 1.5; }
.sfpsy-brand-block-top { margin: 0 0 20px; }

/* ---------- Review CTA ---------- */
.sfpsy-review-block { margin-top: 22px; background: #f4f6fb; border-radius: 12px; padding: 16px 18px; text-align: center; }
.sfpsy-review-block > div:first-child { font-size: 0.9em; color: #444; margin-bottom: 12px; line-height: 1.5; }
.sfpsy-btn-review { background: linear-gradient(120deg, #4285F4, #34A853); }

/* ---------- Certificate ---------- */
.sfpsy-cert-canvas { width: 100%; height: auto; border-radius: 12px; margin: 16px 0; display: block; }
.sfpsy-cert-card { text-align: center; }

@media (max-width: 480px) {
	.sfpsy-card { padding: 22px 18px; }
	.sfpsy-banner { padding: 28px 20px 34px; }
	.sfpsy-badge { position: static; display: inline-block; margin-top: 10px; }
	.sfpsy-row { flex-direction: column; gap: 0; }
}
