/* AI Readiness Scorecard Styles */

/* Page Layout */
.scorecard-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.scorecard-nav {
    position: relative;
    background: var(--cream);
    border-bottom: 1px solid rgba(200, 190, 180, 0.3);
}

.scorecard-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg) var(--space-md);
    padding-top: calc(80px + var(--space-lg));
    min-height: calc(100vh - 80px);
}

.scorecard-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

/* Progress Bar */
.progress-container {
    margin-bottom: var(--space-lg);
}

.progress-bar {
    height: 6px;
    background: var(--warm-sand);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    width: 0%;
    transition: width 0.4s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--stone);
}

.progress-steps .step {
    opacity: 0.5;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.progress-steps .step.active {
    opacity: 1;
    color: var(--terracotta);
    font-weight: 600;
}

.progress-steps .step.completed {
    opacity: 1;
    color: var(--sage);
}

/* Screen Transitions */
.scorecard-screen {
    display: none;
    animation: fadeSlideIn 0.4s ease;
}

.scorecard-screen.active {
    display: block;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Intro Screen */
.intro-content {
    text-align: center;
    padding: var(--space-lg) 0;
}

.intro-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.intro-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--deep-earth);
    margin-bottom: var(--space-sm);
}

.intro-subtitle {
    font-size: 1.25rem;
    color: var(--stone);
    margin-bottom: var(--space-lg);
}

.intro-benefits {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.intro-benefits .benefit {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.intro-benefits .benefit .icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--sage);
    flex-shrink: 0;
}

.intro-trust {
    font-size: 0.875rem;
    color: var(--stone);
    margin-bottom: var(--space-md);
}

/* Dimension Header */
.dimension-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(200, 190, 180, 0.3);
}

.dimension-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dimension-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
}

.dimension-icon.strategy {
    background: linear-gradient(135deg, #C45D3E20, #C45D3E10);
    color: var(--terracotta);
}

.dimension-icon.data {
    background: linear-gradient(135deg, #2A1F1A20, #2A1F1A10);
    color: var(--deep-earth);
}

.dimension-icon.technology {
    background: linear-gradient(135deg, #D4A85320, #D4A85310);
    color: var(--golden-hour);
}

.dimension-icon.people {
    background: linear-gradient(135deg, #7A8F6D20, #7A8F6D10);
    color: var(--sage);
}

.dimension-icon.culture {
    background: linear-gradient(135deg, #9B8F8520, #9B8F8510);
    color: var(--stone);
}

.dimension-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--stone);
    margin-bottom: 0.25rem;
}

.dimension-info h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--deep-earth);
}

/* Question Card */
.question-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
}

.question-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--deep-earth);
    margin-bottom: var(--space-lg);
    line-height: 1.4;
}

/* Options Grid */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.option-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-md);
    background: var(--cream);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.option-btn:hover {
    background: white;
    border-color: var(--terracotta);
    transform: translateX(4px);
}

.option-btn.selected {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: white;
}

.option-btn.selected .option-desc {
    color: rgba(255, 255, 255, 0.8);
}

.option-label {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.option-desc {
    font-size: 0.875rem;
    color: var(--stone);
}

/* Lead Capture Screen */
.capture-content {
    text-align: center;
}

.capture-header {
    margin-bottom: var(--space-lg);
}

.score-preview {
    margin-bottom: var(--space-md);
}

.score-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.score-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-circle .score-bg {
    fill: none;
    stroke: var(--warm-sand);
    stroke-width: 8;
}

.score-circle .score-fill {
    fill: none;
    stroke: var(--terracotta);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1s ease;
}

.score-circle .score-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--deep-earth);
}

.capture-header h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--deep-earth);
    margin-bottom: var(--space-sm);
}

.capture-header p {
    color: var(--stone);
    max-width: 400px;
    margin: 0 auto;
}

/* Capture Form */
.capture-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: var(--space-sm);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--warm-sand);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-body);
    background: white;
    transition: border-color 0.2s ease;
}

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

