/* Spark AI — Real Estate Edition */
/* ================================ */

:root {
    --bg: #0a0a0f;
    --surface: #12121a;
    --surface-hover: #1a1a25;
    --border: rgba(255, 255, 255, 0.06);
    --text: #f0f0f5;
    --text-secondary: rgba(255, 255, 255, 0.55);
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.15);
    --green: #22c55e;
    --amber: #f59e0b;
    --red: #ef4444;
    --radius: 12px;
    --radius-sm: 8px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

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

/* ── Progress Bar ── */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--border);
    z-index: 100;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #818cf8);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

/* ── Logo ── */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 0 40px;
}

.logo-icon {
    font-size: 20px;
    color: var(--accent);
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-tag {
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--surface);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

/* ── Steps ── */
.step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.step.active {
    display: block;
}

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

h1 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

h2 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 28px;
}

.intro-pillars {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.intro-pill {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.intro-pill strong {
    color: var(--text);
}

.social-proof {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--surface);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    margin-bottom: 32px;
}

/* ── Option Buttons ── */
.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.option-btn {
    display: block;
    width: 100%;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
}

.option-btn:hover {
    background: var(--surface-hover);
    border-color: rgba(255, 255, 255, 0.12);
}

.option-btn.selected {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: #fff;
}

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-primary {
    background: var(--accent);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #5558e6;
    transform: translateY(-1px);
}

.mt-20 { margin-top: 20px; }

/* ── Input Fields ── */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.input-field {
    width: 100%;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease;
}

.input-field:focus {
    border-color: var(--accent);
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.privacy-note {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 16px;
}

/* ── Back Button ── */
.back-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    padding: 10px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
}

.back-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

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

/* ── Results ── */
.results-header {
    text-align: center;
    margin-bottom: 32px;
}

.results-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.spark-score {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    display: grid;
    grid-template-rows: auto auto;
    justify-items: center;
    align-content: center;
    row-gap: 4px;
    padding: 18px 10px 14px;
    overflow: hidden;
    background: var(--surface);
}

.score-number {
    font-size: 44px;
    font-weight: 800;
    color: var(--accent);
    line-height: 0.95;
}

.score-label {
    font-size: 9.5px;
    color: var(--text-secondary);
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1.15;
    max-width: 90px;
}

/* ── Stats Row ── */
.stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 24px 0 32px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--green);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.3;
}

/* ── Opportunity Items ── */
.results-section {
    margin-bottom: 32px;
}

.results-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.opportunity-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 12px;
}

.opportunity-item.critical {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

.opportunity-item.high {
    border-color: rgba(245, 158, 11, 0.2);
}

.opp-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.opp-header h4 {
    font-size: 16px;
    font-weight: 700;
}

.priority-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
}

.priority-badge.critical {
    background: rgba(239, 68, 68, 0.15);
    color: var(--red);
}

.priority-badge.high {
    background: rgba(245, 158, 11, 0.15);
    color: var(--amber);
}

.opportunity-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 12px;
}

.opp-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.time-saved, .dollar-impact {
    font-size: 13px;
    font-weight: 600;
}

.time-saved {
    color: var(--green);
}

.dollar-impact {
    color: var(--amber);
}

/* ── Quick Wins ── */
.quick-win {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 10px;
}

.quick-win-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.quick-win-text h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.quick-win-text p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* ── CTA Section ── */
.cta-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(99, 102, 241, 0.02));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    margin-top: 32px;
}

.cta-section h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
}

.cta-section > p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.cta-bullets {
    list-style: none;
    text-align: left;
    max-width: 380px;
    margin: 0 auto 24px;
}

.cta-bullets li {
    font-size: 14px;
    padding: 6px 0;
    color: var(--text-secondary);
}

.btn-cta {
    display: inline-block;
    padding: 16px 40px;
    background: var(--accent);
    color: white;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn-cta:hover {
    background: #5558e6;
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.3);
}

.cta-subtext {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 12px;
}

/* ── Locked/Blurred Items ── */
.locked-section {
    position: relative;
}

.opportunity-item.locked {
    position: relative;
    user-select: none;
}

.opportunity-item.locked .locked-text {
    color: rgba(255, 255, 255, 0.08);
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 12px;
    filter: blur(3px);
    letter-spacing: 1px;
}

.opportunity-item.locked .opp-meta {
    filter: blur(4px);
    opacity: 0.4;
}

.opportunity-item.locked .opp-header h4 {
    /* Titles stay visible — they're the tease */
}

.quick-win.locked {
    border-style: dashed;
    border-color: rgba(99, 102, 241, 0.2);
    background: rgba(99, 102, 241, 0.03);
}

.quick-win.locked .quick-win-text h4 {
    color: var(--accent);
}

.quick-win.locked .quick-win-text p {
    color: var(--text-secondary);
    font-style: italic;
}

/* ── Footer ── */
.footer-note {
    text-align: center;
    padding: 32px 0 16px;
}

.footer-note p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.25);
}

/* ── Mobile ── */
@media (max-width: 480px) {
    .container {
        padding: 16px 16px 60px;
    }

    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 20px;
    }

    .score-circle {
        width: 120px;
        height: 120px;
    }

    .score-number {
        font-size: 34px;
    }

    .score-label {
        font-size: 8px;
        line-height: 1.1;
        max-width: 72px;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .stat-number {
        font-size: 24px;
    }

    .opp-meta {
        flex-direction: column;
        gap: 4px;
    }

    .cta-section {
        padding: 24px 16px;
    }
}
