/* Hidden Profit Quiz Stylesheet */
/* Zivvy - 2025 */

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

:root {
    --purple-deep: hsl(261, 49%, 21%);
    --purple-main: hsl(262, 39%, 40%);
    --purple-light: hsl(265, 33%, 57%);
    --gold-main: hsl(41, 61%, 56%);
    --gold-light: hsl(43, 71%, 69%);
    --white: hsl(0, 0%, 100%);
    --gray-light: hsl(260, 23%, 97%);
    --gray-mid: hsl(260, 21%, 92%);
    --gray-text: hsl(240, 7%, 45%);
    --green-main: hsl(122, 39%, 49%);
    --green-dark: hsl(123, 46%, 34%);
    --blue-main: hsl(207, 90%, 54%);
    --orange-main: hsl(36, 100%, 50%);
    --red-main: hsl(1, 77%, 55%);
}

body {
    font-family: 'DM Sans', sans-serif;
    background: linear-gradient(135deg, var(--purple-deep) 0%, hsl(261, 51%, 12%) 100%);
    min-height: 100vh;
    color: var(--purple-deep);
    line-height: 1.6;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
    background: hsl(0, 0%, 100%, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 40px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Fraunces', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--purple-deep);
    text-decoration: none;
}

.logo span {
    color: var(--gold-main);
}

.nav-links a {
    color: var(--gray-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

/* ============================================
   QUIZ CONTAINER
   ============================================ */

.quiz-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 100px 24px 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quiz-card {
    background: var(--white);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 25px 80px hsl(0, 0%, 0%, 0.3);
    position: relative;
    overflow: hidden;
}

.quiz-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--gold-main) 0%, var(--gold-light) 100%);
}

/* ============================================
   PROGRESS BAR
   ============================================ */

.progress-container {
    margin-bottom: 32px;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--gray-text);
    margin-bottom: 8px;
}

.progress-bar {
    height: 8px;
    background: var(--gray-mid);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--purple-main) 0%, var(--purple-light) 100%);
    border-radius: 4px;
    transition: width 0.4s ease;
}

/* ============================================
   WELCOME SCREEN
   ============================================ */

.welcome-screen {
    text-align: center;
}

.welcome-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gold-main) 0%, var(--gold-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.welcome-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--purple-deep);
    stroke-width: 2;
    fill: none;
}

.quiz-title {
    font-family: 'Fraunces', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--purple-deep);
    margin-bottom: 16px;
    line-height: 1.2;
}

.quiz-subtitle {
    font-size: 18px;
    color: var(--gray-text);
    margin-bottom: 32px;
    line-height: 1.6;
}

.quiz-benefits {
    text-align: left;
    background: var(--gray-light);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.quiz-benefits h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--purple-main);
    margin-bottom: 16px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.benefit-item:last-child {
    margin-bottom: 0;
}

.benefit-item svg {
    width: 20px;
    height: 20px;
    stroke: var(--green-main);
    stroke-width: 2.5;
    fill: none;
    flex-shrink: 0;
    margin-top: 2px;
}

.benefit-item span {
    font-size: 15px;
    color: var(--purple-deep);
}

.time-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--purple-deep);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.time-badge svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* ============================================
   QUESTION SCREEN
   ============================================ */

.question-screen {
    animation: fadeIn 0.3s ease;
}

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

.question-category {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.category-recovery {
    background: hsl(122, 39%, 49%, 0.15);
    color: var(--green-dark);
}

.category-reactivation {
    background: hsl(207, 90%, 54%, 0.15);
    color: hsl(212, 80%, 42%);
}

.category-conversion {
    background: hsl(36, 100%, 50%, 0.15);
    color: hsl(21, 100%, 45%);
}

.category-retention {
    background: hsl(262, 39%, 40%, 0.15);
    color: var(--purple-main);
}

.question-text {
    font-family: 'Fraunces', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--purple-deep);
    margin-bottom: 8px;
    line-height: 1.3;
}

.question-context {
    font-size: 15px;
    color: var(--gray-text);
    margin-bottom: 28px;
}

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

.answer-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--gray-light);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.answer-option:hover {
    border-color: var(--purple-light);
    background: var(--white);
}

.answer-option.selected {
    border-color: var(--purple-main);
    background: hsl(262, 39%, 40%, 0.08);
}

.answer-radio {
    width: 22px;
    height: 22px;
    border: 2px solid var(--gray-mid);
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.answer-option.selected .answer-radio {
    border-color: var(--purple-main);
    background: var(--purple-main);
}

.answer-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.answer-option.selected .answer-radio::after {
    opacity: 1;
}

.answer-text {
    font-size: 16px;
    color: var(--purple-deep);
    flex: 1;
}

.answer-score {
    font-size: 12px;
    color: var(--gray-text);
    background: var(--white);
    padding: 4px 10px;
    border-radius: 50px;
}

.answer-option.selected .answer-score {
    background: var(--purple-main);
    color: var(--white);
}

/* ============================================
   EMAIL CAPTURE SCREEN
   ============================================ */

.email-screen {
    text-align: center;
}

.email-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--purple-main) 0%, var(--purple-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.email-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--white);
    stroke-width: 2;
    fill: none;
}

