/* ============================================
   ValueBull Outside-In — Design System
   ============================================ */

/* Spinner for loading states */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2.5px solid rgba(26,26,27,0.3);
    border-top-color: #1a1a1b;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

:root {
    --gold: #FED700;
    --gold-light: rgba(254,215,0,.10);
    --gold-mid: rgba(254,215,0,.25);
    --gold-strong: rgba(254,215,0,.45);
    --nav-bg: #1a1a1b;
    --bg: #ffffff;
    --bg-sub: #f8f9fa;
    --ink: #0f1729;
    --ink-2: #374151;
    --ink-3: #6b7280;
    --ink-4: #9ca3af;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --red: #dc2626;
    --red-light: #fef2f2;
    --green: #16a34a;
    --green-light: #f0fdf4;
    --amber: #d97706;
    --amber-light: #fffbeb;
    --font-display: 'Bebas Neue', sans-serif;
    --font: 'Poppins', sans-serif;
    --body: 'DM Sans', sans-serif;
    --r: 12px;
    --r-sm: 8px;
    --ease: cubic-bezier(.4,0,.2,1);
}

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

body {
    font-family: var(--body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
}

/* NAV */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 56px;
    background: var(--nav-bg);
    display: flex;
    align-items: center;
    padding: 0 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.nav-logo {
    width: 80px;
    height: 30px;
    fill: var(--gold);
}

/* STEP INDICATOR */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 16px 40px 20px;
    background: var(--nav-bg);
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    opacity: 0.3;
    transition: opacity 200ms var(--ease);
    padding: 0 6px;
    text-decoration: none;
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 0.7;
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    border: 2px solid rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,.35);
    transition: all 200ms var(--ease);
    flex-shrink: 0;
}

.step.active .step-dot {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--nav-bg);
    box-shadow: 0 0 20px rgba(254,215,0,.3);
}

.step.completed .step-dot {
    background: var(--green);
    border-color: var(--green);
    color: white;
}

.step-label {
    font-family: var(--font);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255,255,255,.3);
    font-weight: 600;
}

.step.active .step-label {
    color: var(--gold);
}

.step.completed .step-label {
    color: rgba(255,255,255,.5);
}

.step-connector {
    width: 32px;
    height: 2px;
    background: rgba(255,255,255,.08);
    flex-shrink: 0;
}

.step-connector.done {
    background: var(--green);
    opacity: 0.5;
}

.step-connector.active {
    background: linear-gradient(90deg, var(--green), var(--gold));
    opacity: 0.6;
}

/* PAGE HEADER */
.page-header {
    background: var(--nav-bg);
    color: white;
    padding: 40px;
    text-align: center;
}

.page-header-eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    margin-bottom: 12px;
    font-weight: 600;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: 48px;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.page-header p {
    font-size: 16px;
    color: #b5b5b5;
    max-width: 700px;
    margin: 0 auto;
}

/* CONTENT CONTAINER */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
}

/* FORMS */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    color: var(--ink-2);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    font-family: var(--body);
    font-size: 14px;
    background: var(--bg);
    color: var(--ink);
    transition: all 200ms var(--ease);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(254,215,0,.15);
}

input::placeholder,
textarea::placeholder {
    color: var(--ink-4);
    opacity: 0.7;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* BUTTONS */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--r-sm);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 200ms var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--nav-bg);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(254,215,0,.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-secondary:hover {
    background: var(--gold-light);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

/* LAYOUT */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-row.single {
    grid-template-columns: 1fr;
}

.form-row.three {
    grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 768px) {
    .form-row,
    .form-row.three {
        grid-template-columns: 1fr;
    }
}

/* FETCH BANNER */
.fetch-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--gold-light);
    border: 1px solid var(--gold-mid);
    border-radius: var(--r);
    margin-bottom: 24px;
}

.fetch-banner-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fetch-banner-text {
    font-size: .9rem;
    color: var(--ink-2);
    line-height: 1.6;
    flex: 1;
}

.fetch-banner-text strong {
    color: var(--ink);
    font-weight: 600;
}

.fetch-banner .btn {
    padding: 12px 24px;
}

@media (max-width: 640px) {
    .fetch-banner {
        flex-direction: column;
        text-align: center;
    }
    .fetch-banner .btn {
        width: 100%;
        justify-content: center;
    }
}

/* CARDS */
.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.card-title svg {
    width: 20px;
    height: 20px;
    transition: transform 200ms var(--ease);
}

.card.collapsed .card-title svg {
    transform: rotate(-90deg);
}

.card-content {
    max-height: 10000px;
    overflow: hidden;
    transition: max-height 300ms var(--ease);
}

