:root {
    --color-bg: #F2EBE5;
    --color-container: #FFFBF7;
    --color-oatmeal: #D9C2A7;
    --color-cream: #E8D5C4;
    --color-dark: #2C1810;
    --color-text-light: #5D4E46;
    
    --font-main: 'Noto Serif KR', serif;
    --max-width: 600px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-dark);
    display: flex;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
    line-height: 1.4;
    font-size: 14px;
}

/* Main App Container */
.app-container {
    width: 100%;
    max-width: var(--max-width);
    background-color: var(--color-container);
    height: 100vh;
    position: relative;
    box-shadow: 0 0 20px rgba(44, 24, 16, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header / Hero - 더 컴팩트하게 */
.hero-section {
    background: linear-gradient(135deg, var(--color-cream) 0%, #FFF 100%);
    padding: 0.8rem;
    position: relative;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    overflow: hidden;
    flex-shrink: 0;
}

.hero-header-top {
    text-align: center;
    margin-bottom: 0.6rem;
}

.hero-tag {
    display: inline-block;
    background-color: var(--color-dark);
    color: var(--color-oatmeal);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.2rem;
    color: var(--color-dark);
}

.hero-sub {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 0;
}

.hero-body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

/* 프로필 영역 - 더 컴팩트하고 정보 풍부하게 */
.hero-image-main {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255,255,255,0.7);
    padding: 0.6rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.profile-placeholder {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #FFF;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--color-oatmeal), var(--color-cream));
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
}

.img-fallback i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.profile-info {
    flex: 1;
}

.profile-info h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.2rem;
}

.profile-info p {
    font-size: 0.7rem;
    color: var(--color-text-light);
    margin-bottom: 0.4rem;
}

.expertise-tags {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.expertise-tags span {
    background-color: var(--color-oatmeal);
    color: var(--color-dark);
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 600;
}

.swipe-hint {
    text-align: center;
    font-size: 0.6rem;
    color: #B08D74;
    margin-top: 0.4rem;
    opacity: 0.8;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: translateX(0); }
    50% { transform: translateX(3px); }
    100% { transform: translateX(0); }
}

/* Swipe Area - 더 효율적인 공간 활용 */
.swipe-area {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    flex: 1;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.swipe-area::-webkit-scrollbar {
    display: none;
}

.swipe-slide {
    min-width: 100%;
    scroll-snap-align: center;
    padding: 0.5rem 0.8rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.slide-content {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* Content Blocks - 더 컴팩트한 디자인 */
.content-block {
    background-color: #FFF;
    padding: 0.8rem;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    border: 1px solid #F5F0EB;
}

.block-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.block-icon {
    font-size: 1.2rem;
    color: var(--color-oatmeal);
}

.content-block h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1.2;
}

.content-block p {
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

/* Feature Grid - 3x2 그리드로 더 많은 내용 */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background-color: rgba(242, 235, 229, 0.3);
    padding: 0.6rem;
    border-radius: 8px;
}

.feature-item i {
    font-size: 0.9rem;
    color: #B08D74;
}

.feature-item span {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-dark);
    text-align: center;
    line-height: 1.2;
}

/* Strategy List - 더 컴팩트한 스타일 */
.strategy-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.strategy-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background-color: rgba(242, 235, 229, 0.2);
    padding: 0.8rem;
    border-radius: 10px;
}

.strategy-number {
    width: 24px;
    height: 24px;
    background-color: var(--color-oatmeal);
    color: var(--color-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.strategy-text h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.1rem;
}

.strategy-text p {
    font-size: 0.7rem;
    color: var(--color-text-light);
    margin: 0;
}

/* Content Images - 이미지 영역 */
.content-image {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.content-image.small {
    height: 80px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(135deg, var(--color-cream), #F8F3F0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder .img-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-cream), #F8F3F0);
    color: rgba(44, 24, 16, 0.4);
}

.image-placeholder .img-fallback i {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.image-placeholder .img-fallback span {
    font-size: 0.7rem;
    font-weight: 600;
}

/* Offer Section - 더 컴팩트하게 */
.offer-section-compact {
    background-color: var(--color-dark);
    color: var(--color-oatmeal);
    padding: 1.2rem;
    border-radius: 15px;
    text-align: center;
}

.offer-header {
    margin-bottom: 1rem;
}

.offer-badge {
    background-color: var(--color-oatmeal);
    color: var(--color-dark);
    padding: 2px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 0.6rem;
}

.offer-section-compact h2 {
    font-size: 1.1rem;
    color: #FFF;
    margin-bottom: 0.3rem;
    line-height: 1.2;
}

.offer-detail {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin: 1rem 0;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    background-color: rgba(255,255,255,0.1);
    padding: 0.6rem;
    border-radius: 8px;
}

.benefit-item i {
    font-size: 1rem;
    color: var(--color-oatmeal);
}

.benefit-item span {
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
}

.disclaimer-box {
    background-color: rgba(255,255,255,0.1);
    padding: 0.6rem;
    border-radius: 8px;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.6);
    margin-top: 1rem;
}

/* Reviews Section - 더 컴팩트하게 */
.reviews-section {
    background-color: #FFF;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.reviews-section h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.8rem;
    text-align: center;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.review-item {
    background-color: #FAF7F4;
    padding: 0.8rem;
    border-radius: 8px;
    text-align: left;
}

.stars {
    color: var(--color-oatmeal);
    font-size: 0.7rem;
    margin-bottom: 0.3rem;
}

.review-item p {
    font-size: 0.75rem;
    color: var(--color-text-light);
    font-style: italic;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.reviewer {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-dark);
}

/* Slide Footer */
.slide-footer {
    text-align: center;
    font-size: 0.6rem;
    color: #999;
    margin-top: 1rem;
    padding: 0.8rem;
    border-top: 1px solid #EEE;
}

.slide-footer a {
    color: #999;
    text-decoration: none;
    margin: 0 3px;
}

/* Fixed Bottom Area - 더 컴팩트하게 */
.fixed-bottom-area {
    flex-shrink: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 100;
    padding: 0.6rem;
    background: var(--color-container);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.fixed-bottom-area .cta-btn {
    width: 100%;
    max-width: var(--max-width);
    background-color: var(--color-dark);
    color: var(--color-oatmeal);
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    justify-content: center;
}

.btn-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.fixed-bottom-area .cta-btn:hover {
    background-color: #3E2218;
}

.btn-main {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1px;
}

.btn-sub {
    font-size: 0.6rem;
    opacity: 0.7;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 24, 16, 0.5);
    z-index: 998;
    display: none;
}

.modal-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    background: #FFF;
    border-radius: 15px;
    z-index: 999;
    display: none;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid #EEE;
    padding-bottom: 0.5rem;
}

.modal-header h3 {
    font-size: 1rem;
    color: var(--color-dark);
}

.modal-header button {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: #999;
}

.modal-body {
    max-height: 60vh;
    overflow-y: auto;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
}

/* Mobile Responsiveness */
/* 새로운 컴포넌트 스타일 추가 */
.philosophy-quote {
    background: linear-gradient(135deg, #F8F3F0, #FAF7F4);
    padding: 0.8rem;
    border-radius: 10px;
    border-left: 3px solid var(--color-oatmeal);
    margin: 1rem 0;
    font-style: italic;
}

.philosophy-quote i {
    color: var(--color-oatmeal);
    font-size: 0.8rem;
    margin-right: 0.3rem;
}

.philosophy-quote p {
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin: 0.3rem 0;
}

.philosophy-quote span {
    font-size: 0.65rem;
    color: #999;
    font-weight: 600;
}

.key-metrics {
    display: flex;
    justify-content: space-around;
    background: rgba(217, 194, 167, 0.1);
    padding: 0.8rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.metric-item {
    text-align: center;
}

.metric-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-dark);
}

.metric-label {
    font-size: 0.6rem;
    color: var(--color-text-light);
    margin-top: 0.2rem;
}

.learning-path {
    background: #FAF7F4;
    padding: 0.8rem;
    border-radius: 10px;
    margin: 1rem 0;
}

.learning-path h4 {
    font-size: 0.8rem;
    color: var(--color-dark);
    margin-bottom: 0.6rem;
}

.path-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.path-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 60px;
}

.step-icon {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.path-step span {
    font-size: 0.6rem;
    color: var(--color-text-light);
    font-weight: 600;
}

.path-arrow {
    color: var(--color-oatmeal);
    font-size: 0.8rem;
    font-weight: 700;
}

.strategy-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.4rem;
}

.strategy-details span {
    font-size: 0.6rem;
    color: var(--color-text-light);
    background: rgba(242, 235, 229, 0.5);
    padding: 2px 6px;
    border-radius: 6px;
}

.success-factors {
    background: #F8F3F0;
    padding: 0.8rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.success-factors h4 {
    font-size: 0.8rem;
    color: var(--color-dark);
    margin-bottom: 0.6rem;
    text-align: center;
}

.factors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.factor-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.5rem;
    background: #FFF;
    border-radius: 8px;
}

.factor-item i {
    font-size: 1rem;
    color: var(--color-oatmeal);
    margin-bottom: 0.3rem;
}

.factor-item span {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-dark);
}

.community-stats {
    background: #FFF;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    margin-bottom: 1rem;
}

.community-stats h4 {
    font-size: 0.9rem;
    color: var(--color-dark);
    margin-bottom: 0.8rem;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.6rem;
}

.stat-card {
    text-align: center;
    background: #FAF7F4;
    padding: 0.6rem;
    border-radius: 8px;
}

.stat-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark);
}

.stat-label {
    font-size: 0.6rem;
    color: var(--color-text-light);
    margin-top: 0.2rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.review-tags {
    display: flex;
    gap: 0.3rem;
    margin-top: 0.4rem;
    flex-wrap: wrap;
}

.review-tags span {
    background: var(--color-oatmeal);
    color: var(--color-dark);
    padding: 1px 6px;
    border-radius: 6px;
    font-size: 0.6rem;
    font-weight: 600;
}

.faq-section {
    background: #FFF;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    margin-top: 1rem;
}

.faq-section h4 {
    font-size: 0.9rem;
    color: var(--color-dark);
    margin-bottom: 0.8rem;
    text-align: center;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.faq-item {
    background: #FAF7F4;
    padding: 0.6rem;
    border-radius: 8px;
}

.faq-q {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.3rem;
}

.faq-a {
    font-size: 0.7rem;
    color: var(--color-text-light);
    line-height: 1.3;
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }
    
    h1 {
        font-size: 1.2rem;
    }
    
    .hero-section {
        padding: 1rem 0.8rem;
    }
    
    .hero-image-main {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 0.6rem;
    }
    
    .profile-placeholder {
        width: 50px;
        height: 50px;
    }
    
    .swipe-slide {
        padding: 0 0.8rem;
    }
    
    .content-block {
        padding: 0.8rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
    
    .path-steps {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .path-arrow {
        transform: rotate(90deg);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
    
    .factors-grid {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
}

@media (max-height: 600px) {
    .hero-section {
        padding: 0.8rem;
    }
    
    .content-image {
        height: 80px;
    }
    
    .content-image.small {
        height: 60px;
    }
}