/* ===== PRE-LAUNCH SPECIFIC STYLES ===== */

/* 채팅 스크린이 안 보일 때 클릭 막지 않도록 */
.chat-screen:not(.visible) {
    pointer-events: none !important;
}

/* 사전예약 섹션 z-index 확보 */
.hero-section {
    position: relative;
    z-index: 101;
}

.cta-section {
    position: relative;
    z-index: 101;
}

/* 사전예약 섹션 (히어로 내부) */
.pre-register-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

/* 버튼 + 혜택 가로 배치 */
.pre-register-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 사전예약 버튼 */
.pre-register-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 12px 28px;
    background: var(--orange-point);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 138, 66, 0.3);
}

.pre-register-btn .btn-text {
    font-family: 'Jalnan 2', sans-serif;
    font-size: 18px;
}

.pre-register-btn .btn-sub {
    font-size: 11px;
    opacity: 0.85;
}

.pre-register-btn:hover {
    background: #E67A35;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 138, 66, 0.4);
}

/* 혜택 정보 */
.benefits-info {
    text-align: left;
}

.benefits-info p {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--brown-text);
    line-height: 1.4;
}

.benefits-info p.sub {
    font-size: 11px;
    font-weight: 400;
    color: var(--brown-light);
}

.register-note {
    font-size: 11px;
    color: var(--brown-light);
}

/* 반응형 */
@media (max-width: 420px) {
    .pre-register-row {
        gap: 16px;
    }
    
    .pre-register-btn {
        padding: 10px 22px;
    }
    
    .pre-register-btn .btn-text {
        font-size: 14px;
    }
    
    .benefits-info p {
        font-size: 12px;
    }
}

/* ===== CTA 섹션 수정 ===== */
.cta-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 24px 30px;
    background: var(--bg-ivory);
}

.cta-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.cta-title {
    font-family: 'Jalnan 2', sans-serif;
    font-size: 28px;
    color: var(--brown-text);
    margin: 0;
}

/* ===== 모달 스타일 ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(76, 58, 50, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 24px 24px;
    max-width: 380px;
    width: 100%;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(76, 58, 50, 0.2);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-ivory);
    border-radius: 50%;
    font-size: 24px;
    color: var(--brown-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--peach-accent);
    color: var(--brown-text);
}

.modal-header {
    text-align: center;
    margin-bottom: 14px;
}

.modal-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 8px;
}

.modal-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-title {
    font-family: 'Jalnan 2', sans-serif;
    font-size: 20px;
    color: var(--brown-text);
    margin-bottom: 4px;
}

.modal-subtitle {
    font-size: 14px;
    color: var(--brown-light);
}

.modal-benefits {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px;
    background: var(--bg-ivory);
    border-radius: 10px;
}

.modal-benefit {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.modal-benefit-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.modal-benefit-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.modal-benefit-detail .benefit-main {
    font-size: 14px;
    font-weight: 800;
    color: var(--brown-text);
}

.modal-benefit-detail .benefit-calc {
    font-size: 12px;
    color: var(--brown-light);
}

.modal-benefit-detail .benefit-calc strong {
    color: var(--orange-point);
}

/* 폼 스타일 */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--brown-text);
}

.form-group input {
    padding: 12px 14px;
    border: 2px solid var(--peach-accent);
    border-radius: 10px;
    font-family: 'TmoneyRoundWind', sans-serif;
    font-size: 14px;
    color: var(--brown-text);
    transition: all 0.2s;
    outline: none;
}

.form-group input::placeholder {
    color: var(--brown-light);
    opacity: 0.6;
}

.form-group input:focus {
    border-color: var(--orange-point);
    box-shadow: 0 0 0 3px rgba(255, 138, 66, 0.1);
}

.email-error {
    font-size: 11px;
    color: #FF3B30;
    min-height: 14px;
    margin-top: -4px;
}

.submit-btn {
    padding: 14px;
    background: linear-gradient(135deg, var(--orange-point) 0%, #FF6B35 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Jalnan 2', sans-serif;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 138, 66, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 138, 66, 0.4);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-loading {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.loading-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: loadingBounce 1.4s infinite ease-in-out;
}

.loading-dot:nth-child(2) {
    animation-delay: 0.15s;
}

.loading-dot:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes loadingBounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-note {
    text-align: center;
    font-size: 10px;
    color: var(--brown-light);
    margin-top: 12px;
}

/* ===== 성공 모달 ===== */
.success-modal {
    text-align: center;
    padding: 40px 28px;
}

.success-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #34C759 0%, #30B050 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: white;
    box-shadow: 0 6px 20px rgba(52, 199, 89, 0.3);
}