.email-title {
    font-family: 'Fraunces', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--purple-deep);
    margin-bottom: 12px;
}

.email-subtitle {
    font-size: 16px;
    color: var(--gray-text);
    margin-bottom: 28px;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--purple-deep);
    margin-bottom: 6px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-mid);
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--purple-main);
}

.privacy-note {
    font-size: 13px;
    color: var(--gray-text);
    margin-top: 8px;
}

.privacy-note svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    vertical-align: -2px;
    margin-right: 4px;
}

/* ============================================
   RESULTS SCREEN
   ============================================ */

.results-screen {
    text-align: center;
}

.result-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.result-badge.recovery {
    background: hsl(122, 39%, 49%, 0.15);
    color: var(--green-dark);
}

.result-badge.reactivation {
    background: hsl(207, 90%, 54%, 0.15);
    color: hsl(212, 80%, 42%);
}

.result-badge.conversion {
    background: hsl(36, 100%, 50%, 0.15);
    color: hsl(21, 100%, 45%);
}

.result-badge.retention {
    background: hsl(262, 39%, 40%, 0.15);
    color: var(--purple-main);
}

.result-title {
    font-family: 'Fraunces', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--purple-deep);
    margin-bottom: 16px;
    line-height: 1.2;
}

.result-amount {
    font-family: 'Fraunces', serif;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 8px;
}

.result-amount.recovery {
    color: var(--green-dark);
}

.result-amount.reactivation {
    color: hsl(212, 80%, 42%);
}

.result-amount.conversion {
    color: hsl(21, 100%, 45%);
}

.result-amount.retention {
    color: var(--purple-main);
}

.result-label {
    font-size: 16px;
    color: var(--gray-text);
    margin-bottom: 28px;
}

.result-explanation {
    background: var(--gray-light);
    border-radius: 16px;
    padding: 28px;
    text-align: left;
    margin-bottom: 28px;
}

.result-explanation h4 {
    font-family: 'Fraunces', serif;
    font-size: 18px;
    color: var(--purple-deep);
    margin-bottom: 12px;
}

.result-explanation p {
    font-size: 15px;
    color: var(--gray-text);
    margin-bottom: 16px;
    line-height: 1.6;
}

.result-explanation p:last-child {
    margin-bottom: 0;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.stat-box {
    background: var(--gray-light);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.stat-box .value {
    font-family: 'Fraunces', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--purple-deep);
    margin-bottom: 4px;
}

.stat-box .label {
    font-size: 13px;
    color: var(--gray-text);
}

.score-breakdown {
    margin-bottom: 32px;
}

.score-breakdown h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-text);
    margin-bottom: 16px;
}

.score-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.score-bar .label {
    width: 100px;
    font-size: 14px;
    font-weight: 500;
    text-align: right;
}

.score-bar .bar-container {
    flex: 1;
    height: 24px;
    background: var(--gray-light);
    border-radius: 12px;
    overflow: hidden;
}

.score-bar .bar-fill {
    height: 100%;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
    min-width: 40px;
}

.score-bar.recovery .bar-fill {
    background: var(--green-main);
}

.score-bar.reactivation .bar-fill {
    background: var(--blue-main);
}

.score-bar.conversion .bar-fill {
    background: var(--orange-main);
}

.score-bar.retention .bar-fill {
    background: var(--purple-main);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-main) 0%, var(--gold-light) 100%);
    color: var(--purple-deep);
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px hsl(41, 61%, 56%, 0.4);
}

.btn-secondary {
    background: var(--purple-deep);
    color: var(--white);
    width: 100%;
}

.btn-secondary:hover {
    background: var(--purple-main);
}

.btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
}

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

/* ============================================
   OTHER REVENUE OPPORTUNITIES
   ============================================ */

.other-opportunities {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-mid);
}

.other-opportunities h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--purple-deep);
    margin-bottom: 16px;
}

.opportunity-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.opportunity-card {
    background: var(--gray-light);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.opportunity-card .name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.opportunity-card.recovery .name {
    color: var(--green-dark);
}

.opportunity-card.reactivation .name {
    color: hsl(212, 80%, 42%);
}

.opportunity-card.conversion .name {
    color: hsl(21, 100%, 45%);
}

.opportunity-card.retention .name {
    color: var(--purple-main);
}

.opportunity-card .amount {
    font-family: 'Fraunces', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--purple-deep);
}

/* ============================================
   FOOTER
   ============================================ */

.quiz-footer {
    text-align: center;
    padding: 32px 24px;
    color: hsl(0, 0%, 100%, 0.6);
    font-size: 14px;
}

.quiz-footer a {
    color: hsl(0, 0%, 100%, 0.8);
    text-decoration: none;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

@media (max-width: 640px) {
    .quiz-card {
        padding: 32px 24px;
    }

    .quiz-title {
        font-size: 26px;
    }

    .question-text {
        font-size: 20px;
    }

    .result-title {
        font-size: 26px;
    }

    .result-amount {
        font-size: 36px;
    }

    .result-stats {
        grid-template-columns: 1fr;
    }

    .opportunity-cards {
        grid-template-columns: 1fr;
    }
}