.form-group input::placeholder {
    color: var(--stone);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.form-disclaimer {
    font-size: 0.75rem;
    color: var(--stone);
    margin-top: var(--space-sm);
}

/* Results Screen */
.results-content {
    padding: var(--space-md) 0;
}

.results-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.results-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--deep-earth);
    margin-bottom: var(--space-md);
}

.main-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.score-circle.large {
    width: 160px;
    height: 160px;
}

.score-circle.large .score-number {
    font-size: 3rem;
}

.score-label {
    font-size: 1.25rem;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
}

.score-label.beginner {
    background: rgba(155, 143, 133, 0.15);
    color: var(--stone);
}

.score-label.developing {
    background: rgba(212, 168, 83, 0.15);
    color: var(--golden-hour);
}

.score-label.ready {
    background: rgba(122, 143, 109, 0.15);
    color: var(--sage);
}

.score-label.advanced {
    background: rgba(196, 93, 62, 0.15);
    color: var(--terracotta);
}

.score-label.leader {
    background: linear-gradient(135deg, #C45D3E, #D4A853);
    color: white;
}

/* Dimension Scores */
.dimension-scores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.dimension-score-card {
    background: white;
    border-radius: var(--radius-md);
    padding: var(--space-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.dimension-score-card .dim-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-xs);
}

.dimension-score-card .dim-icon svg {
    width: 20px;
    height: 20px;
}

.dimension-score-card .dim-name {
    font-size: 0.75rem;
    color: var(--stone);
    margin-bottom: 0.25rem;
}

.dimension-score-card .dim-score {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--deep-earth);
}

.dimension-score-card .dim-bar {
    height: 4px;
    background: var(--warm-sand);
    border-radius: 2px;
    margin-top: var(--space-xs);
    overflow: hidden;
}

.dimension-score-card .dim-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.6s ease;
}

/* Results Insights */
.results-insights {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-md);
}

.results-insights h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--deep-earth);
    margin-bottom: var(--space-md);
}

.insight-item {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--warm-sand);
}

.insight-item:last-child {
    border-bottom: none;
}

.insight-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.insight-icon.strength {
    color: var(--sage);
}

.insight-icon.opportunity {
    color: var(--golden-hour);
}

.insight-text {
    font-size: 0.9375rem;
    color: var(--deep-earth);
    line-height: 1.5;
}

/* Results CTA */
.results-cta {
    text-align: center;
    background: linear-gradient(135deg, var(--deep-earth), #2A1F1A);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    color: white;
}

.results-cta h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.results-cta p {
    opacity: 0.9;
    margin-bottom: var(--space-md);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.results-cta .btn-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    margin-top: var(--space-sm);
}

.results-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Footer */
.scorecard-footer {
    padding: var(--space-md);
    text-align: center;
    color: var(--stone);
    font-size: 0.875rem;
    border-top: 1px solid rgba(200, 190, 180, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn .icon {
    width: 1.25rem;
    height: 1.25rem;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--deep-earth);
    border: 2px solid var(--warm-sand);
}

.btn-secondary:hover {
    border-color: var(--terracotta);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* Responsive */
@media (max-width: 640px) {
    .scorecard-main {
        padding: var(--space-md);
        padding-top: calc(80px + var(--space-md));
    }

    .progress-steps {
        font-size: 0.625rem;
    }

    .dimension-header {
        flex-direction: column;
        text-align: center;
    }

    .question-card {
        padding: var(--space-md);
    }

    .question-text {
        font-size: 1.125rem;
    }

    .option-btn {
        padding: var(--space-sm);
    }

    .dimension-scores {
        grid-template-columns: repeat(2, 1fr);
    }

    .score-circle.large {
        width: 140px;
        height: 140px;
    }

    .score-circle.large .score-number {
        font-size: 2.5rem;
    }

    .results-cta {
        padding: var(--space-md);
    }

    .btn-large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}
