/* Gnar Branding Colors */
:root {
    --gnar-orange: #fa5539;
    --gnar-orange-dark: #e54a30;
    --gnar-black: #181b22;
    --gnar-light-bg: #fbf9f9;
    --text-primary: #181b22;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --border-color: #e2e8f0;
    --success-green: #48bb78;
    --warning-yellow: #ecc94b;
    --info-blue: #4299e1;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gnar-light-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    padding: 20px 0;
    margin-bottom: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--gnar-black);
}

/* Sections */
.section {
    display: none;
    flex: 1;
}

.section.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

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

/* Intro Section */
.intro-content {
    text-align: center;
    padding: 40px 0;
}

.intro-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--gnar-black);
    line-height: 1.2;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.benefits {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
    text-align: left;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--text-primary);
}

.benefit-icon {
    font-size: 1.3rem;
}

.trust-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--gnar-orange);
    color: white;
}

.btn-primary:hover {
    background: var(--gnar-orange-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--gnar-light-bg);
    border-color: var(--text-muted);
}

/* Progress Bar */
.progress-container {
    margin-bottom: 30px;
}

.progress-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: var(--gnar-orange);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 10%;
}

.progress-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Question Container */
.question-container {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

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

.question h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gnar-black);
}

.question-context {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

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

.option {
    display: flex;
    align-items: flex-start;
    padding: 16px 20px;
    background: var(--gnar-light-bg);
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.option.selected {
    background: white;
    border-color: var(--gnar-orange);
}

.option input {
    margin-right: 14px;
    margin-top: 3px;
    accent-color: var(--gnar-orange);
    width: 18px;
    height: 18px;
}

.option-content {
    flex: 1;
}

.option-label {
    font-weight: 500;
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

.option-description {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.question-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.btn-back {
    background: transparent;
    color: var(--text-secondary);
    padding: 12px 24px;
}

.btn-back:hover {
    color: var(--text-primary);
}

/* Email Capture */
.email-content {
    background: white;
    border-radius: 16px;
    padding: 48px 32px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    max-width: 480px;
    margin: 40px auto;
}

.email-content h2 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: var(--gnar-black);
}

.email-content p {
    color: var(--text-secondary);
    margin-bottom: 28px;
}

#emailForm {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--gnar-orange);
}

#emailForm .btn {
    margin-top: 8px;
}

.privacy-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 16px !important;
}

/* Results */
.results-content {
    padding: 20px 0;
}

.score-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.score-card h2 {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: 500;
}

.score-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gnar-orange) 0%, var(--gnar-orange-dark) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(250, 85, 57, 0.3);
}

.score-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.score-total {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

.score-label {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gnar-black);
}

.score-label.excellent { color: var(--success-green); }
.score-label.good { color: var(--info-blue); }
.score-label.developing { color: var(--warning-yellow); }
.score-label.early { color: var(--gnar-orange); }

/* Category Scores */
.results-breakdown {
    background: white;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.results-breakdown h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--gnar-black);
}

.category-scores {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.category-score {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-name {
    font-weight: 500;
    font-size: 0.95rem;
}

.category-value {
    font-weight: 600;
    color: var(--gnar-orange);
}

.category-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.category-fill {
    height: 100%;
    background: var(--gnar-orange);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Recommendations */
.results-recommendations {
    background: white;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.results-recommendations h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--gnar-black);
}

.recommendations {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recommendation {
    padding: 18px;
    background: var(--gnar-light-bg);
    border-radius: 10px;
    border-left: 4px solid var(--gnar-orange);
}

.recommendation-title {
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--gnar-black);
}

.recommendation-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.recommendation-priority {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 10px;
}

.priority-high {
    background: #fed7d7;
    color: #c53030;
}

.priority-medium {
    background: #fefcbf;
    color: #b7791f;
}

.priority-low {
    background: #c6f6d5;
    color: #276749;
}

/* CTA Section */
.cta-section {
    background: var(--gnar-black);
    border-radius: 16px;
    padding: 36px;
    text-align: center;
    margin-bottom: 24px;
}

.cta-section h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

/* Share Section */
.share-section {
    text-align: center;
    padding: 20px 0;
}

.share-section p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.share-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer a {
    color: var(--gnar-orange);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
    .container {
        padding: 16px;
    }
    
    .intro-content h1 {
        font-size: 1.7rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .question-container {
        padding: 24px 20px;
    }
    
    .question h2 {
        font-size: 1.2rem;
    }
    
    .email-content {
        padding: 32px 24px;
    }
    
    .score-card {
        padding: 32px 24px;
    }
    
    .score-circle {
        width: 140px;
        height: 140px;
    }
    
    .score-number {
        font-size: 3rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-buttons .btn {
        width: 100%;
    }
}