.card.collapsed .card-content {
    max-height: 0;
}

/* NOTIFICATION */
.notification {
    background: var(--gold-light);
    border: 1px solid var(--gold-mid);
    border-left: 4px solid var(--gold);
    border-radius: var(--r-sm);
    padding: 16px;
    margin-bottom: 24px;
    color: var(--ink);
    font-size: 14px;
    animation: slideIn 300ms var(--ease);
}

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

/* PROCESSING SCREEN */
.processing-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--nav-bg);
    color: white;
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 100px;
    height: 100px;
    border: 4px solid rgba(254,215,0,.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 2s linear infinite;
    margin-bottom: 40px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.status-message {
    font-size: 18px;
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeIn 400ms var(--ease) forwards;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.status-checkmark {
    color: var(--green);
    font-weight: bold;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.progress-bar-container {
    width: 100%;
    max-width: 300px;
    height: 4px;
    background: rgba(254,215,0,.1);
    border-radius: 2px;
    margin-top: 40px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gold);
    transition: width 500ms var(--ease);
}

/* SECTION LABELS */
.section-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    background: var(--bg-sub);
    border: 1px solid var(--border-light);
    border-radius: var(--r-sm);
    color: var(--ink-3);
    font-weight: 600;
    display: inline-block;
    margin-bottom: 16px;
}

/* VALUE CARDS */
.value-card {
    background: var(--bg-sub);
    border: 1px solid var(--border-light);
    border-radius: var(--r);
    padding: 20px;
    margin-bottom: 16px;
}

.value-card .form-group {
    margin-bottom: 12px;
}

.btn-add-value {
    color: var(--gold);
    border: 2px dashed var(--gold);
    background: transparent;
    width: 100%;
    padding: 16px;
    border-radius: var(--r-sm);
    cursor: pointer;
    font-weight: 600;
    transition: all 200ms var(--ease);
}

.btn-add-value:hover {
    background: var(--gold-light);
}

/* PLAYBOOK CARDS */
.playbook-card {
    background: var(--bg-sub);
    border: 1px solid var(--border-light);
    border-radius: var(--r);
    padding: 24px;
    margin-bottom: 20px;
}

.playbook-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 20px;
}

.playbook-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* PRICING CARDS */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

.pricing-card {
    background: var(--bg-sub);
    border: 1px solid var(--border-light);
    border-radius: var(--r);
    padding: 20px;
    text-align: center;
}

.pricing-card h3 {
    font-size: 16px;
    margin-bottom: 12px;
}

.pricing-card input {
    margin-bottom: 12px;
}

/* EXPORT MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--r);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}

.modal-content h2 {
    font-size: 28px;
    margin-bottom: 24px;
    font-family: var(--font-display);
}

.preview {
    background: var(--bg-sub);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 16px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 24px;
    color: var(--ink);
}

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

/* SUCCESS SCREEN */
.success-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--nav-bg);
    color: white;
    text-align: center;
    padding: 40px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 32px;
}

.success-screen h2 {
    font-family: var(--font-display);
    font-size: 40px;
    margin-bottom: 16px;
}

.success-screen p {
    font-size: 16px;
    color: #b5b5b5;
    margin-bottom: 32px;
}

/* BUTTONS GROUP */
.buttons-group {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

/* REMOVE BUTTON */
.btn-remove {
    background: var(--red-light);
    color: var(--red);
    padding: 8px 12px;
    font-size: 12px;
    margin-left: auto;
}

.btn-remove:hover {
    background: var(--red);
    color: white;
}

/* CULTURE ON A PAGE */
.culture-summary {
    background: var(--bg-sub);
    border: 1px solid var(--border-light);
    border-radius: var(--r);
    padding: 24px;
    margin-bottom: 24px;
}

.culture-playbooks {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .culture-playbooks {
        grid-template-columns: 1fr;
    }
}

.culture-playbook {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: var(--r);
    border: 1px solid var(--border-light);
}

.culture-playbook-name {
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 12px;
    font-size: 16px;
}

.culture-mantra {
    font-style: italic;
    color: var(--ink-2);
    margin-bottom: 16px;
    font-size: 14px;
}

.culture-wows {
    text-align: left;
    font-size: 13px;
    color: var(--ink-3);
}

.culture-wows li {
    margin-bottom: 6px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .buttons-group {
        flex-direction: column;
    }

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

    .page-header {
        padding: 24px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .content {
        padding: 20px;
    }

    nav {
        padding: 0 20px;
    }

    .step-indicator {
        padding: 12px 16px 16px;
        gap: 0;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .step-label {
        display: none;
    }

    .step-connector {
        width: 16px;
    }
}
