:root {
    --bg-warm: #fff9f0;
    --primary-warm: #ff8c42;
    --secondary-warm: #6eb5ff;
    --accent-warm: #ffcc33;
    --text-main: #4a4a4a;
    --white: #ffffff;
    --radius: 20px;
    --shadow: 0 8px 30px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Noto Sans KR', sans-serif; background-color: var(--bg-warm); color: var(--text-main); overflow-x: hidden; }
h1, h2, .emoji-header, .main-title-large, .question { font-family: 'Gaegu', cursive; }
.container { max-width: 600px; margin: 0 auto; padding: 20px; }

/* Step Navigation */
.step-container { display: none !important; min-height: 100vh; animation: fadeIn 0.4s ease; }
.step-container.active { display: block !important; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Step 1: New Landing Design */
#step-1.active { 
    display: flex !important; 
    align-items: center; 
    justify-content: center; 
    text-align: center;
    background: linear-gradient(rgba(255, 249, 240, 0.8), rgba(255, 249, 240, 0.8)), 
                url('https://images.unsplash.com/photo-1540914129354-9e4072014197?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
}

#step-1 .content-box { padding: 40px 20px; max-width: 700px; width: 100%; }

.sub-intro { font-size: 1.2rem; color: var(--primary-warm); font-weight: 700; margin-bottom: 10px; }
.main-title-large { font-size: 3.5rem; color: var(--text-main); line-height: 1.1; margin-bottom: 20px; }
.feature-desc { font-size: 1.1rem; line-height: 1.6; color: #666; margin-bottom: 40px; }
.feature-desc strong { color: var(--primary-warm); }

.companion-selector { 
    background: rgba(255, 255, 255, 0.9); 
    padding: 30px; 
    border-radius: var(--radius); 
    box-shadow: var(--shadow);
    backdrop-filter: blur(5px);
}

.question { font-size: 2rem; margin-bottom: 25px; color: var(--text-main); }

.selection-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 12px; 
}

.select-btn { 
    background: white; border: 2px solid transparent; padding: 15px 10px; border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); cursor: pointer; transition: 0.3s;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-family: 'Gaegu', cursive; font-size: 1.1rem; font-weight: 700;
}

.select-btn:hover { transform: translateY(-5px); border-color: var(--primary-warm); background: #fffcf5; }
.select-btn .icon { font-size: 2rem; margin-bottom: 8px; }

/* Solo option takes full width in the grid or special placement */
.select-btn[data-companion="solo"] { grid-column: span 2; flex-direction: row; gap: 10px; }
.select-btn[data-companion="solo"] .icon { margin-bottom: 0; }

/* Step 2: Visual Subway Selector */
.line-visual-selector { text-align: center; margin-bottom: 30px; }
.line-nav { display: flex; justify-content: center; gap: 8px; margin-bottom: 15px; flex-wrap: wrap; }
.line-pill { 
    padding: 10px 18px; border-radius: 50px; border: 3px solid white; 
    cursor: pointer; transition: 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: white; font-weight: 700; font-size: 0.9rem;
}
.line-pill.l1 { background: #0052A4; }
.line-pill.l2 { background: #009D3E; }
.line-pill.l3 { background: #EF7C1C; }
.line-pill.l4 { background: #00A5DE; }
.line-pill.l5 { background: #996CAC; }
.line-pill.active { transform: scale(1.1); border-color: var(--text-main); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }

.station-map-container { 
    position: relative; background: white; padding: 40px 20px; border-radius: var(--radius);
    box-shadow: var(--shadow); min-height: 300px; display: flex; flex-direction: column; align-items: center;
}
.subway-line-path { 
    position: absolute; width: 6px; height: 80%; background: #ddd; top: 10%; border-radius: 10px; z-index: 1;
}
.nodes-wrapper { position: relative; z-index: 2; width: 100%; display: flex; flex-direction: column; gap: 30px; align-items: center; }
.station-node { 
    background: white; border: 3px solid #ddd; padding: 10px 20px; border-radius: 50px;
    cursor: pointer; transition: 0.3s; width: 80%; text-align: center; font-weight: 700;
}
.station-node:hover, .station-node.active { background: var(--accent-warm); border-color: var(--primary-warm); transform: scale(1.05); }

/* Step 3: Needs Selector */
.needs-grid { display: flex; flex-direction: column; gap: 15px; margin-bottom: 40px; }
.need-btn { 
    background: white; border: 2px solid #eee; padding: 20px; border-radius: 15px;
    text-align: left; font-size: 1.1rem; cursor: pointer; transition: 0.2s;
}
.need-btn:hover, .need-btn.selected { background: #fff0d6; border-color: var(--primary-warm); font-weight: 700; }

/* Step 4: Final Results */
.final-card { 
    background: white; padding: 20px; border-radius: 15px; margin-bottom: 15px;
    display: flex; gap: 15px; box-shadow: var(--shadow); border-left: 5px solid var(--primary-warm);
}
.card-num { 
    background: var(--primary-warm); color: white; width: 30px; height: 30px; 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
}
.detail-info { display: flex; gap: 10px; margin-top: 10px; font-size: 0.8rem; color: #888; }

/* Buttons */
.btn { padding: 15px 30px; border-radius: 50px; border: none; font-weight: 700; cursor: pointer; transition: 0.2s; }
.primary-btn { background: var(--primary-warm); color: white; width: 100%; font-size: 1.2rem; }
.outline-btn { background: transparent; border: 2px solid var(--primary-warm); color: var(--primary-warm); width: 100%; }
.btn-text { background: none; border: none; color: #888; text-decoration: underline; cursor: pointer; margin-top: 15px; width: 100%; }

@media (max-width: 480px) {
    .selection-grid { grid-template-columns: repeat(2, 1fr); }
    .select-btn[data-companion="solo"] { grid-column: span 2; }
    .main-title-large { font-size: 2.5rem; }
}
