/* ===================== QUIZ CTA SECTION (landing page) ===================== */
.quiz-cta-section {
    padding: 80px 15%;
    text-align: center;
    background: linear-gradient(135deg, #1a1830 0%, #0f1320 100%);
    border-top: 1px solid #2a2a3a;
    border-bottom: 1px solid #2a2a3a;
}
.quiz-cta-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--clockwork-gold);
    margin-bottom: 0.75rem;
    display: block;
}
.quiz-cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}
.quiz-cta-section p {
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 2rem;
    color: var(--text-muted);
}
.quiz-cta-btn {
    display: inline-block;
    background: var(--clockwork-gold);
    color: #000;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 16px 36px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}
.quiz-cta-btn:hover {
    background: var(--clockwork-gold-hover);
    transform: translateY(-2px);
}
.quiz-archetypes-preview {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.quiz-archetype-chip {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===================== RESUME BANNER ===================== */
#quiz-resume-banner {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e1f30;
    border: 1px solid var(--clockwork-gold);
    border-radius: 8px;
    padding: 14px 20px;
    z-index: 9998;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
    white-space: nowrap;
}
#quiz-resume-banner span {
    color: var(--text-main);
    font-size: 0.9rem;
}
#quiz-resume-btn {
    background: var(--clockwork-gold);
    color: #000;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
}
#quiz-dismiss-banner {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
}

/* ===================== QUIZ OVERLAY / MODAL ===================== */
#quiz-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.qz-modal {
    background: #13141f;
    border: 1px solid #2a2a3a;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 60px rgba(0,0,0,0.7);
}
.qz-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #2a2a3a;
    position: sticky;
    top: 0;
    background: #13141f;
    z-index: 1;
}
.qz-modal-header h2 {
    font-size: 1rem;
    color: var(--clockwork-gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
}
#quiz-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.15s;
}
#quiz-close-btn:hover { color: #fff; }
#quiz-modal-body {
    padding: 24px;
}

/* ===================== QUESTION STYLES ===================== */
.qz-progress-wrap {
    background: #2a2a3a;
    border-radius: 4px;
    height: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}
.qz-progress-bar {
    height: 4px;
    background: var(--clockwork-gold);
    border-radius: 4px;
    transition: width 0.3s ease;
}
.qz-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.qz-section {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--clockwork-gold);
    background: rgba(220,165,76,0.1);
    border: 1px solid rgba(220,165,76,0.25);
    padding: 3px 10px;
    border-radius: 12px;
}
.qz-counter {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: auto;
}
.qz-question {
    font-size: 1.15rem;
    line-height: 1.5;
    color: #fff;
    margin-bottom: 20px;
}
.qz-answers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.qz-answer {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #1a1b2a;
    border: 1px solid #2a2a3a;
    border-radius: 8px;
    padding: 14px 16px;
    cursor: pointer;
    text-align: left;
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.45;
    transition: border-color 0.15s, background 0.15s;
    width: 100%;
    font-family: var(--font-stack);
}
.qz-answer:hover {
    border-color: var(--clockwork-gold);
    background: #1e1f2e;
}
.qz-answer-letter {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(220,165,76,0.15);
    border: 1px solid rgba(220,165,76,0.4);
    color: var(--clockwork-gold);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===================== EMAIL GATE ===================== */
.qz-gate {
    text-align: center;
}
.qz-gate-badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.2rem;
    animation: qz-pulse 2s ease-in-out infinite;
}
@keyframes qz-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}
.qz-gate-title {
    font-size: 1.35rem;
    color: #fff;
    margin-bottom: 6px;
}
.qz-gate-hexaco {
    font-size: 0.8rem;
    color: #888;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.qz-teaser {
    position: relative;
    background: #12132099;
    border: 1px solid #2a2a3a;
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 20px;
    text-align: left;
    overflow: hidden;
}
.qz-teaser-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
    filter: blur(2.5px);
    user-select: none;
    pointer-events: none;
}
.qz-teaser-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 20%, #12132099 80%);
}
.qz-teaser-lock {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.78rem;
    color: #aaa;
    letter-spacing: 0.03em;
}
.qz-gate-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}
.qz-gate-privacy {
    font-size: 0.75rem;
    color: #555;
    margin-top: 8px;
}
.qz-email-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
    margin: 0 auto 16px;
}
.qz-email-input {
    background: #1a1b2a;
    border: 1px solid #3a3a4a;
    border-radius: 6px;
    padding: 12px 16px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.15s;
    font-family: var(--font-stack);
}
.qz-email-input:focus {
    border-color: var(--clockwork-gold);
}
.qz-email-btn {
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 13px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s;
    font-family: var(--font-stack);
}
.qz-email-btn:hover { opacity: 0.9; }

