/* Simplified, clean styling for The Path of Greatness */

:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #e94560;
    --gold: #f4a261;
    --text: #eaeaea;
    --bg: #0f0f1e;
    --card-bg: #16213e;
    --border: #2a2a42;
    --before-color: #457b9d;
    --after-color: #06d6a0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.character-info h1 {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 5px;
}

.character-info .order {
    font-size: 0.9rem;
    color: var(--text);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cost-display {
    font-size: 0.9rem;
    color: var(--gold);
    font-weight: 600;
}

/* Loading & Error */
.loading, .error {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    border: 4px solid var(--border);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error {
    background: rgba(233, 69, 96, 0.1);
    border: 2px solid var(--accent);
    border-radius: 8px;
    color: var(--accent);
    padding: 20px;
}

.retry-button {
    margin-top: 15px;
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
}

.retry-button:hover {
    background: #c94c61;
}

/* Screens */
.screen {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content {
    width: 100%;
    max-width: 700px;
    padding: 40px;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.content.center {
    text-align: center;
}

/* Typography */
.title-large {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--gold);
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--gold);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text);
    opacity: 0.8;
    margin-bottom: 20px;
}

.description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text);
    opacity: 0.9;
}

.description.large {
    font-size: 1.2rem;
}

/* Buttons */
.primary-button {
    background: linear-gradient(135deg, var(--accent) 0%, #c94c61 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 20px;
    width: 100%;
    max-width: 400px;
}

.primary-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(233, 69, 96, 0.3);
}

.primary-button:disabled {
    background: var(--border);
    cursor: not-allowed;
    opacity: 0.5;
}

/* Form Elements */
input[type="text"],
input[type="number"] {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    margin-bottom: 20px;
    transition: border-color 0.3s;
    background: var(--bg);
    color: var(--text);
}

input:focus {
    outline: none;
    border-color: var(--accent);
}

.mirror-input {
    font-size: 1.3rem !important;
    text-align: center;
    padding: 20px !important;
}

.form-field {
    margin-bottom: 25px;
    text-align: left;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gold);
}

/* Archetypes */
.archetypes {
    margin: 30px 0;
}

.archetypes-label {
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text);
}

.archetype-button {
    width: 100%;
    text-align: center;
    padding: 20px;
    margin-bottom: 12px;
    background: var(--bg);
    color: var(--text);
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.archetype-button:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateX(5px);
}

/* Chapter Screens */
.chapter-header {
    margin-bottom: 40px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    margin-bottom: 15px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--before-color) 0%, var(--after-color) 100%);
    transition: width 0.5s ease;
}

.chapter-number {
    font-size: 0.9rem;
    color: var(--text);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.chapter-title {
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.chapter-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.before-label {
    color: var(--before-color);
}

.after-label {
    color: var(--after-color);
}

.chapter-description {
    font-size: 1rem;
    color: var(--text);
    opacity: 0.8;
    font-style: italic;
}

/* Narrative Boxes */
.narrative-box {
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    line-height: 1.8;
    font-size: 1.15rem;
}

.before-narrative {
    background: rgba(69, 123, 157, 0.15);
    border-left: 4px solid var(--before-color);
}

.after-narrative {
    background: rgba(6, 214, 160, 0.15);
    border-left: 4px solid var(--after-color);
}

.narrative-box p {
    color: var(--text);
}

/* Transformation Box */
.transformation-box {
    padding: 30px;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.2) 0%, rgba(201, 76, 97, 0.2) 100%);
    border-radius: 12px;
    margin: 30px 0;
    border: 2px solid var(--accent);
}

.transformation-label {
    font-size: 0.9rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 15px;
}

.transformation-box p:last-child {
    font-size: 1.2rem;
    line-height: 1.8;
    font-style: italic;
    color: var(--text);
}

/* Timeline */
.timeline {
    margin: 40px 0;
}

.timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: var(--bg);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.timeline-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent) 0%, #c94c61 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.timeline-content {
    flex: 1;
}

.timeline-narrative {
    font-size: 1.05rem;
    margin-bottom: 12px;
    color: var(--text);
    line-height: 1.6;
}

.timeline-transformation {
    font-size: 1rem;
    font-style: italic;
    color: var(--gold);
    opacity: 0.9;
    border-left: 3px solid var(--gold);
    padding-left: 15px;
}

/* Completion */
.completion-cost {
    margin-top: 40px;
    padding: 20px;
    background: var(--bg);
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border);
}

.completion-cost p {
    font-size: 1.1rem;
    color: var(--text);
}

.completion-cost strong {
    color: var(--gold);
    font-size: 1.3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .content {
        padding: 25px;
    }

    .title-large {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .chapter-title {
        font-size: 1.8rem;
    }

    .narrative-box,
    .transformation-box {
        padding: 20px;
        font-size: 1.05rem;
    }

    .timeline-item {
        flex-direction: column;
        gap: 15px;
    }

    .timeline-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Sales Page */
.sales-screen {
    min-height: auto;
    padding: 40px 0;
}

.sales-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.sales-headline {
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    color: var(--gold);
    margin-bottom: 40px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sales-hook {
    font-size: 1.3rem;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text);
}

.sales-section {
    margin-bottom: 60px;
    padding: 40px;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.sales-section h3 {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 20px;
    text-align: center;
}

.sales-section p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 15px;
}

.sales-section.proof {
    background: linear-gradient(135deg, rgba(69, 123, 157, 0.2) 0%, rgba(6, 214, 160, 0.2) 100%);
    border: 2px solid var(--after-color);
}

.cost-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding: 20px;
    background: var(--bg);
    border-radius: 12px;
}

.cost-label {
    font-size: 1rem;
    color: var(--text);
    opacity: 0.8;
}

.cost-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold);
}

.sales-section.offer {
    background: var(--bg);
    border: 2px solid var(--gold);
}

.offer-features {
    margin: 30px 0;
}

.feature {
    font-size: 1.2rem;
    padding: 15px 20px;
    margin-bottom: 10px;
    background: var(--card-bg);
    border-radius: 8px;
    border-left: 4px solid var(--after-color);
}

.price-box {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--accent) 0%, #c94c61 100%);
    border-radius: 12px;
    margin-top: 40px;
}

.price-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
    opacity: 0.9;
    margin-bottom: 10px;
}

.price {
    font-size: 4rem;
    font-weight: 900;
    color: white;
    margin: 10px 0;
}

.price-sub {
    font-size: 1.1rem;
    color: white;
    opacity: 0.9;
}

.sales-section.guarantee {
    background: rgba(6, 214, 160, 0.1);
    border: 2px solid var(--after-color);
}

.sales-section.cta-section {
    background: var(--primary);
    border: none;
    text-align: center;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    padding: 25px 60px;
    background: linear-gradient(135deg, var(--accent) 0%, #c94c61 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 30px rgba(233, 69, 96, 0.4);
    text-decoration: none;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(233, 69, 96, 0.6);
}

.cta-arrow {
    font-size: 2rem;
    transition: transform 0.3s;
}

.cta-button:hover .cta-arrow {
    transform: translateX(5px);
}

.urgency {
    margin-top: 30px;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--gold);
    opacity: 0.9;
}

/* Responsive Sales Page */
@media (max-width: 768px) {
    .sales-headline {
        font-size: 2rem;
    }

    .sales-hook {
        font-size: 1.1rem;
    }

    .sales-section {
        padding: 25px;
    }

    .price {
        font-size: 3rem;
    }

    .cta-button {
        font-size: 1.2rem;
        padding: 20px 40px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.screen {
    animation: fadeIn 0.5s ease;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.cta-button {
    animation: pulse 2s ease-in-out infinite;
}

.cta-button:hover {
    animation: none;
}