.success-title {
    font-family: 'Jalnan 2', sans-serif;
    font-size: 22px;
    color: var(--brown-text);
    margin-bottom: 12px;
}

.success-message {
    font-size: 15px;
    color: var(--brown-light);
    line-height: 1.6;
    margin-bottom: 8px;
}

.success-email {
    display: block;
    font-weight: 800;
    color: var(--orange-point);
    margin-top: 4px;
}

.success-note {
    font-size: 13px;
    color: var(--brown-light);
    margin-bottom: 24px;
    padding: 12px;
    background: var(--bg-ivory);
    border-radius: 8px;
}

.success-btn {
    padding: 14px 40px;
    background: var(--orange-point);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'TmoneyRoundWind', sans-serif;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.success-btn:hover {
    background: #E67A35;
    transform: translateY(-2px);
}

/* ===== 정체기 분석 카드 스타일 (다톡이 디자인 컨셉) ===== */
.plateau-card {
    background: white;
    border-radius: 12px;
    padding: 10px;
    border: 1.5px solid var(--peach-accent);
    width: 100%;
}

/* 차트 영역 */
.plateau-chart {
    background: var(--bg-ivory);
    border-radius: 8px;
    padding: 10px;
    margin: 8px 0;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.chart-title {
    font-size: 10px;
    font-weight: 800;
    color: var(--brown-text);
}

.chart-legend {
    display: flex;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 8px;
    color: var(--brown-light);
}

.legend-line {
    width: 12px;
    height: 0;
    border-top: 1.5px dashed var(--brown-light);
}

.legend-bar {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--peach-accent);
}

.legend-bar.over {
    background: #FF6B6B;
}

/* 바 차트 */
.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 80px;
    position: relative;
    padding-top: 12px;
}

.chart-goal-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 20px;
    border-top: 1.5px dashed var(--brown-light);
}

.goal-label {
    position: absolute;
    right: 0;
    top: -12px;
    font-size: 8px;
    font-weight: 600;
    color: var(--brown-light);
    background: var(--bg-ivory);
    padding: 0 2px;
}

.bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 28px;
}

.bar-wrapper {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.bar {
    width: 18px;
    height: var(--height);
    background: var(--peach-accent);
    border-radius: 3px 3px 1px 1px;
    position: relative;
}

.bar.over {
    background: #FF6B6B;
}

.bar-food {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
}

.bar-label {
    font-size: 9px;
    color: var(--brown-light);
    margin-top: 4px;
    font-weight: 600;
}

.bar-item.today .bar-label {
    color: var(--orange-point);
    font-weight: 800;
}

.bar-item.today .bar {
    background: var(--orange-point);
}

/* 원인 분석 */
.plateau-cause {
    background: var(--bg-ivory);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
}

.plateau-cause .cause-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--brown-text);
    margin-bottom: 6px;
}

.plateau-cause .cause-text {
    font-size: 11px;
    line-height: 1.6;
    color: var(--brown-text);
}

.plateau-cause .cause-text strong {
    font-weight: 800;
    color: var(--brown-text);
}

.plateau-cause .cause-text .over-text {
    color: #FF6B6B;
}

/* 제안 (ai-comment 스타일 재사용) */
.plateau-suggest {
    background: #FFF0E6;
}

.plateau-suggest .ai-text strong {
    color: var(--orange-point);
}

/* ===== 반응형 ===== */
@media (max-width: 600px) {
    .benefits-box {
        flex-direction: column;
        gap: 12px;
        padding: 14px 18px;
    }
    
    .benefit-divider {
        width: 80%;
        height: 1px;
    }
    
    .benefit-item {
        width: 100%;
        justify-content: center;
    }
    
    .pre-register-btn {
        padding: 14px 32px;
        font-size: 16px;
    }
    
    .launch-badge {
        font-size: 13px;
        padding: 7px 14px;
    }
    
    .modal-content {
        padding: 28px 20px;
        margin: 16px;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .cta-register-btn {
        padding: 16px 40px;
        font-size: 18px;
    }
}

@media (max-width: 380px) {
    .benefit-title {
        font-size: 12px;
    }
    
    .benefit-desc {
        font-size: 10px;
    }
    
    .benefit-icon {
        font-size: 24px;
    }
}