/* ===================== RESULTS ===================== */
.qz-result-badge {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 2.6rem;
}
.qz-result-name {
    font-size: 1.7rem;
    text-align: center;
    margin-bottom: 4px;
}
.qz-result-hexaco {
    text-align: center;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.qz-result-email-note {
    text-align: center;
    font-size: 0.85rem;
    color: #27ae60;
    background: rgba(39,174,96,0.1);
    border-radius: 6px;
    padding: 8px 16px;
    margin-bottom: 16px;
}
.qz-result-desc {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    background: #1a1b2a;
    border-radius: 8px;
    padding: 16px;
}
.qz-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
@media (max-width: 480px) {
    .qz-result-grid { grid-template-columns: 1fr; }
    .quiz-cta-section { padding: 60px 6%; }
}
.qz-result-grid-cell {
    background: #1a1b2a;
    border-radius: 8px;
    padding: 14px;
    font-size: 0.85rem;
}
.qz-result-grid-cell strong {
    display: block;
    color: var(--clockwork-gold);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}
.qz-result-grid-cell p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 0.85rem;
}
.qz-result-path {
    background: linear-gradient(135deg, #1a1a30, #2d1a4a);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}
.qz-result-path-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--clockwork-gold);
    margin-bottom: 6px;
}
.qz-result-path p {
    margin: 0;
    color: #b89fd4;
    font-size: 0.9rem;
    line-height: 1.6;
}
.qz-result-insights {
    margin-bottom: 20px;
}
.qz-result-insights strong {
    display: block;
    color: #fff;
    margin-bottom: 10px;
    font-size: 0.9rem;
}
.qz-result-insights ul {
    padding-left: 20px;
    margin: 0;
}
.qz-result-insights li {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 6px;
}
.qz-result-chart {
    margin-bottom: 24px;
}
.qz-result-chart strong {
    display: block;
    color: #fff;
    margin-bottom: 12px;
    font-size: 0.9rem;
}
.qz-bars { display: flex; flex-direction: column; gap: 8px; }
.qz-bar-row {
    display: grid;
    grid-template-columns: 160px 1fr 48px;
    align-items: center;
    gap: 10px;
}
@media (max-width: 480px) {
    .qz-bar-row { grid-template-columns: 110px 1fr 38px; }
}
.qz-bar-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.qz-bar-track {
    background: #2a2a3a;
    border-radius: 3px;
    height: 10px;
    overflow: hidden;
}
.qz-bar-fill {
    height: 10px;
    border-radius: 3px;
    transition: width 0.6s ease;
}
.qz-bar-pts {
    font-size: 0.75rem;
    color: #666;
    text-align: right;
}
.qz-result-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.qz-cta-btn {
    display: block;
    text-align: center;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 20px;
    border-radius: 6px;
    transition: opacity 0.15s;
}
.qz-cta-btn:hover { opacity: 0.9; }
.qz-share-btn {
    background: #1a1b2a;
    border: 1px solid #3a3a4a;
    color: var(--text-main);
    border-radius: 6px;
    padding: 13px 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.15s;
    font-family: var(--font-stack);
}
.qz-share-btn:hover { border-color: var(--clockwork-gold); }
.qz-retake {
    background: none;
    border: none;
    color: #555;
    font-size: 0.8rem;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    font-family: var(--font-stack);
}
.qz-retake:hover { color: var(--text-muted); }

/* ── Quiz intro screen ── */
.qz-intro {
    text-align: center;
    padding: 16px 0 8px;
}
.qz-intro-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}
.qz-intro-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}
.qz-intro-sub {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 420px;
    margin: 0 auto 24px;
}
.qz-intro-facts {
    list-style: none;
    padding: 0;
    margin: 0 auto 28px;
    max-width: 300px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.qz-intro-facts li {
    color: var(--text-muted);
    font-size: 0.95rem;
}
.qz-intro-start-btn {
    display: inline-block;
    background: var(--clockwork-gold);
    color: #000;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 14px 40px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-family: var(--font-stack);
    transition: background 0.2s, transform 0.15s;
    margin-bottom: 16px;
}
.qz-intro-start-btn:hover {
    background: var(--clockwork-gold-hover);
    transform: translateY(-2px);
}
.qz-intro-privacy {
    font-size: 0.75rem;
    color: #555;
}

/* ── Email gate — why line ── */
.qz-gate-why {
    font-size: 0.88rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.04);
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* ── Discord username field in email gate ── */
.qz-discord-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.qz-discord-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
    text-align: left;
}
.qz-optional {
    font-weight: 400;
    color: #555;
}
.qz-discord-hint {
    font-size: 0.75rem;
    color: #555;
    margin: 0;
    text-align: left;
    line-height: 1.4;
}
